mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Fix vending machines not updating their power when moved (#10714)
This commit is contained in:
@@ -318,6 +318,7 @@
|
|||||||
if(!src) return
|
if(!src) return
|
||||||
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
|
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
|
||||||
anchored = !anchored
|
anchored = !anchored
|
||||||
|
power_change()
|
||||||
return
|
return
|
||||||
|
|
||||||
else if(istype(W,/obj/item/vending_refill))
|
else if(istype(W,/obj/item/vending_refill))
|
||||||
@@ -779,6 +780,8 @@
|
|||||||
|
|
||||||
/obj/machinery/vending/power_change()
|
/obj/machinery/vending/power_change()
|
||||||
..()
|
..()
|
||||||
|
if(!anchored)
|
||||||
|
stat |= NOPOWER
|
||||||
if(stat & BROKEN)
|
if(stat & BROKEN)
|
||||||
icon_state = "[initial(icon_state)]-broken"
|
icon_state = "[initial(icon_state)]-broken"
|
||||||
cut_overlays()
|
cut_overlays()
|
||||||
|
|||||||
6
html/changelogs/johnwildkins-vendpower.yml
Normal file
6
html/changelogs/johnwildkins-vendpower.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
author: JohnWildkins
|
||||||
|
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
changes:
|
||||||
|
- bugfix: "Unanchoring and moving vending machines should now properly update their powered status."
|
||||||
Reference in New Issue
Block a user