Pokémon Mystery Dungeon: Red Rescue Team:Dungeons Floors Data:Traps Found

From Data Crystal
Jump to: navigation, search


Dungeons Floors Data: Traps Found
Game Pokémon Mystery Dungeon: Red Rescue Team
Start Address 0x04C37B8
End Address 0x04C4ED7
# of Entries 148
Entry Length 40 (0x28)
Total Length 5920 bytes (0x1720)
Back to the ROM map

Each entry sets the traps type amount to spawn on a floor. Like for the Pokémon Found entries, every trap amount value is subtracted by all of the precedent amount values in the same entry, written in little-endian form (see example).


Entry Structure

 Offset      Trap
--------   --------
00 (0x00)  Trip Trap
02 (0x02)  Mud Trap
04 (0x04)  Sticky Trap
06 (0x06)  Grimy Trap
08 (0x08)  Summon Trap
10 (0x0A)  Pitfall Trap
12 (0x0C)  Warp Trap
14 (0x0E)  Gust Trap
16 (0x10)  Spin Trap
18 (0x12)  Slumber Trap
20 (0x14)  Slow Trap
22 (0x16)  Seal Trap
24 (0x18)  Poison Trap
26 (0x1A)  Selfdestruct Trap
28 (0x1C)  Explosion Trap
30 (0x1E)  PP-Zero Trap
32 (0x20)  Chestnut Trap
34 (0x22)  Wonder Tile
36 (0x24)  Pokémon Trap
38 (0x26)  Spiked Tile

Example

Notes:

  • Every couple of bytes is written in reverse order due to the little-endian form.
  • The probability values are set in order to get 10000 as last value, just for convenience. All the original probability values in the ROM are organized so, probability just to make it easier to read as raw code.
Code    Description
----  ---------------
0000  Value is 0: there are no Trip Trap
8306  Value is 1667: there are 16.67% Mud Trap
050D  Value is 3333, subtracted by the previous is 1666: there are 16.66% Sticky Trap
8813  Value is 5000, subtracted by the previous is 1667: there are 16.67% Grimy Trap
B415  Value is 5556, subtracted by the previous is 556: there are 5.56% Summon Trap
0000  Value is 0: there are no Pitfall Trap
0000  Value is 0: there are no Warp Trap
0000  Value is 0: there are no Gust Trap
0000  Value is 0: there are no Spin Trap
0000  Value is 0: there are no Slumber Trap
0000  Value is 0: there are no Slow Trap
621E  Value is 7778, subtracted by the previous is 2222: there are 22.22% Seal Trap
0000  Value is 0: there are no Poison Trap
0000  Value is 0: there are no Selfdestruct Trap
0000  Value is 0: there are no Explosion Trap
1027  Value is 10000, subtracted by the previous is 2222: there are 22.22% PP-Zero Trap
0000  Value is 0: there are no Chestnut Trap
0000  Value is 0: there are no Wonder Tile
0000  Value is 0: there are no Pokémon Trap
0000  Value is 0: there are no Spiked Trap