Files
2008-05-23 17:36:21 +00:00

33 lines
714 B
Plaintext

/*
* Injector -- allows transfer of gas across a wall when attacked by a gas tank
*
*
*/
obj/machinery/injector
name = "injector"
icon = 'stationobjs.dmi'
icon_state = "injector"
density = 1
anchored = 1
flags = WINDOW // Unsure why flagged as a window
// When attacked by a tank item, transfer the tank's gas contents to the turf behind the injector
attackby(var/obj/item/weapon/W, var/mob/user)
if(stat & NOPOWER)
return
use_power(25)
var/obj/item/weapon/tank/ptank = W
if (!( istype(ptank, /obj/item/weapon/tank) ))
return
var/turf/T = get_step(src.loc, get_dir(user, src))
ptank.gas.turf_add(T, -1.0)
src.add_fingerprint(user)
return