notes: characters pass 10 (Berserk!, Anima Sola chain, umbilical cord, Dark Snare, club throw, screen shake)
This commit is contained in:
1 parent
32c608fb18
commit
0b7ee2703d
2 files changed
+121
-1
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n
|
||||
| `items/items_sweep_13.md` | Pocket slots (GetMaxPocketItems, AddPocketItem, drop-key rotation), D7, D8 modifiers, D10 DevolveEnemy, D12 outcome table |
|
||||
| `items/items_sweep_14.md` | Familiar AIs (Bob's Brain, Lost Fly, Angry Fly, Boiled Baby, Lil Abaddon, Bumbo), room systems |
|
||||
| `items/items_verify_2.md` (+ `items_verify_2_{actives_flash,actives_rif,cards,pills,trinkets,passives_flash,passives_rif_a,passives_rif_b}.md`, one per batch: UseActiveItem/UseCard/UsePill cases, Tarot Cloth's boosted takes, EvaluateItems stat groups, GetTearHitParams chances, trinket sites) | second verify pass: coin trinkets' per-coin rolls (pow(0.75, worth)), Mega Bean's wave and Game::ButterBeanFart, Tear Detonator's Belial branch, False PHD's UsePill tail and damage, Tarot Cloth's boost flag |
|
||||
| `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 |
|
||||
| `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; `characters_10.md`: sound ids by id, Berserk!'s stacking/death deferral/sounds/bar, T.Bethany familiar drops x0.75, ShakeScreen and the camera shake, Weapon_Bone charge/throw (Knife::Shoot) and swing reflect, eternal heart on a last soul heart, Anima Sola's 1000.193 chain (Effect::Update by objdump), Dark Esau passes and Chained state, umbilical cord points/hits, Dark Snare timing, liquid poop creep, T.Azazel Birthright sneeze |
|
||||
| `_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,120 @@
|
||||
# Characters pass 10 (isaac-classic rif/characters-10)
|
||||
|
||||
What the port took from the code. Reprint any function with `./decompile.sh 0xADDR`; the 1000.x effect cases sit in
|
||||
`Entity_Effect::Update` (0x5d4380, too big to decompile): read them with `./decompile.sh --asm 0x5d4380 60000` and its
|
||||
variant jump table at 0x606f8c (index = variant - 1, read from bin/isaac-ng.exe).
|
||||
|
||||
## Sounds
|
||||
|
||||
- sounds.xml has explicit ids (`<sound id="N">`); count by id, not by position. Ids used here: 592 BerserkStart,
|
||||
593 BerserkTick, 594 BerserkEnd, 650 isaacroar, 611 chains_trapenemy, 612 chains_rattle, 613 chains_break,
|
||||
495 whip_hit (0x1ef), 305 ghost roar (0x131), 112 monster grunt 4 (0x70), 119 monster yell (0x77), 483 flame_burst
|
||||
(0x1e3), 80 black_heart_burst (0x50), 507 tooth_and_nail_tick (0x1fb).
|
||||
|
||||
## Berserk! (collectible 704, null/temporary effect 0x2c0; Tainted Samson 0x1b)
|
||||
|
||||
- TemporaryEffects::AddEffect 0x930220: entries {ItemConfig*, count, cooldown, ?}; adding to an existing entry adds the
|
||||
count (param_3) and the cooldown (entry[2]).
|
||||
- trigger_npc_death 0x7a0080: on a kill (NPC flag 0x800000) while 0x2c0 holds: AddEffect({config, 0, add}, 0, 1) with
|
||||
add = min(config+0x78 (items.xml cooldown 150) - ticks left, 30), 90 for type 0x1b with Birthright (0x26b): a copy
|
||||
more each kill, the time topped up to at most 150. Then every projectile (type 9, not dead, not flag 0x80000000)
|
||||
within 60 (DAT_00baa950) of him is killed (+0x173 = 1).
|
||||
- EvaluateItems 0x763570: weapon type 10 (bone) halves the fire rate (~line 850); Berserk adds +2 fire rate after the
|
||||
multipliers (~line 921), +3 damage once (HasCollectibleEffect, ~line 1406), speed += GetCollectibleEffectNum * 0.4
|
||||
(~line 2150); while it holds the weapon is type 10 (EnableWeaponType(10)).
|
||||
- TakeDamage 0x7729d0 ~line 2570: with 0x2c0 held a hit that empties his health does not kill him (local_106 skips
|
||||
the death branch); trigger_collectible_effect_removed 0x793970 case 0x2c0 plays 594 and runs
|
||||
try_trigger_astral_projection; UseActiveItem case 704 plays 592 and 650.
|
||||
- The berserk timer bar: FUN_0075ea40 draws a charge bar (player +0xcbc) at ticks left * 100 / 150 (only with the
|
||||
charge-bar option, game +0x2a38f). Entity_Player::Update tints him red by sin(frame * pi/2) / sin(frame * 0.4 pi).
|
||||
|
||||
## Tainted Bethany (0x24) familiar drops
|
||||
|
||||
- Entity_Familiar::TriggerRoomClear 0x62aab0: for the player type 0x24 every sack-like familiar's chance is x0.75
|
||||
(and Lil Chest's / variant 0x52's random roll x0.75 before the thresholds; 0x5e/0x39 counts by RandomInt(100 or 80) *
|
||||
4/3). The deterministic pattern `(int)(n * c) < (int)((n + 1) * c)` (n = room clears & 0x3ff) spawns every 1/c rooms.
|
||||
|
||||
## Screen shake
|
||||
|
||||
- Game::ShakeScreen 0x703670 sets game +0x26508 = ticks (and pad vibration); the game update counts it down; the
|
||||
camera (FUN near all.c 806913): every third frame (game +0x264f8 % 3) a 10-px offset a random way, else
|
||||
2 * random unit - the last offset, times min(1, ticks / 11), pushed into a ring buffer (smoothed by FUN_00943190).
|
||||
|
||||
## The Forgotten's club (Weapon_Bone, Entity_Knife variants 1 club, 2 scythe, 3 jawbone, 4 bag, 9 axe, 10/11 swords)
|
||||
|
||||
- Weapon_Bone::GetMaxCharge 0x9feeb0: MaxFireDelay (+0x10) * 3, * 2 with weapon modifiers 0x80e (not 0x1).
|
||||
- Weapon_Bone::Fire 0x9fa450 ~line 720: charge = max(0.2, min(charge, max) / max); range = player +0x1480 (tear range
|
||||
px, 260 without a player), at most 300 (100000 with an unidentified collectible), * 0.9, at least 200; then
|
||||
Entity_Knife::Shoot(charge, range) per knife.
|
||||
- Entity_Knife::Shoot 0x966ef0: distance (+0x45c) = charge * range; accel -2 (-1 with some tear flags), x0.75 for
|
||||
variants 1-4/8/9, x0.75 more with another flag set; start speed (+0x448) = sqrt(|distance / (accel * -0.5)|) * -accel,
|
||||
i.e. sqrt(2 * distance * |accel|): it slows to a stop at the distance and comes back.
|
||||
- Entity_Knife::UpdateSwingHits 0x9688d0: swing hit = 3 x collision damage (1.5 x for variant 2, the scythe; 3 for 9);
|
||||
a reflect speed = mass (3) * 18 / 3 = 18 (scythe 9 / 3 = 9... mass * 9 / 3); projectiles (type 9) under 50 high in
|
||||
the swing are Reflected away from the player at it (variant 4, the bag, kills them instead); the swing is measured
|
||||
from the player's position.
|
||||
- EvaluateItems ~line 1425: HasWeaponType(10) && Mom's Knife (0x72): damage + 4 (the stat, before every scale).
|
||||
|
||||
## Eternal heart on the last soul heart (take_damage_impl 0x7729d0 ~lines 2271/2352)
|
||||
|
||||
- With eternal hearts > 0, no red and no bone hearts, and the hit would empty the soul hearts: the hit's half hearts
|
||||
less the eternal count (1), eternal hearts cleared. So an eternal heart blocks a half-heart hit on a last soul heart
|
||||
(Tainted Jacob's ghost, Lost-like, blocking one hit).
|
||||
|
||||
## Anima Sola (UseActiveItem 0x2d2 at 005c63ca; effect 1000.193 at 005e5df1 in Entity_Effect::Update)
|
||||
|
||||
- Use: candidates are active enemies with collision class != 0 and not flagged; distance squared to the player, -1 for a
|
||||
Dark Esau the player spawned, +1e6 for one already chained (FUN_0042c710). None: the Dark Esau wait null effect
|
||||
(0x6d) gets 10 ticks left. Else timeout 150 (200 for types 0x25/0x27 with Birthright; halved in one game mode,
|
||||
FUN_00429550 on game +0x26614); spawns 1000.193 subtype 0 targeting it (a second for a Birthright split partner, at
|
||||
the pair's midpoint +-10 along them).
|
||||
- 1000.193 subtype 0, first tick: three subtype-1 children parented to it at its place + FromAngle(random * 360 + i *
|
||||
120) * (80 + target size), SOUND 611; then each tick while the target lives: frame >= 6: ShakeScreen(8) once; a Dark
|
||||
Esau (type 0x362, alive, state not 1 or 0x12): target position cleared, state 5, its +0xbec = the chain, +0x188 = 4;
|
||||
any other target: Entity_NPC::hold_set(4, 0) (held in place); target velocity *= timescale 0.9; timeout 1..90:
|
||||
white flash every 30 (>= 30 left), 8 (>= 16) or 3 ticks. Target gone or dead: SOUND 613, removed.
|
||||
- 1000.193 subtype 1 (an anchor): end point (+0x334) = lerp(its place, the parent's, parent frame / 15); each tick the
|
||||
parent's target gets velocity += (anchor - target) * 0.06. Parent gone: 1000.163 chain gibs every 15 px along it.
|
||||
- Dark Esau state 5 (Chained, 0x5542e0 case 5): friction x0.8 twice, velocity -= resized(player - him, 1.4) (straining
|
||||
away); the chain gone: Charge at its last frame, state 9, stateFrame 30, target the player (a 60-tick dash).
|
||||
- NpcAI::ENTITY_DARK_ESAU runs in three passes (Entity_NPC::Update sets +0xb74 = 1 around the AI dispatch when
|
||||
+0xf18 & 1; HandleCollision 0x6cd410 sets 3): b74 1, states 8/9 (both dashes): each interval tick every vulnerable
|
||||
enemy within 10 takes 9 + the stage (`_get_index_plus_one_if_kind_4_5`: stage, +1 on alt paths) and AddBurn(150,
|
||||
5.0), enemy shots within 10 die; b74 3 (collision): an NPC he touches takes 30 once (hit list).
|
||||
- Dark Esau's sounds: Charge 0x70 (112 monster grunt 4), dash 0x77 (119 monster yell) + 0x1e3 (483 flame_burst); his pit
|
||||
(variant 1) HoleOpen plays 0x268 (616 dark_esau_open), ShakeScreen(6) on Shoot, HoleIdle until stateFrame > 150.
|
||||
tools/reference/rebirth/sounds.json in isaac-classic maps every sound id to its file.
|
||||
|
||||
## The umbilical baby's cord (Entity_Familiar::ai_umbilical_baby 0x431be0)
|
||||
|
||||
- Cord points (UmbilicalBabyData +0x8.., count +0x14): point 0 = the player + body move direction * (6, 2), height -13;
|
||||
point i (u = i / (n - 1)) on the quadratic Bezier player -> player + aim * 234 -> the baby's next position, height
|
||||
((1-u)*-13 + u*-15)(1-u) + ((1-u)*-13 + u*-20)u. Then each point i >= 1 moves along its segment's normal by
|
||||
sin(2 pi * i * 0.4 * max(0, 15 - t) / n) * (n - i) * 2 * max(0, (t - 6)(15 - t) / 2) / n.
|
||||
- Hits (t > 4): capsule player -> baby, radius 16 (x1.5 with BFFS! 0xf7; Tainted Lilith 0x20 with Birthright: +1 per
|
||||
linked baby in its _child chain up to 30, damage +3 per link), damage collision damage x3; grid entities in the
|
||||
capsule hurt; enemies (not friendly, hit list) knocked 900 / (mass + 50) away from the player (unless flag
|
||||
0x4000000), hurt (sound 77 meaty deaths at pitch 1.5 on an accepted hit), projectiles under 50 high Reflected at 18
|
||||
away from the player, pickups/bombs pushed at 18; the fling's first hit plays 0x1ef (495 whip_hit) and a 1000.2
|
||||
splash at the nearest cord point, velocity 6.
|
||||
|
||||
## Dark Snare (1000.194, Entity_Effect::Update at 005e6831)
|
||||
|
||||
- While its target lives: hold_set(4) and a colour for 4 ticks; when the snare dies (its timeout set by the chain):
|
||||
a shot target Dies, an enemy takes the snare's collision damage (+0x388) with its tear flags; Book of Virtues (0x248)
|
||||
wisp 0x2c1 on a mortal hit; SOUND 506 (tooth_and_nail) at pitch 1 + random * 0.2... and a 1000.15 poof; then its
|
||||
child snare (+0x3c0) gets SetTimeout(3): the chain goes off 3 ticks apart.
|
||||
- Tainted Judas (0x18) with a collectible (Birthright) reaches 30 farther (FUN_00794e50), with a ring effect.
|
||||
|
||||
## Liquid poop creep (1000.195, UsePoopSpell case 8)
|
||||
|
||||
- Spawned with timeout 36 (+0x45c/+0x460), parent the player, sounds 37 (fart) and 149 (sink drain gurgle, pitch 1.5).
|
||||
Its case at 005e7d5c (to 005e914a) is the shared creep handler (trinket multipliers 1.65/1.9/2.15, colours,
|
||||
spreading puddles every 15 interval ticks): not read through.
|
||||
|
||||
## Tainted Azazel (0x1c)
|
||||
|
||||
- fire_hitscan 0xa01020: the sneeze's scale is 2 with Birthright (0x26b): its capsule centre scale * 26 + 12 ahead
|
||||
(38, 64). GetWeaponModifiers 0x779a20 gives him modifier 0x200; Weapon_Brimstone::Fire 0x9ff360 halves a laser value
|
||||
(local_8c = (30 / (fire delay + 1)) * 0.2) under it when not local_79: likely his shorter beam (unconfirmed).
|
||||
- Entity::Update's knockback countdown (+ the 0.95 shrink) applies to every entity, flyers too.
|
||||
Reference in new issue
Block a user