mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
Adds attack_dir to multiple common damage sources, fixes mechs' directional armor (#85726)
## About The Pull Request Closes #81260 Closes #74022 Currently mechs are the only atoms utilizing attack_dir but I added it in multiple other places that were missing it to ensure that if something else uses it it won't break in those scenarios ## Changelog 🆑 fix: Mechs' directional armor now actually works /🆑
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
// Get a sample "melee" weapon.
|
||||
// The energy axe is chosen here due to having a high base force, to make sure we get over the equipment DT.
|
||||
var/obj/item/dummy_melee = allocate(/obj/item/melee/energy/axe)
|
||||
var/expected_melee_damage = round(dummy_melee.force * (1 - expected_melee_armor / 100) * dummy_melee.demolition_mod, DAMAGE_PRECISION)
|
||||
dummy_melee.force = 150
|
||||
var/expected_melee_damage = round(dummy_melee.force * (1 - expected_melee_armor / 100) * dummy_melee.demolition_mod * demo_mech.facing_modifiers[MECHA_FRONT_ARMOUR], DAMAGE_PRECISION)
|
||||
|
||||
// Get a sample laser weapon.
|
||||
// The captain's laser gun here is chosen primarily because it deals more damage than normal lasers.
|
||||
|
||||
Reference in New Issue
Block a user