Turbo Lift Gibbing (#11159)

This commit is contained in:
Geeves
2021-02-16 09:12:14 +01:00
committed by GitHub
parent 80fc420fe7
commit e4e8084af6
2 changed files with 19 additions and 1 deletions
+13 -1
View File
@@ -91,12 +91,24 @@
if(!istype(origin) || !istype(destination) || (origin == destination))
return 0
if (!moving_upwards || next_floor == floors[floors.len]) // If moving down or moving to the top floor, squish.
var/list/move_candidates = list()
if(!moving_upwards)
for(var/turf/T in destination)
for(var/atom/movable/AM in T)
AM.crush_act()
else
for(var/turf/simulated/wall/W in origin)
var/turf/T = GET_ABOVE(W)
for(var/atom/movable/AM in T)
if(next_floor == floors[floors.len])
AM.crush_act()
else
move_candidates += AM
origin.move_contents_to(destination)
for(var/thing in move_candidates)
var/atom/movable/AM = thing
AM.forceMove(GET_ABOVE(AM))
current_floor = next_floor
control_panel_interior.visible_message("The elevator [moving_upwards ? "rises" : "descends"] smoothly.")
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- tweak: "Turbolifts now gib when moving up, but only if you get crushed by the wall against the roof. Standing on the flat part will keep you safe."