Skip to content

Commit

Permalink
fix: mining charges work again for non-ore rock (ParadiseSS13#27275)
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorstar-orion authored Nov 3, 2024
1 parent 483782c commit 3715f9b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/modules/mining/equipment/mining_charges.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3715f9b

Please sign in to comment.