Damage Types

From TLoZ: ALTTP Hacking Resources
Revision as of 05:48, 19 September 2016 by Superskuj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sprites are assigned one of ten damage types which correspond to a table with three entries indicating the damage to apply to the player dependent upon the armor the player is wearing.

Sprite Damage Table

$06B266 - Data

  • Indexed by sprite ID
  • The lower nybble of the byte represents the damage type of the sprite

Damage Tables

$037427 - Data

Each of the player's "hearts" is $08 hit points.

Armor 1 Armor 2 Armor 3
Damage Type 0 $02 $01 $01
Damage Type 1 $04 $04 $04
Damage Type 2 $00 $00 $00
Damage Type 3 $08 $04 $02
Damage Type 4 $08 $08 $08
Damage Type 5 $10 $08 $04
Damage Type 6 $20 $10 $08
Damage Type 7 $20 $18 $10
Damage Type 8 $18 $10 $08
Damage Type 9 $40 $30 $18