[MIRROR] Removes input/output plates and their last remaining use (#5658)

* Removes input/output plates and their last remaining use (#35800)

* - Removes input/output plates and their last remaining use

* - ok fine updates the map too

* - loco loco

* Removes input/output plates and their last remaining use
This commit is contained in:
CitadelStationBot
2018-02-22 23:38:48 -06:00
committed by Poojawa
parent a39c0ef648
commit 862a229652
5 changed files with 13 additions and 55 deletions
@@ -214,29 +214,13 @@
//auto-gibs anything that bumps into it
/obj/machinery/gibber/autogibber
var/turf/input_plate
/obj/machinery/gibber/autogibber/Initialize()
. = ..()
for(var/i in GLOB.cardinals)
var/obj/machinery/mineral/input/input_obj = locate() in get_step(loc, i)
if(input_obj)
if(isturf(input_obj.loc))
input_plate = input_obj.loc
qdel(input_obj)
break
if(!input_plate)
CRASH("Didn't find an input plate.")
return
var/input_dir = NORTH
/obj/machinery/gibber/autogibber/CollidedWith(atom/movable/AM)
if(!input_plate)
return
var/atom/input = get_step(src, input_dir)
if(ismob(AM))
var/mob/M = AM
if(M.loc == input_plate)
if(M.loc == input)
M.forceMove(src)
M.gib()