Rest in Pieces: Difference between revisions

Remove fabricated shop price: ug[i][5] is never read for upgrades (dead data)
Stats from obj_dead_body + explosion inheritance: 1x50 + 3x50 small (inherited bdmg), unreachable 2-copy branch, pugRip
 
Line 11: Line 11:


'''Rest in Pieces''' (ハードジョウブツ) is an [[Upgrades|upgrade]]. Shooting dead bodies causes them to explode.
'''Rest in Pieces''' (ハードジョウブツ) is an [[Upgrades|upgrade]]. Shooting dead bodies causes them to explode.
== Stats ==
Dead bodies are physics objects that always exist; without the upgrade they are inert (0 HP, cannot be shot). With Rest in Pieces (<code>pugRip</code>), from the dead-body code:
* A body becomes shootable 8 frames after spawning; one hit detonates it.
* Detonation spawns one full explosion (<code>bulletExplosion1</code>, '''50 damage''', hits every enemy it overlaps once) plus '''three small explosions that also deal 50 damage each''': <code>explosionSmall</code> has no code of its own and inherits everything, damage included, from the full explosion; only its sprite (and so its hitbox) is smaller.
* An enemy overlapping all four blasts can therefore take up to '''200 damage''' from a single corpse, which is why the upgrade one-shots most of the cast and shreds the [[Final Boss]] (220 per flinch).
* The code contains a two-copy branch (<code>pugRip == 2</code>) that adds four more full explosions, nine blasts total, but it is unreachable: only one copy of the upgrade can ever be obtained.
* Even <code>uniDead</code>, the corpse of a cut enemy, is wired to explode with this upgrade.


[[Category:Upgrades]]
[[Category:Upgrades]]