diff --git a/db/names.tsv b/db/names.tsv index 4779a0c..cd8acc0 100644 --- a/db/names.tsv +++ b/db/names.tsv @@ -3440,3 +3440,4 @@ 009f5d60 Weapon::fire_bomb ? ECX is a Weapon; calls Entity_Player::FireBomb(pos, vel, owner) and returns the bomb (was a ZHL prefix match Room::MamaMegaExplosion) 007c7c60 Entity_Player::update_purity_glow ? ECX is an Entity_Player; refreshes the Purity glow costume (was a ZHL prefix match Entity_Knife::Init) 005441e0 NpcHelper::tarboy_is_creep_near ? ECX is the Tar Boy, EDX a Vector*; true when a creep 1000.26 (1000.45 too for a friendly one, flag 0x20000000) lies within 26 (676 squared) of the point; NpcAI::ENTITY_TARBOY 005442a0 gates Attack2 on it at Isaac's lead +00813d00 Room::greed_shop_slot_type ? ECX is a seed; seed % 10 -> 3,1,0,4,8,10,5,2,6,11: Room::init_shop_item_slots 00813d90 Greed branch fills the last four shop slots with it diff --git a/notes/systems/greed.md b/notes/systems/greed.md index 2819958..ef0fb7c 100644 --- a/notes/systems/greed.md +++ b/notes/systems/greed.md @@ -111,3 +111,44 @@ stages.json greed (floors with stage lists, rooms map incl. the antechamber, wav pool for the second treasure room), room_sets rooms[]/trigger, music.json layer/waves and stage keys, effects' chance/whole for the jam. Not ported: Greed's item pools (the Rebirth version uses the base game's pools), the achievements (0xf6's faster timers included), the per-wave seed, shop levels, the 6.2 -> 6.5 swap. + +## Pass 2 (2026-10-26, isaac-classic rif/greed-2) + +- Item pools: `ItemPool::GetPoolForRoom` 0x732dc0 reads a room type -> pool table at ItemPool+0x69c (normal) or +0x718 + (Greed/Greedier). Game ctor 0x6f1020 fills the normal one (shop 1, treasure 0, boss 2, secret/super secret 5, curse + 0xc, challenge 0, library 6, devil 3, angel 4, dungeon/boss rush/isaacs/barren/dice 0, chest 8, black market 1, + planetarium 0x1a, ultra secret 0x18, the rest -1) and maps it for Greed: treasure 0 -> 0x10 greedTreasure, shop 1 -> + 0x12 greedShop, boss 2 -> 0x11 greedBoss, devil 3 -> 0x13 greedDevil, angel 4 -> 0x14 greedAngel, secret 5 -> 0x16 + greedSecret, curse 0xc -> 0x15 greedCurse; the others stay. Room type 3 draws a pool by seed % 0x1e. + `ItemPool::get_chaos_pool` 0x737010: in Greed only pools 0x10..0x16 by total weight. +- Shop level (Room::Init 0x7f2800): Greed = stage 1..5, stage 6 5 in the start room else 1; outside Greed by the + store upgrades 0x97..0x9a. In Greed it only picks the Shop backdrop's wall art (Backdrop::pre_render_walls 0x937420: + backdrop 0x14 in a shop or any Greed room); `Room::init_shop_item_slots` 0x813d90 has a fixed Greed branch (slots 3, + 0, 8, 9, then four by `Room::greed_shop_slot_type` 0x813d00: seed % 10 -> 3,1,0,4,8,10,5,2,6,11). +- Entity_Slot::Init 0x65d200: Greed turns variant 2 (Blood Donation Machine) into 5 (Devil Beggar), confirmed. +- Button (update_greed_button 0x9839f0) calling a wave: each Taurus holder (or zodiac 299) without the 299 temporary + effect gets its speed bonus zeroed, its colour reset and the 299 effect re-added (cooldown = the item's maxCooldown): + what TriggerNewRoom_TemporaryEffects 0x7a8350 does entering an uncleared room. Not for a wave the timer brings. +- Ultra Greed (NpcAI::ENTITY_ULTRA_GREED 0x59edb0), beyond greed_mode.md: + - Init (state 0): with no 294 in the room, one 294.0 per door slot the layout has (bit in RoomConfig doors at + +0x38), at that slot's door grid position, I1 = slot. The door (ENTITY_ULTRA_DOOR 0x5a5b60) moves 23.08 px in + from it, rotation slot*90-90. Shield (0xc40) 65, Greedier 45; achievement 0xf6 (or a daily/debug run) makes them + 85/60 and multiplies health by 1.15 (and the coins' age timers by .9 in ENTITY_ULTRA_COIN): EIT2, not Greedier. + - Anger h = clamp((I2 + 15 - 15 * health share) / 25), I2 (0xbc4) from eaten coins, -1 every 30 frames. + - Slot (state 100): SlotStart, SlotSpinningFast for 51 - 21h ticks, then a SlotSpinningOutcomes frame Random & 3: + 0 key coins (293.1) one per 8 ticks, as many as there are 294s (two a beat below 20% health), the k-th taking + door k's slot as I1; 1 bomb (293.2) 12 one per 2; 2 heart (293.3) 7 one per 7; 3 spinner (293.0) 7 one per 7. + Each at FindFreePickupSpawnPosition(GetRandomPosition(0)) with a unit random velocity. Back to walking (4) once + past count*period and past 60 - 40h ticks (spinners: no minimum). + - Shoot: WeightedOutcomePicker {3, 4, 5, 50} x100; FireProjectiles mode 3/4/5 at 11 (FallingAccel .06, FallingSpeed + 10, Height -80, Scale 1.6, variant 7) or FireBossProjectiles(6) for 50; Greedier Spread x1.6 and BulletFlags |= 2. + FireProjectiles (Entity_NPC 0x6cb4xx): mode 3 = (1,0), (.914, +-.407S); 4 = (.99, +-.139S), .9(.914, +-.407S); + 5 = (1,0), (.978, +-.208S), (.914, +-.407S). + - Tantrum (200): on Stomp1/Stomp2 a Keeper (86) at (x, y + 1.3 size) while fewer than 4 (UG); Greedier: two 293.2 + subtype 1 at random free spots, unit random velocity. Ends past 75 / (1 + h) ticks. + - Death (byte 0x173 set -> STATE_TURN_GOLD 9000): projectiles (type 9) die, every valid boss enemy is killed by it, + 294s go to state 3 (close); "Death" (121 frames) with bling; its "Disappear" event (frame 64) plays 0x1af/0x1ab, + 100 gold particles, spawns a penny 5.20.1 at it moving (0, -3) and calls Room::TurnGold; at the clip's end 9001 + ("Final", the statue). In Greedier (difficulty 3, or 1) variant 0 Morphs to 406.1 as Death ends, state 0x10, + BreakFreeLong (first bestiary encounter) or BreakFreeShort; StartGibs/BreakGibs gold particles, BreakGibs smashes. + - ENTITY_ULTRA_COIN 0x5a4820 variant 2 subtype 1: its blast drops Random & 1 coins (5.20.0) at speed 2.