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:
SmArtKar
2024-08-17 13:55:31 +02:00
committed by GitHub
parent 3ccf489c02
commit 310be26041
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -317,7 +317,7 @@
if(!attacking_item.force)
return
var/damage_taken = take_damage(attacking_item.force * attacking_item.demolition_mod, attacking_item.damtype, MELEE, 1)
var/damage_taken = take_damage(attacking_item.force * attacking_item.demolition_mod, attacking_item.damtype, MELEE, 1, get_dir(src, user))
try_damage_component(damage_taken, user.zone_selected)
var/hit_verb = length(attacking_item.attack_verb_simple) ? "[pick(attacking_item.attack_verb_simple)]" : "hit"