KA Leftovers Fix (#10165)

KAs no longer leave behind phantom projectiles that injure people.
    KAs no longer recursively destroy rocks when one breaks, but still retain AoE effects.
    KAs now have at least one tile of AoE on all modules.

Also fixes a runtime with pin attackby.
This commit is contained in:
Geeves
2020-10-06 14:06:10 +02:00
committed by GitHub
parent 9621bb75f7
commit d19cf6e3d6
5 changed files with 30 additions and 55 deletions

View File

@@ -57,16 +57,10 @@ var/list/mineral_can_smooth_with = list(
has_resources = TRUE
/turf/simulated/mineral/proc/kinetic_hit(var/damage,var/direction)
/turf/simulated/mineral/proc/kinetic_hit(var/damage)
rock_health -= damage
if(rock_health <= 0)
var/turf/simulated/mineral/next_rock = get_step(src,direction)
if(istype(next_rock))
new /obj/effect/overlay/temp/kinetic_blast(next_rock)
next_rock.kinetic_hit(-rock_health,direction)
GetDrilled(1)
GetDrilled(TRUE)
// Copypaste parent call for performance.
/turf/simulated/mineral/Initialize(mapload)