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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="dw-infobox"
<div class="dw-chip">
|-
<div class="dw-chip__title">REST IN PIECES</div>
! colspan="2" class="dw-infobox__title" | Rest in Pieces
<div class="dw-chip__icons"><span class="dw-sprite" data-sprite="upgrades/restinpieces.png"></span><span class="dw-sprite" data-sprite="upgrades/restinpieces_mini.png"></span></div>
|-
<table class="dw-chip__rows">
| colspan="2" class="dw-infobox__image" | <span class="dw-sprite" data-sprite="upgrades/restinpieces_mini.png"></span>
<tr><td>Effect</td><td>shooting dead bodies causes them to explode</td></tr>
|-
<tr><td>名前</td><td>ハードジョウブツ</td></tr>
! Type
<tr><td>説明</td><td>シタイを うつと バクハツする</td></tr>
| [[Upgrades|Upgrade]]
</table>
|-
<div class="dw-chip__status">In the game</div>
! Effect
</div>
| Shooting dead bodies causes them to explode
|-
! Japanese
| ハードジョウブツ
|-
! First appearance
| ''Downwell'' (2015)
|}


'''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]]