mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Fixed the greyed out portable flasher issue.
This commit is contained in:
@@ -26,12 +26,12 @@
|
||||
bulb = new /obj/item/device/flash(src)
|
||||
|
||||
/obj/machinery/flasher/power_change()
|
||||
if (powered() && bulb && anchored)
|
||||
if (powered() && anchored && bulb)
|
||||
stat &= ~NOPOWER
|
||||
if(bulb.broken)
|
||||
icon_state = "[base_state]1-p"
|
||||
else
|
||||
icon_state = "[base_state]1"
|
||||
else
|
||||
icon_state = "[base_state]1-p"
|
||||
else
|
||||
stat |= ~NOPOWER
|
||||
icon_state = "[base_state]1-p"
|
||||
@@ -132,14 +132,15 @@
|
||||
if (!anchored && !isinspace())
|
||||
user << "<span class='notice'>[src] is now secured.</span>"
|
||||
overlays.Cut()
|
||||
power_change()
|
||||
anchored = 1
|
||||
power_change()
|
||||
|
||||
|
||||
else
|
||||
user << "<span class='notice'>[src] can now be moved.</span>"
|
||||
overlays += "[base_state]-s"
|
||||
power_change()
|
||||
anchored = 0
|
||||
power_change()
|
||||
|
||||
else
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user