mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Turbo Lift Gibbing (#11159)
This commit is contained in:
@@ -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."
|
||||
Reference in New Issue
Block a user