mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
fixing a few small bugs
This commit is contained in:
parent
f457830786
commit
91c79913fd
6 changed files with 39 additions and 18 deletions
|
|
@ -5291,6 +5291,21 @@ AdjustDamageForMoveType:
|
|||
ld b, a
|
||||
ld a, [hl] ; a = damage multiplier
|
||||
ldh [hMultiplier], a
|
||||
and a ; cp NO_EFFECT ;This fixes incorrect type effectiveness messages
|
||||
jr z, .gotMultiplier
|
||||
cp NOT_VERY_EFFECTIVE
|
||||
jr nz, .nothalf
|
||||
ld a, [wDamageMultipliers]
|
||||
and $7f
|
||||
srl a
|
||||
jr .gotMultiplier
|
||||
.nothalf
|
||||
cp SUPER_EFFECTIVE
|
||||
jr nz, .gotMultiplier
|
||||
ld a, [wDamageMultipliers]
|
||||
and $7f
|
||||
sla a
|
||||
.gotMultiplier
|
||||
add b
|
||||
ld [wDamageMultipliers], a
|
||||
xor a
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ OakSpeechText1:
|
|||
text_end
|
||||
OakSpeechText2:
|
||||
text_far _OakSpeechText2A
|
||||
sound_cry_nidorina
|
||||
sound_cry_nidorino
|
||||
text_far _OakSpeechText2B
|
||||
text_end
|
||||
IntroducePlayerText:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue