mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Guncode Agony 4.4: Armor as an argument (#88143)
## About The Pull Request Lil cleanup/tweak I couldn't do in the main PR because it conflicted before and i forgot after. Yes this works with overrides that don't have the arg, yes I tested it. ## Why It's Good For The Game Don't run armor code thrice please thank you ## Changelog 🆑 code: Projectile impacts no longer fetch mobs' armor values thrice /🆑
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
var/hits = ((max_hits - min_hits) * severity + min_hits)
|
||||
|
||||
for(var/i in 1 to hits)
|
||||
body.bullet_act(projectile, def_zone = pick(GLOB.all_body_zones), piercing_hit = TRUE)
|
||||
body.projectile_hit(projectile, def_zone = pick(GLOB.all_body_zones), piercing_hit = TRUE)
|
||||
|
||||
/datum/corpse_damage/cause_of_death/projectile/laser
|
||||
projectile = /obj/projectile/beam/laser
|
||||
|
||||
Reference in New Issue
Block a user