mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user