durand shield is a tad bit stronger and also doesnt immediately depower the mech when taking stamina damage (#84043)

## About The Pull Request

durand shield is a tad bit stronger and also doesnt immediately depower
the mech when taking stamina damage

## Why It's Good For The Game
i mean this shit almost immediately depowers the mecha if you hit it a
few times with a toolbox and thats bad for something that costs shittons
of mats
making it not as bad should make it not a noob trap
also bug bad

## Changelog
🆑
fix: durand shield doesnt immediately depower the mech when taking
stamina damage
balance: durand shield is a bit stronger
/🆑
This commit is contained in:
jimmyl
2024-06-25 06:05:59 +02:00
committed by GitHub
parent 78aaa4b972
commit 38b7580894
+3 -1
View File
@@ -271,7 +271,9 @@ own integrity back to max. Shield is automatically dropped if we run out of powe
return
. = ..()
flick("shield_impact", src)
if(!chassis.use_energy((max_integrity - atom_integrity) * 0.1 * STANDARD_CELL_CHARGE))
if(!.)
return
if(!chassis.use_energy(. * (STANDARD_CELL_CHARGE / 15)))
chassis.cell?.charge = 0
for(var/O in chassis.occupants)
var/mob/living/occupant = O