From 2db693f8e0d3176bae1b8df485a61bc6fcb9fc72 Mon Sep 17 00:00:00 2001 From: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:10:42 +0300 Subject: [PATCH] green raptors no longer mine activated gibtonite (#87290) ## About The Pull Request green raptors will now refuse to mine mineral walls containing active gibtonite ## Why It's Good For The Game this was leading to a significant number of unfortunate accidents and frustrations from what ive seen, making them almost not worth using. ## Changelog :cl: balance: green raptors now refuse to mine mineral walls containing active gibtonite /:cl: --- code/datums/elements/proficient_miner.dm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/datums/elements/proficient_miner.dm b/code/datums/elements/proficient_miner.dm index 9a382afce28..0d7a43528f5 100644 --- a/code/datums/elements/proficient_miner.dm +++ b/code/datums/elements/proficient_miner.dm @@ -12,7 +12,16 @@ if(!ismineralturf(target)) return var/turf/closed/mineral/mineral_wall = target - mineral_wall.gets_drilled(source) + + if(!istype(mineral_wall, /turf/closed/mineral/gibtonite)) + mineral_wall.gets_drilled(source) + return + + var/turf/closed/mineral/gibtonite/gibtonite_wall = mineral_wall + if(gibtonite_wall.stage == GIBTONITE_UNSTRUCK) + mineral_wall.gets_drilled(source) + + /datum/element/proficient_miner/Detach(datum/source, ...) UnregisterSignal(source, COMSIG_MOVABLE_BUMP)