Use same damage table format as original game

It is now simply not compressed and in a different spot.
This commit is contained in:
Kevin Cathcart
2018-07-15 13:01:14 -04:00
parent 7204f6c2d4
commit 4c59eeb86b
3 changed files with 13 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ warnpc $31C801
org $31C800
Damage_Table:
incbin damage_table.bin
warnpc $31D801
warnpc $31D001
org $338000
GFX_HUD_Palette:

Binary file not shown.

View File

@@ -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