notes: Gigante Bean

This commit is contained in:
shweet committed 2026-10-24 17:53:09 -04:00
1 parent 5bec6276e7
commit 697b5af833
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ What the port took from the code. Reprint any function with `./decompile.sh 0xAD
## butter_bean (Game::ButterBeanFart 0x704360; Entity::AddKnockback 0x6b7a80; Entity::Update 0x6ae820) ## butter_bean (Game::ButterBeanFart 0x704360; Entity::AddKnockback 0x6b7a80; Entity::Update 0x6ae820)
- Pushes vulnerable enemies (and pickups, bombs; reflects shots, deflects projectiles-as-tears): strength - 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, 2*min(7, radius - dist), Gigante Bean (trinket 134) doubles the radius and push (x1.5 more at multiplier 2, confusion 90 at 3); mass > 20 x0.5,
> 30 x0.2, > 50 x0.015 (as decompiled); velocity = dir * that + old * 0.5; 10 damage when doubled. > 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 - With the knockback flag: `AddKnockback(dir*16, floor(lerp(...)), takeImpactDamage=1)` sets entity flags 0x8000
(knocked back) and 0x10000 (impact) in the high word. (knocked back) and 0x10000 (impact) in the high word.