mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Works on New Blob
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user