mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-10-16 12:06:25 +13:00
Update CeruleanCity.asm
This commit is contained in:
parent
78b08c3a76
commit
7b5bcbc024
|
@ -80,7 +80,7 @@ ENDC
|
||||||
ld a, $f0
|
ld a, $f0
|
||||||
ld [wJoyIgnore], a
|
ld [wJoyIgnore], a
|
||||||
ld a, [wXCoord]
|
ld a, [wXCoord]
|
||||||
cp 20 ;is the player standing on the right side of the bridge?
|
cp 20 ; is the player standing on the right side of the bridge?
|
||||||
jr z, .playerOnRightSideOfBridge
|
jr z, .playerOnRightSideOfBridge
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ldh [hSpriteIndex], a
|
ldh [hSpriteIndex], a
|
||||||
|
@ -183,7 +183,7 @@ CeruleanCityScript2:
|
||||||
ldh [hSpriteIndex], a
|
ldh [hSpriteIndex], a
|
||||||
call SetSpriteMovementBytesToFF
|
call SetSpriteMovementBytesToFF
|
||||||
ld a, [wXCoord]
|
ld a, [wXCoord]
|
||||||
cp 20 ;is the player standing on the right side of the bridge?
|
cp 20 ; is the player standing on the right side of the bridge?
|
||||||
jr nz, .playerOnRightSideOfBridge
|
jr nz, .playerOnRightSideOfBridge
|
||||||
ld de, CeruleanCityMovement4
|
ld de, CeruleanCityMovement4
|
||||||
jr .skip
|
jr .skip
|
||||||
|
@ -361,19 +361,19 @@ CeruleanCityText6:
|
||||||
CeruleanCityText7:
|
CeruleanCityText7:
|
||||||
text_asm
|
text_asm
|
||||||
ldh a, [hRandomAdd]
|
ldh a, [hRandomAdd]
|
||||||
cp 180 ;76/256 chance of 1st dialogue
|
cp 180 ; 76/256 chance of 1st dialogue
|
||||||
jr c, .notFirstText
|
jr c, .notFirstText
|
||||||
ld hl, CeruleanCityText_19730
|
ld hl, CeruleanCityText_19730
|
||||||
call PrintText
|
call PrintText
|
||||||
jr .end
|
jr .end
|
||||||
.notFirstText
|
.notFirstText
|
||||||
cp 100 ;80/256 chance of 2nd dialogue
|
cp 100 ; 80/256 chance of 2nd dialogue
|
||||||
jr c, .notSecondText
|
jr c, .notSecondText
|
||||||
ld hl, CeruleanCityText_19735
|
ld hl, CeruleanCityText_19735
|
||||||
call PrintText
|
call PrintText
|
||||||
jr .end
|
jr .end
|
||||||
.notSecondText
|
.notSecondText
|
||||||
;100/256 chance of 3rd dialogue
|
; 100/256 chance of 3rd dialogue
|
||||||
ld hl, CeruleanCityText_1973a
|
ld hl, CeruleanCityText_1973a
|
||||||
call PrintText
|
call PrintText
|
||||||
.end
|
.end
|
||||||
|
@ -394,25 +394,25 @@ CeruleanCityText_1973a:
|
||||||
CeruleanCityText8:
|
CeruleanCityText8:
|
||||||
text_asm
|
text_asm
|
||||||
ldh a, [hRandomAdd]
|
ldh a, [hRandomAdd]
|
||||||
cp 180 ;76/256 chance of 1st dialogue
|
cp 180 ; 76/256 chance of 1st dialogue
|
||||||
jr c, .notFirstText
|
jr c, .notFirstText
|
||||||
ld hl, CeruleanCityText_1976f
|
ld hl, CeruleanCityText_1976f
|
||||||
call PrintText
|
call PrintText
|
||||||
jr .end
|
jr .end
|
||||||
.notFirstText
|
.notFirstText
|
||||||
cp 120 ;60/256 chance of 2nd dialogue
|
cp 120 ; 60/256 chance of 2nd dialogue
|
||||||
jr c, .notSecondText
|
jr c, .notSecondText
|
||||||
ld hl, CeruleanCityText_19774
|
ld hl, CeruleanCityText_19774
|
||||||
call PrintText
|
call PrintText
|
||||||
jr .end
|
jr .end
|
||||||
.notSecondText
|
.notSecondText
|
||||||
cp 60 ;60/256 chance of 3rd dialogue
|
cp 60 ; 60/256 chance of 3rd dialogue
|
||||||
jr c, .notThirdText
|
jr c, .notThirdText
|
||||||
ld hl, CeruleanCityText_19779
|
ld hl, CeruleanCityText_19779
|
||||||
call PrintText
|
call PrintText
|
||||||
jr .end
|
jr .end
|
||||||
.notThirdText
|
.notThirdText
|
||||||
;60/256 chance of 4th dialogue
|
; 60/256 chance of 4th dialogue
|
||||||
ld hl, CeruleanCityText_1977e
|
ld hl, CeruleanCityText_1977e
|
||||||
call PrintText
|
call PrintText
|
||||||
.end
|
.end
|
||||||
|
|
Loading…
Reference in a new issue