mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Mechs can now fall from non-shuttle heights without hurting the occupant (#4776)
This commit is contained in:
@@ -476,14 +476,12 @@
|
||||
"You hear something slam into \the [landing].")
|
||||
playsound(loc, "punch", 25, 1, -1)
|
||||
|
||||
// Now to hurt everything in the mech (if the fall is planetary, the mech blows up, so we do this first)
|
||||
for(var/atom/movable/A in src.contents)
|
||||
A.fall_impact(hit_atom, damage_min, damage_max, silent = TRUE)
|
||||
// And now the Mech
|
||||
|
||||
// And now to hurt the mech.
|
||||
if(!planetary)
|
||||
take_damage(rand(damage_min, damage_max))
|
||||
else
|
||||
for(var/atom/movable/A in src.contents)
|
||||
A.fall_impact(hit_atom, damage_min, damage_max, silent = TRUE)
|
||||
qdel(src)
|
||||
|
||||
// And hurt the floor.
|
||||
|
||||
Reference in New Issue
Block a user