Greed mode and Ultra Greed findings

This commit is contained in:
shweet committed 2026-10-24 13:11:26 -04:00
1 parent ad8f933086
commit 787df162dc
3 files changed
+128

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n
| folder | contents |
|---|---|
| `entities/` | per-entity findings from the monster-fidelity passes (state machines, timings, speeds, what the port changed or skipped) |
| `systems/greed_mode.md` | Greed waves' coins and music, Ultra Greed/coins/doors states, donation machine spawn |
| `characters/` | Rebirth behaviour + port design for tainted characters and Jacob & Esau |
| `_tools/` | the one-shot port-side patch scripts those passes used (they edit isaac-classic data; kept for reference, not maintained) |
| `../src/anm2`, `../src/rooms` | reimplementations of the anm2 player and .stb/RoomConfig loader, with their own decompile docs and tests |
+17
View File
@@ -0,0 +1,17 @@
# Greed mode: waves, coins, Ultra Greed (found 2026-10-24, rif/ultra-greed)
- `Room::SpawnGreedModeWave` 0x816910: wave coins (ebp-0x54): normal 2 (Greedier 1), boss +2, Greedier wave 9 +1, 11 +3,
final wave 0, Lost-pressed flag (0x1839c & 0x800) -1, +1 when spawned-wave counter (0x18374) %3==0. Paid when the new
wave index > last paid (0x1836c): pennies (5.20.1) at FindFreePickupSpawnPosition near grid (width/2, 4), AppearFast.
Music: normal waves EnableLayer / 0x26 in stage 0x18; boss 9 (0x1a flag, 0x29 stage 4/5); final 0x17.
- 0x801ee0 (Room::Update greed part): wave timer; stage 7 boss room: Isaac above y 320 starts boss music 9, flag 0x1000.
- 0x7fb250 (named Entity_Bomb::Update, really the room-clear award): greed difficulty skips normal awards; boss 62 room
clear spawns 6.11 Greed Donation Machine per player 80 px random dir (only 6.11 spawn in the exe), and 5.340 big chest.
- `NpcAI::ENTITY_ULTRA_GREED` 0x59edb0: states 2 hang (60) 4 walk 3 idle(30) 100 slot 200 coin tantrum 300->310 dash
400 guard (coins>=6, ends <5) 500 spin once 510 spin 600 shoot 700/710 smash (v1) 6 jump (v1) 9000 death/morph 9001 final.
Anger h=clamp((i2+15-15*hpfrac)/25); pick every IsFrame(15) by WeightedOutcomePicker (weights in the code).
Slot faces: frame0 key x doors /8 ticks, 1 bomb 12 /2, 2 heart 7 /7, 3 spinner 7 /7.
- 0x59e730 smash helper: shockwave, 60 blast, sets doors state 8/9 (pairs via 0x59e630 slot map 0-2,1-3,4-6,5-7) or 10.
- 0x59e2a0 heal: hp += maxhp*0.00125*n, i2 += n (cap 25).
- `NpcAI::ENTITY_ULTRA_COIN` 0x5a4820: timers 225/60/150 * (0.5+0.5*UG hpfrac) (x0.9 hard); spinner decays mhp/330 a tick.
- `NpcAI::ENTITY_ULTRA_DOOR` 0x5a5b60: state 13 open, greed gaper (299) every 10 ticks for 80; 8/9 laser angle slot*90.