Use same damage table format as original game
It is now simply not compressed and in a different spot.
This commit is contained in:
@@ -229,7 +229,7 @@ warnpc $31C801
|
||||
org $31C800
|
||||
Damage_Table:
|
||||
incbin damage_table.bin
|
||||
warnpc $31D801
|
||||
warnpc $31D001
|
||||
|
||||
org $338000
|
||||
GFX_HUD_Palette:
|
||||
|
||||
BIN
damage_table.bin
BIN
damage_table.bin
Binary file not shown.
@@ -43,10 +43,20 @@ RTL
|
||||
LookupDamageLevel:
|
||||
CPX.w #$0918 : BNE +
|
||||
LDA.l !StalfosBombDamage
|
||||
BRA .done
|
||||
RTL
|
||||
+
|
||||
PHP
|
||||
REP #$20 ; set 16-bit accumulator
|
||||
TXA : LSR : TAX : BCS .lower
|
||||
.upper
|
||||
PLP
|
||||
LDA.l Damage_Table, X
|
||||
.done
|
||||
LSR #4
|
||||
RTL
|
||||
.lower
|
||||
PLP
|
||||
LDA.l Damage_Table, X
|
||||
AND.b #$0F
|
||||
RTL
|
||||
;================================================================================
|
||||
; $7F50C0 - Sword Modifier
|
||||
|
||||
Reference in New Issue
Block a user