DreamNexus
DreamNexus copied to clipboard
Dungeon floor unknowns
From PaulZ on Discord:
Byte52is the chance for a mystery house to spawn, andByte53is a flag for whether it should be small or large (0is large,1is small)
balanceFloorInfoByte55is the chance for a monster house
Byte48is the chance for a Kecleon shop
Byte44is the buried item set indexByte45seems to be the max number of buried items
Byte4Cis 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:
- [ ] short02
- [ ] short30
- [ ] short32
- [ ] byte2D
- [ ] byte2E
- [ ] byte2F
- [ ] byte37
- [ ] byte38
- [ ] byte39
- [ ] byte40
- [ ] byte41
- [ ] byte46
- [ ] byte49
- [ ] byte4A
- [ ] byte4F
- [ ] byte50
- [ ] byte51
- [ ] byte56
- [ ] byte57
- [ ] byte58
- [ ] byte5A
- [ ] byte5B
- [ ] byte5C
- [ ] byte5D
- [ ] byte5E
- [ ] byte5F
- [ ] byte60
- [ ] byte61
Entries 26, 28, 44, 45, 48, 4B, 4C, 4D, 4E, 52, 53 and 55 handled in commit d44f4d1309777c3290f03a64485ebc26c51cde69.
More entries from PaulZ:
Byte3Aseems 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)Byte3Bis the Kecleon shop itemset indexByte3Eis the monster house itemset indexByte3DandByte3Fseem to be the itemset index for the contents received from normal and deluxe treasure boxByte42is the min item densityByte43is 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.
New findings by PaulZ
Byte47is the chance of the item being sticky
Byte47 added on commit 2ec18b8e334273cf4dabe354857a9d08e4705db7.
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