Difference between revisions of "Damage Types"

From TLoZ: ALTTP Hacking Resources
Jump to: navigation, search
(Created page with "Need to do some research to identify these, and how to edit them. Should be pretty easy once we locate them")
 
 
Line 1: Line 1:
Need to do some research to identify these, and how to edit them. Should be pretty easy once we locate them
+
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.
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
!
 +
! 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
 +
|}

Latest revision as of 06:48, 19 September 2016

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