From 3715f9b0db5199e27387228fa34ce5e87125fa41 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sun, 3 Nov 2024 17:39:40 -0500 Subject: [PATCH] fix: mining charges work again for non-ore rock (#27275) --- code/modules/mining/equipment/mining_charges.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/mining/equipment/mining_charges.dm b/code/modules/mining/equipment/mining_charges.dm index 730fb3141956..74454a4b4ab8 100644 --- a/code/modules/mining/equipment/mining_charges.dm +++ b/code/modules/mining/equipment/mining_charges.dm @@ -81,10 +81,11 @@ S.start() for(var/turf/simulated/mineral/rock in circlerangeturfs(location, boom_sizes[3])) var/distance = get_dist_euclidian(location, rock) - if(distance <= boom_sizes[3] && rock.ore) - rock.ore.drop_max += 3 // if rock is going to get drilled, add bonus mineral amount - rock.ore.drop_min += 3 - rock.gets_drilled() + if(distance <= boom_sizes[3]) + if(rock.ore) + rock.ore.drop_max += 3 // if rock is going to get drilled, add bonus mineral amount + rock.ore.drop_min += 3 + rock.gets_drilled(triggered_by_explosion = TRUE) for(var/mob/living/carbon/C in circlerange(location, boom_sizes[3])) var/distance = get_dist_euclidian(location, C) C.flash_eyes()