Limits new equipment properly

This commit is contained in:
Heroman
2019-08-17 12:35:44 +10:00
parent 3e9456125a
commit e0138738f4
5 changed files with 24 additions and 6 deletions
@@ -0,0 +1,17 @@
/obj/item/weapon/plastique/seismic/locked
desc = "Used to dig holes in specific areas without too much extra hole. Has extra mechanism that safely implodes the bomb if its used in close proximity to the facility."
/obj/item/weapon/plastique/seismic/locked/explode(var/location)
if(!target)
target = get_atom_on_turf(src)
if(!target)
target = src
var/turf/T = get_turf(target)
if(T.z in using_map.map_levels)
target.visible_message("<span class='danger'>\The [src] lets out a loud beep as safeties trigger, before imploding and falling apart.</span>")
target.overlays -= image_overlay
qdel(src)
return 0
else
return ..()
@@ -1,5 +1,5 @@
/obj/item/weapon/grenade/spawnergrenade/manhacks/station/locked
desc = "It is set to detonate in 5 seconds. It will deploy three weaponized survey drones. This one has a safety interlock that self-destructs if used while in proximity to the facility."
desc = "It is set to detonate in 5 seconds. It will deploy three weaponized survey drones. This one has a safety interlock that prevents release if used while in proximity to the facility."
req_access = list(access_armory) //for toggling safety
var/locked = 1
@@ -7,8 +7,8 @@
if(locked)
var/turf/T = get_turf(src)
if(T.z in using_map.map_levels)
visible_message("<span class='warning'>\The [src] lets out a loud negative beep and instead of releasing the robots, implodes on itself.</span>")
qdel(src)
icon_state = initial(icon_state)
active = 0
return 0
return ..()