From ebe65b7b716bfa9a5c0a42cfe3067ad0e1573866 Mon Sep 17 00:00:00 2001
From: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Date: Thu, 15 May 2025 04:27:22 -0400
Subject: [PATCH] Fixes golem having no access to smart hopper points (#29317)
---
.../modules/smithing/machinery/smart_hopper.dm | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/code/modules/smithing/machinery/smart_hopper.dm b/code/modules/smithing/machinery/smart_hopper.dm
index b52b16b5e1c..a3240a0db8f 100644
--- a/code/modules/smithing/machinery/smart_hopper.dm
+++ b/code/modules/smithing/machinery/smart_hopper.dm
@@ -9,7 +9,7 @@
/// Linked magma crucible
var/obj/machinery/magma_crucible/linked_crucible
/// Access to claim points
- var/req_access_claim = ACCESS_MINING_STATION
+ var/list/req_access_claim = list(ACCESS_MINING_STATION, ACCESS_FREE_GOLEMS)
/// The number of unclaimed points.
var/points = 0
/// Point multiplier
@@ -101,12 +101,16 @@
if(!points)
to_chat(user, "There are no points to claim.");
return ITEM_INTERACT_COMPLETE
- if(anyone_claim || (req_access_claim in ID.access))
- ID.mining_points += points
- ID.total_mining_points += points
- to_chat(user, "[points] Mining Points claimed. You have earned a total of [ID.total_mining_points] Mining Points this Shift!")
- points = 0
- else
+ var/claimed = FALSE
+ for(var/access in req_access_claim)
+ if(anyone_claim || (access in ID.access))
+ ID.mining_points += points
+ ID.total_mining_points += points
+ to_chat(user, "[points] Mining Points claimed. You have earned a total of [ID.total_mining_points] Mining Points this Shift!")
+ points = 0
+ claimed = TRUE
+ break
+ if(!claimed)
to_chat(user, "Required access not found.")
add_fingerprint(user)
return ITEM_INTERACT_COMPLETE