notes/names: items sweep 13 (pocket slots, D7, D8, D10, D12)

This commit is contained in:
shweet committed 2026-10-24 22:12:06 -04:00
1 parent a35d75bc73
commit b44a7432f2
4 files changed
+56

No files matched your search

+1
View File
@@ -619,3 +619,4 @@ EntityConfig 0x20 vector_EntityConfig_Boss _bosses load_bossportraits_xml 0069c4
EntityConfig 0x2c vector_string _edenHair EntityConfig::load_players_xml 006998d0: for player id 9 clears vector<string> at +0x2c, reserves 0x80, pushes <hair gfx=>
ItemConfig 0x3c std_map_string_int _collectibleNameMap LuaEngine::Isaac_GetItemIdByName 0086f640 looks up Manager+0x2a440 = ItemConfig(Manager+0x2a404, Isaac::GetItemConfig 0042ca00)+0x3c, string key, int value at node+0x28; ItemConfig::Load 00725570 clears this+0x3c
Camera 0x8c bool _shouldOverride Camera::SetFocusPosition 00944d10: if !+0x8c push pos into ring +0x50 and set +0x8c=1; Camera::update_follow 009446e0 follows ring +0x50 instead of players when set; Camera::ClampedToRoom 00943490 skips X clamp
Entity_Player 0x17a0 int _pocketSlots[8] AddPocketItem/RemovePocketItem/GetMaxPocketItems: 4 (id, type) pairs, type 0 pill 1 card 2 pocket active
Can't render this file because it contains an unexpected character in line 236 and column 126.
+2
View File
@@ -1453,3 +1453,5 @@
009e01b0 glitched_item_effects_run UseActiveItem 0x5b3bc8 sends negative (TMTRAINER) ids here: item ~id of Game+0x67758 runs each effect whose trigger matches param_3 (8 = after the previous one fired) through trigger_effect_execute (items-verify, use_dispatch.md)
006ed580 Entity_Pickup::empty_pedestal variant 100 with a subtype: subtype 0 and the "Empty" animation; a priced one (+0x534) is removed unless kept; hides itemshadow. Spindown Dice below id 1 (UseActiveItem case 0x2d3) (items-verify)
007a3d30 Entity_Player::pocket_use_input logs "Action PillCard Triggered" and uses the pocket (decompile stops at that log: read 0x7a4100+ with --asm); Endless Nameless (trinket 0x4f) at 0x7a41a7: 0.25/0.33/0.5 a copy of the used pill (kind 0) or card (kind 1); caller Entity_Player::Update (items-verify)
007a42b0 Entity_Player::pockets_rotate ACTION_DROP (0xb) triggered: rotates the filled pocket slots (0x17a0..) slot 0 to the back, then SwapActiveItems
005b1890 Game::room_restart_flag_set sets game+0x67744 = 1 after D7's Room::RespawnEnemies
Can't render this file because it contains an unexpected character in line 18 and column 80.
+1
View File
@@ -15,6 +15,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n
| `items/trinkets_cards.md` | Trinkets (Walnut, Torn Pocket, Cracked Crown, Black Feather, Purple Heart, Mysterious Paper, Rainbow Worm, Error, The Twins, 'M, Panic Button), UseCard/UsePill cases |
| `items/items_verify.md` | cases read through use_dispatch: Magic Fingers, Diplopia/Crooked Penny/Jera (CanReroll, CanJeraDuplicate), Pause, Spindown, Teleport 2.0 (GetNonCompleteRoomIndex), Glass Cannon, Tear Detonator, Mom's Shovel dirt patch, Abyss, Aces, Ansuz/ShowMap, Temperance?, Paralysis, Vurp!, Pyromaniac, Immaculate Conception, Candy Heart/Soul Locket, Blessed Penny, Endless Nameless |
| `items/items_sweep_12.md` | Ghost Bombs, Purgatory, Rocket in a Jar, Angelic Prism, orbit layer table, Tinytoma, Daemon's Tail, Guillotine, Mom's Key, Gnawed Leaf, Monstro's Lung, Contract from Below, Tech.5, D4, Dark Bum, Sissy Longlegs, BBF, Adrenaline, Broken Watch, Crown of Light, Vasculitis, Rock Bottom, Sacred Orb and more |
| `items/items_sweep_13.md` | Pocket slots (GetMaxPocketItems, AddPocketItem, drop-key rotation), D7, D8 modifiers, D10 DevolveEnemy, D12 outcome table |
| `characters/` | Rebirth behaviour + port design for tainted characters and Jacob & Esau; `characters_8.md`: T??? poop throw/nuggets/hallowed ground, T.Cain burst tables, T.Eve clot order and tears; `characters_9.md`: AddKnockback, T??? death spill and poop flight, T.Cain burst caller/Daemon's Tail, item pool weights vs crafting, Dark Arts snares, T.Maggy hug, T.Isaac inventory, Flip ghosts, Abyss locusts, T.Lilith cord, Dark 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 |
+52
View File
@@ -0,0 +1,52 @@
# Items sweep 13: system ports
## Pocket slots (Entity_Player::GetMaxPocketItems 0x7ad440)
- Slots are 4 pairs (id, type) at player+0x17a0 (type 0 pill, 1 card, 2 pocket active; the zhl names _actionHoldDrop
for 0x17bc are slot 3's type). GetMaxPocketItems: 1, or 2 with Starter Deck (0xfb), Little Baggy (0xfc) or
Polydactyly (0x1c6); +1 for each pocket active (type 2, id > 0) in slots 0..3.
- AddPocketItem 0x7a3af0: max (+1 when adding a pocket active); when slot 0 and the last slot are both full the first
non-active slot drops (DropPocketItem); the held ones shift down one and the new one goes in slot 0 (slot 1 when slot
0 is a pocket active).
- RemovePocketItem 0x7a4850 / DropPocketItem 0x7a48f0 (slot -1: the first non-active one): the later slots shift up;
a dropped card is 5.300, a pill 5.70.
- FUN_007a42b0 (ACTION_DROP pressed): the filled slots rotate, slot 0 to the back; then SwapActiveItems (Schoolbag).
- TriggerCollectibleRemoved (0x78ff90) cases 0xfb/0xfc/0x1a0/0x1c6: pockets past the new max drop from the back.
- Polydactyly's own pickup spawn is not in the dump under 0x1c6 (likely a table or an offset switch).
## D7 (UseActiveItem case 0x24 @0x5bd779)
- Variant 0 player; not in room type 5 (boss), not in the Beast dungeon (Room::IsBeastDungeon), not type 16 with
subtype 2/3; a further check against 0xd (ICF-named getter); then Room::RespawnEnemies (0x81fd60; its decompile
stops at a KAGE_LogMessage "SpawnRNG seed" the decompiler thinks does not return: read --asm) and FUN_005b1890 sets
game+0x67744 = 1.
## D8 (UseActiveItem case 0x1e @0x5bd184)
- Player _d8DamageModifier 0x193c, _d8SpeedModifier 0x1940, _d8RangeModifier 0x1944, _d8FireDelayModifier 0x1948.
- Four RNG::RandomFloat shares; 5 rounds of offset = (2.0 - sum) * 0.25 computed once per round, each share =
Math::clamp(share + offset, 0, 1) (0x42f2a0, bounds 0.0 / 1.0 from 0xbaa454); then share < 0.5 ? share + 0.5 :
share * 2 (0xbaa2d0 = 0.5). Cache flags 0x1b, EvaluateItems.
- EvaluateItems: fire delay = 30 / (tears * _d8FireDelayModifier) - 1; _damage and the tear damage (0x157c) both
times _d8DamageModifier at the end.
## D10 (UseActiveItem case 2 @0x5ba56f)
- Collects every room entity that has no mortal damage, is not dead and Entity::CanDevolve (0x6a8f80: its
EntityConfig has a devolve list, config+0xa4..0xa8), then Game::DevolveEnemy (0x705480) on each.
- DevolveEnemy: skips flag 0x20000000 and FUN_008667d0; type 0x19c excluded; health share hp/maxHp clamped 0..1 and
champion color kept for enemies; a draw on the room's spawn seed (xorshift 4/3/0x1b) times the summed weights picks
the entry (entities2.xml <devolve id weight>); id 0 returns without change; 999 means type 1000 (an effect: critter);
a ground form of a flyer is moved to a free grid spot; the form is Game::Spawn'd at its position.
## D12 (UseActiveItem case 0x1c @0x5bc8cf)
- Two WeightedOutcomePickers (0xc7f95c: entries whose byte flag is 0; 0xc7f96c: all) over 29 entries of 16 bytes at
0xb62d60: (type, variant, flag, weight). Grid types: poop 14 v0-6 (500, 100, 100, 10, 10, 50, 10), 9 timed spikes
100, 10 web 150, 12 TNT 100, -33 v0/1 fire places 300/150, -292 movable TNT 50, 20 v1 reward plate 10, 20 v9
kill switch 1 (flag 0); then flag 1: 2 rock 500, 3 block 250, 4 tinted 25, 5 bomb rock 25, 6 alt 100, 25 spiked 100,
27 gold 25, 22 SS 5, 8 spikes 100, 11 lock 25, 17 trapdoor 5, 18 crawlspace 3, -33 v2/v3 blue/purple fires 40/40.
- Jump table 0x5c7970/0x5c7984 by grid type: 2,3,4,6,11,22,24,25,27 (if intact, FUN_00499db0) and 8 draw from all;
9, 10 and 12, 14 (if intact) from the flag-0 group; others are left. Fire place entities: variant 0/1 the flag-0
group, 2/3 all (only while collidable); grid entities on their cells are removed. Each pick uses RNG(Next, 0x23).
- Spawn: a negative type is an entity (Game::Spawn(-type, variant)); every spawned cell also gets effect 1000.15.