names/notes: characters pass 8 (Forgotten knives, T.Forgotten, Butter Bean impact, crafting retries, T.Eden, leads)
This commit is contained in:
1 parent
ba6ef6dcb0
commit
5bec6276e7
2 files changed
+54
No files matched your search
@@ -733,3 +733,5 @@
|
||||
007dbeb0 Entity_Player::twins_duplicate_familiars The Twins: param copies of a random owned familiar item for the room, else Brother Bobby/Sister Maggy (called from 007a6c50 with RandomInt(mult+1)); not HistoryHUD::RecomputeAll (trinkets-cards)
|
||||
007abf80 Entity_Player::active_used_post after UseActiveItem: Book of Virtues, M trinket active reroll (quality weights 0xb6bc60), Butter!/drop (trinkets-cards)
|
||||
007a6c50 Entity_Player::room_enter per-player new room setup: The Twins roll, enter position, greed wave clamp (trinkets-cards)
|
||||
007300d0 Item::IsAvailable ItemConfig item `this`; flags 1 tag/mode filters, 2 achievement unlocked, 4 character filters (Tainted Lost offensive/quality), 8 mod callbacks (characters-8)
|
||||
00793970 Entity_Player::trigger_collectible_effect_removed switch on the temporary effect's item id; 0x2c1 Dark Arts sets field 0x2004 (end blast pending) (characters-8)
|
||||
|
Can't render this file because it contains an unexpected character in line 18 and column 80.
|
@@ -51,3 +51,55 @@ What the port took from the code. Reprint any function with `./decompile.sh 0xAD
|
||||
scale, TEAR_DARK_MATTER (124), TEAR_FEAR (20) 1 in max(1, 5 - luck*0.1); 3 eternal: x1.5, x1.3 scale, homing;
|
||||
4 gold: TEAR_MIDAS (53) 1 in max(3, 9 - luck*0.25), gold colour; 5 bone: TEAR_BONE (51), variant 29; 6 rotten:
|
||||
TEAR_MULLIGAN (11). Subtypes 0, 6, 7 get the blood tear look.
|
||||
|
||||
## the_forgotten knife hits (Entity_Knife::HandleCollision 0x9666f0; knife 8.1 club, 8.2 Bone Scythe)
|
||||
|
||||
- Thrown (`_isFlying`): variant 2 deals (0.4 + 0.4 * clamp(Charge(+0x460) * _knifeVelocity / 3, 0, 1)) x
|
||||
collisionDamage; other knives max(1.5x, x + 1.75). Not flying (Mom's Knife at rest/charging): (2 + 4 * clamp(...)) x.
|
||||
- entities2: both club and scythe collisionRadius 16; their anm2 `tip` null sits 20 (club) / 24 (scythe) out in Swing.
|
||||
|
||||
## tainted_forgotten (player type 0x23)
|
||||
|
||||
- `take_damage_impl` 0x7729d0 returns 0 for 0x23 (like item 276), so his body takes nothing yet stays a collidable
|
||||
player: shots and enemies stop on it. `HandleCollision` 0x78e1f0: while thrown (own flag 0x4000000, not
|
||||
0x20000000) an enemy contact halves his velocity.
|
||||
- Landing (player update 0x782af0, height offset back to 0 with flag 0x4000000): ShakeScreen(4), SOUND_BONE_BOUNCE
|
||||
(499) and SOUND_BONE_DROP (467).
|
||||
|
||||
## butter_bean (Game::ButterBeanFart 0x704360; Entity::AddKnockback 0x6b7a80; Entity::Update 0x6ae820)
|
||||
|
||||
- Pushes vulnerable enemies (and pickups, bombs; reflects shots, deflects projectiles-as-tears): strength
|
||||
2*min(7, radius - dist), x1.5 with trinket 134 (Wiggle?) multiplier > 1, confusion 90 at > 2; mass > 20 x0.5,
|
||||
> 30 x0.2, > 50 x0.015 (as decompiled); velocity = dir * that + old * 0.5; 10 damage when doubled.
|
||||
- With the knockback flag: `AddKnockback(dir*16, floor(lerp(...)), takeImpactDamage=1)` sets entity flags 0x8000
|
||||
(knocked back) and 0x10000 (impact) in the high word.
|
||||
- `Entity::Update`: during knockback (velocity = knockbackDirection, x0.95 a tick) a grid collision with the impact
|
||||
flag deals `10 + 2 * (stage - 1)` (stage from `_get_index_plus_one_if_kind_4_5`, +1 for stage types 4/5) once,
|
||||
reflects the knockback x0.8 and halves its countdown.
|
||||
- Tainted Azazel's sneeze (0xa01020) uses `AddKnockback(dir*20, 14, 1)`: the same impact damage.
|
||||
|
||||
## bag_of_crafting retries (CalculateBagOfCraftingOutput 0x7d9d00; Item::IsAvailable 0x7300d0)
|
||||
|
||||
- Weights use the pools' current item weights (+4 of each 0x18-byte pool entry) for items passing
|
||||
`IsAvailable(1)`; quality band from the bag's value (-5 for pools 3, 4, 5).
|
||||
- Draw: up to 20 times, each stepping the seed, the drawn item must pass `IsAvailable(6)` (unlocked, character
|
||||
filters); else 25 (Breakfast). No quest tag check here.
|
||||
- `Item::IsAvailable(flags)`: 1 = mode/seed/challenge tag filters (0x10000000, 0x20000000, 0x20000 bits of the tag
|
||||
word at +0xb8), 2 = achievement unlocked, 4 = character filters (Tainted Lost: offensive 0x100000 only, quality < 2
|
||||
refused on a 1-in-5 seeded roll; Lost/Keeper birthright 0x200000/0x400000 tags; Lil' Chest-like 0x2b3 rules),
|
||||
8 = mod callbacks.
|
||||
|
||||
## tainted_eden (take_damage_impl 0x7729d0, type 0x1e)
|
||||
|
||||
- No reroll when the damage flags hold 0x20 (red hearts) or 0x10000000 (no penalties), or while Glitch plays.
|
||||
Sound 0x253; stats re-rolled into the `_eden*` fields; trinkets replaced by pool trinkets; pocket items (not pocket
|
||||
actives) by a pill or card 50/50 (PHD 251 forces pills unless False PHD 252, and the other way).
|
||||
|
||||
## Leads not ported
|
||||
|
||||
- Tainted Magdalene's hug (HandleCollision 0x78e1f0, type 0x16): touching a vulnerable enemy while field 0x1ef8 < 3
|
||||
spawns knife 8.1 subtype 4 (a club swing) toward it, damage from GetTearHitParams with scale (2*field_0x157c)/damage.
|
||||
- Dark Arts (705): fire input ends the effect (0x782af0); while active (0x794e50) enemies and shots within size+10 of
|
||||
him not yet hit get a child effect and add their collision damage to field 0x2008; on removal (0x793970 sets
|
||||
field 0x2004) the end blast runs once the marks are gone: DamageRadius, screen shake, poof.
|
||||
- Abyss locusts (familiar 3.231): size from a 5-entry quality table at config +0x2a46c (Entity_Familiar::Update).
|
||||
Reference in new issue
Block a user