fix shield generators on zlvl change (#25318)

This commit is contained in:
Qwertytoforty
2024-05-01 23:22:59 +00:00
committed by GitHub
parent 3e5a3ea35c
commit f2dd4f6595
+6
View File
@@ -296,6 +296,12 @@
/obj/machinery/shieldgen/update_icon_state()
icon_state = "shield[active ? "on" : "off"][malfunction ? "br" : ""]"
/obj/machinery/shieldgen/onShuttleMove(turf/oldT, turf/T1, rotation, mob/caller)
. = ..()
if(active)
shields_down()
addtimer(CALLBACK(src, PROC_REF(shields_up)), 1 SECONDS)//Lets docking finish, prevents placing shields on shuttle tiles.
/obj/machinery/shieldgen/raven
name = "military shield generator"
desc = "Military grade shield generators used to protect spaceships from incoming fire."