Rupee value table

From ZeldaHacking Wiki
Jump to navigation Jump to search

Sometimes, the game needs to give Link a certain amount of rupees with only one byte to specify the amount. In order to allow more than 255 rupees to be given, the game uses the following table in these situations.

Parameter Number of rupees
$00 0
$01 1
$02 2
$03 5
$04 10
$05 20
$06 40
$07 30
$08 60
$09 70
$0a 25
$0b 50
$0c 100
$0d 200
$0e 400
$0f 150
$10 300
$11 500
$12 900
$13 80
$14 999

See the getRupeeValue (00:1781) function for the implementation of this.