Restores KA damage against mineral turfs in atmosphere (#17279)

Makes damage against mineral turfs return the damage of the kinetic accelerator since currently it uses a flat value of 5 in atmosphere.
This commit is contained in:
Andrew
2023-09-08 20:47:07 +00:00
committed by GitHub
parent de61230cbb
commit 18d298941a
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -40,6 +40,6 @@
/obj/item/projectile/kinetic/proc/strike_thing(var/turf/target_turf)
for(var/new_target in RANGE_TURFS(aoe, target_turf))
var/turf/aoe_turf = new_target
do_damage(aoe_turf, max(base_damage - base_damage * get_dist(aoe_turf, target_turf) * 0.25, 0), base_damage)
do_damage(aoe_turf, max(base_damage - base_damage * get_dist(aoe_turf, target_turf) * 0.25, 0), damage)
if(!QDELETED(src))
qdel(src)