From 43c8d6f2e1f31521f34371f0cdd13b4980d97d0d Mon Sep 17 00:00:00 2001
From: BogCreature <112462947+BogCreature@users.noreply.github.com>
Date: Fri, 3 Nov 2023 13:58:54 -0400
Subject: [PATCH] I used the bitflags wrong
---
code/modules/mining/drill.dm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/code/modules/mining/drill.dm b/code/modules/mining/drill.dm
index e27f5e5beab2..ae2bf08b39a1 100644
--- a/code/modules/mining/drill.dm
+++ b/code/modules/mining/drill.dm
@@ -47,7 +47,7 @@
. += "Replacement plating has been attached to [src], but has not been bolted in place yet."
if(METAL_SECURED)
. += "Replacement plating has been secured to [src], but still needs to be welded into place."
- if(machine_stat && BROKEN && !metal_attached)
+ if(machine_stat & BROKEN && !metal_attached)
. += "[src]'s structure has been totaled, the plasteel plating needs to be replaced."
/obj/machinery/drill/Initialize()
@@ -94,7 +94,7 @@
/obj/machinery/drill/attackby(obj/item/tool, mob/living/user, params)
var/obj/structure/vein/vein = locate(/obj/structure/vein) in src.loc
- if(machine_stat && BROKEN)
+ if(machine_stat & BROKEN)
if(istype(tool,/obj/item/stack/sheet/plasteel))
var/obj/item/stack/sheet/plasteel/plating = tool
if(plating.use(10,FALSE,TRUE))
@@ -112,7 +112,7 @@
update_icon_state()
return
if(tool.tool_behaviour == TOOL_WRENCH)
- if(metal_attached && machine_stat && BROKEN)
+ if(metal_attached && machine_stat & BROKEN)
playsound(src, 'sound/items/ratchet.ogg', 50, TRUE)
do_after(user, 30*tool.toolspeed, target = src)
to_chat(user, "You bolt the plating the plating in place on [src].")
@@ -216,7 +216,7 @@
/obj/machinery/drill/update_icon_state()
if(anchored)
- if(machine_stat && BROKEN)
+ if(machine_stat & BROKEN)
icon_state = "deep_core_drill-deployed_broken"
return ..()
if(active)
@@ -226,7 +226,7 @@
icon_state = "deep_core_drill-idle"
return ..()
else
- if(machine_stat && BROKEN)
+ if(machine_stat & BROKEN)
icon_state = "deep_core_drill-broken"
return ..()
icon_state = "deep_core_drill"
@@ -316,7 +316,7 @@
component_parts.Remove(sensor)
return
if(MALF_CAPACITOR)
- say("Malfunction: Energy cell capacitor damaged, please replace before continuin mining operations.")
+ say("Malfunction: Energy cell capacitor damaged, please replace before continuing mining operations.")
for (var/obj/item/stock_parts/capacitor/capacitor in component_parts)
component_parts.Remove(capacitor)
return