Jump to content

RAM map (Boktai 2): Difference between revisions

no edit summary
No edit summary
No edit summary
Line 13: Line 13:
|-
|-
| 0x02001470 || i16 || High-level solar sensor delay: Used for delaying the state 0 -> 1 and 1 -> 2 transitions
| 0x02001470 || i16 || High-level solar sensor delay: Used for delaying the state 0 -> 1 and 1 -> 2 transitions
|-
| 0x02002464 || i32 || Total EXP until next level
|}
|}


Line 19: Line 21:
|-
|-
! Offset || Type || Description
! Offset || Type || Description
|-
| 0x28 || i16[6] || Stats (HP/ENE/VIT/SPR/STR/AGI) - updated from *0x03002be0 + 0x364 on screen transitions
|-
|-
| 0x30 || i16[3] || Django(& Sabata?) position
| 0x30 || i16[3] || Django(& Sabata?) position
|-
| 0x40 || i16 || Current level
|-
| 0x42 || i16 || Allocatable stat points
|-
| 0x46 || i16[5] || Weapon skill EXP (Sword/Spear/Hammer/Fists/Gun; 100 exp = 1 skil level)
|-
|-
| 0x50 || i32 || Total EXP
| 0x50 || i32 || Total EXP
|-
|-
| 0x54 || i32 || Magic inventory (bitmask)
| 0x54 || i32 || Magic inventory (bitmask)
|-
| 0x70 || i16[48] || Item [[Inventory (Boktai 2)|inventory]] slots
|-
| 0xd0 || i16[48] || Item inventory durability
|-
| 0x130 || i16[16] || Key item inventory
|-
| 0x150 || i16[32] || Accessory inventory
|-
|-
| 0x23a || i16 || Solar bank interest rate (stored as <code>(1+r)*64<code>, e.g. 14.0625% = 73)
| 0x23a || i16 || Solar bank interest rate (stored as <code>(1+r)*64<code>, e.g. 14.0625% = 73)
|-
|-
| 0x242 || i16 || Current [[Maps (Boktai 2)|map ID]]
| 0x242 || i16 || Current [[Maps (Boktai 2)|map ID]]
|-
| 0x250 || i16 || Current player form (Red Django/Black Django/Bat/Mouse/Unused/Sabata)
|-
|-
| 0x254 || i16 || Current [[Maps (Boktai 2)#Areas|area ID]]
| 0x254 || i16 || Current [[Maps (Boktai 2)#Areas|area ID]]
|-
|-
| 0x24c || i32 || Current map's init script ID
| 0x24c || i32 || Current map's init script ID
|-
| 0x2c0 || || Django: Kaamos progress
|-
| 0x2c4 || || Sabata: Kaamos progress
|-
| 0x2c8 || || Django: Kaamos status
|-
| 0x2ce || || Sabata: Kaamos status
|-
| 0x3d0 || struct[16] || [[Inventory (Boktai 2)#Weapons|Weapon inventory]]
|}
|}


Line 62: Line 92:
|-
|-
| 0x030026c0 || i32 || Solar sensor interface: shift out (next value to be written to GPIO_DATA)
| 0x030026c0 || i32 || Solar sensor interface: shift out (next value to be written to GPIO_DATA)
|-
| 0x03002be0 || struct* || Pointer to Django's actor data?
|-
| + 0x35c || i16[4] || Current VIT/SPR/STR/AGI
|-
| + 0x364 || i32[2] || Current HP/ENE
|-
|-
| 0x03002cb8 || code* || Pointer to TM3 interrupt handler
| 0x03002cb8 || code* || Pointer to TM3 interrupt handler