notes/names: items sweep 13 (pocket slots, D7, D8, D10, D12)
This commit is contained in:
1 parent
a35d75bc73
commit
b44a7432f2
4 files changed
+56
No files matched your search
@@ -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 |
|
||||
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user