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:
SmArtKar
2024-11-25 14:59:21 +03:00
committed by GitHub
parent 013660537d
commit a2d463cdd8
13 changed files with 33 additions and 20 deletions
@@ -187,6 +187,6 @@
// "Burn" damage is equally strong against internal components and exterior casing
// "Brute" damage mostly damages the casing.
/obj/machinery/modular_computer/bullet_act(obj/projectile/proj)
return cpu?.bullet_act(proj) || ..()
return cpu?.projectile_hit(proj) || ..()
#undef CPU_INTERACTABLE