tech-ticks / DreamNexus

ROM editor for Pokémon Mystery Dungeon: Rescue Team DX
MIT License
21 stars 5 forks source link

Dungeon floor unknowns #132

Open tech-ticks opened 2 years ago

tech-ticks commented 2 years ago

From PaulZ on Discord:

Byte52 is the chance for a mystery house to spawn, and Byte53 is a flag for whether it should be small or large (0 is large, 1 is small)

balanceFloorInfoByte55 is the chance for a monster house

Byte48 is the chance for a Kecleon shop

Byte44 is the buried item set index Byte45 seems to be the max number of buried items

Byte4C is the trap density

balanceFloorInfoShort26 - Minimum money stack size balanceFloorInfoShort28 - Maximum money stack size Byte4B - Mininum trap density Byte4C - Maximum trap density Byte4D - Minimum enemy density Byte4E - Maximum enemy density

Current unknowns:

StrikerX3 commented 2 years ago

Entries 26, 28, 44, 45, 48, 4B, 4C, 4D, 4E, 52, 53 and 55 handled in commit d44f4d1309777c3290f03a64485ebc26c51cde69.

StrikerX3 commented 2 years ago

More entries from PaulZ:

Byte3A seems to be the normal itemset index, though there is something strange about how this works using the default values in the reset dungeons (maybe one of the other unknown bytes is interconnected to this one) Byte3B is the Kecleon shop itemset index Byte3E is the monster house itemset index Byte3D and Byte3F seem to be the itemset index for the contents received from normal and deluxe treasure box Byte42 is the min item density Byte43 is the max item density

Also, ItemSetIndex seems to be the number of rooms in a floor instead.

All of the above have been added on commit a5478eb3424e9e7224139f3358650f99d0bad71b.

tech-ticks commented 2 years ago

New findings by PaulZ

Byte47 is the chance of the item being sticky

StrikerX3 commented 2 years ago

Byte47 added on commit 2ec18b8e334273cf4dabe354857a9d08e4705db7.

tech-ticks commented 2 years ago

Even more findings by PaulZ:

Byte34 is some sort of limit for the floor height, and Byte35 is some sort of limit for the floor width. Height gets clamped to 18 / Width gets clamped to 20 if values are too low for the room density The game also overrides the room density and generates 3 rooms + stair room