mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Drill Bracing Fix (#9003)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user