Works on New Blob

This commit is contained in:
Neerti
2017-11-29 22:35:01 -05:00
parent 50d3710cbf
commit acb208dd3f
54 changed files with 1947 additions and 38 deletions
+6
View File
@@ -690,6 +690,12 @@
to_chat(user,"<span class='warning'>The APC interface refused to unlock.</span>")
return 1
/obj/machinery/power/apc/blob_act()
if(!wires.IsAllCut())
wiresexposed = TRUE
wires.CutAll()
update_icon()
/obj/machinery/power/apc/attack_hand(mob/user)
// if (!can_use(user)) This already gets called in interact() and in topic()
// return
+3
View File
@@ -329,6 +329,9 @@
broken()
return 1
/obj/machinery/light/blob_act()
broken()
// attempt to set the light's on/off status
// will not switch on if broken/burned/empty
/obj/machinery/light/proc/seton(var/s)
+10 -3
View File
@@ -250,14 +250,21 @@
if(!P || !P.damage || P.get_structure_damage() <= 0 )
return
integrity = integrity - P.damage
if(integrity <= 0)
adjust_integrity(-P.get_structure_damage())
/obj/machinery/power/emitter/blob_act()
adjust_integrity(-1000) // This kills the emitter.
/obj/machinery/power/emitter/proc/adjust_integrity(amount)
integrity = between(0, integrity + amount, initial(integrity))
if(integrity == 0)
if(powernet && avail(active_power_usage)) // If it's powered, it goes boom if killed.
visible_message(src, "<span class='danger'>\The [src] explodes violently!</span>", "<span class='danger'>You hear an explosion!</span>")
explosion(get_turf(src), 1, 2, 4)
else
src.visible_message("<span class='danger'>\The [src] crumples apart!</span>", "<span class='warning'>You hear metal collapsing.</span>")
qdel(src)
if(src)
qdel(src)
/obj/machinery/power/emitter/examine(mob/user)
..()