Allows resonators to chain mine when manually detonatwd because wtf was i thinking (#13387)

* Resonators can now chain mine faster

* Update resonator.dm
This commit is contained in:
Theos
2022-03-09 02:34:42 -05:00
committed by GitHub
parent b044a2da94
commit 030a666f9a

View File

@@ -71,7 +71,6 @@
transform = matrix()*0.75
animate(src, transform = matrix()*1.5, time = duration)
deltimer(timerid)
addtimer(CALLBACK(src, .proc/replicate, get_turf(src), creator, duration), duration, TIMER_STOPPABLE)//yogs: adds field replication
timerid = addtimer(CALLBACK(src, .proc/burst), duration, TIMER_STOPPABLE)
/obj/effect/temp_visual/resonance/Destroy()
@@ -97,6 +96,7 @@
new /obj/effect/temp_visual/resonance_crush(T)
if(ismineralturf(T))
var/turf/closed/mineral/M = T
replicate(M)
M.gets_drilled(creator)
check_pressure(T)
playsound(T,'sound/weapons/resonator_blast.ogg',50,1)
@@ -117,10 +117,9 @@
transform = matrix()*1.5
animate(src, transform = matrix()*0.1, alpha = 50, time = 4)
/obj/effect/temp_visual/resonance/proc/replicate(turf/closed/mineral/M, creator, timetoburst) //yogs start: adds replication to resonator fields
if(!istype(M))
/obj/effect/temp_visual/resonance/proc/replicate(turf/closed/mineral/M) //yogs start: adds replication to resonator fields
if(!istype(M) || !M.mineralType) // so we don't end up in the ultimate chain reaction
return
for(var/turf/closed/mineral/T in orange(1, M))
if(istype(T))
if(M.mineralType == T.mineralType && M.mineralType != null) // so we don't end up in the ultimate chain reaction
new /obj/effect/temp_visual/resonance(T, creator, null, timetoburst) //yogs end
if(istype(T) && M.mineralType == T.mineralType)
new /obj/effect/temp_visual/resonance(T, creator, null, duration) //yogs end