Drill Bracing Fix (#9003)

This commit is contained in:
Geeves
2020-06-03 11:11:00 +02:00
committed by GitHub
parent 0843161e9d
commit 0803eafe8e
2 changed files with 16 additions and 8 deletions
+10 -8
View File
@@ -351,15 +351,13 @@
/obj/machinery/mining/drill/proc/check_supports()
supported = FALSE
if((!supports || !supports.len) && initial(anchored) == 0)
icon_state = "mining_drill"
anchored = FALSE
active = FALSE
else
anchored = TRUE
if(supports && length(supports) >= braces_needed)
supported = TRUE
anchored = TRUE
else
icon_state = "mining_drill"
active = FALSE
anchored = FALSE
update_icon()
@@ -491,6 +489,10 @@
else
disconnect()
/obj/machinery/mining/brace/Destroy()
disconnect()
return ..()
/obj/machinery/mining/brace/proc/connect()
var/turf/T = get_step(get_turf(src), src.dir)
@@ -521,4 +523,4 @@
connected.supports -= src
connected.check_supports()
connected = null
connected = null