[Fix] resonator no longer destroys ancient rock (#28542)

* resonator no longer destroys ancient rock

* changed turf in test to a non-ancient type

---------

Co-authored-by: Toastical <toast@toaster.com>
This commit is contained in:
Toastical
2025-03-23 10:21:41 +00:00
committed by GitHub
co-authored by Toastical
parent f0f0844586
commit 73f67ffe18
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -138,7 +138,11 @@
new /obj/effect/temp_visual/resonance_crush(src_turf)
if(ismineralturf(src_turf))
var/turf/simulated/mineral/mineral_turf = src_turf
mineral_turf.gets_drilled(creator)
if(is_ancient_rock(mineral_turf))
failure_prob = 100 // rock too strong for resonance field
visible_message("<span class='notice'>This rock appears to be resistant to all mining tools except pickaxes!</span>")
else
mineral_turf.gets_drilled(creator)
check_pressure(src_turf)
playsound(src_turf, 'sound/weapons/resonator_blast.ogg', 50, TRUE)
for(var/mob/living/attacked_living in src_turf)