Ports flying bloodsplatters from TG from Hippie for wounds (#18530)

* added, time to fix bugs

* requirements

* fix runtime

* yog changes

* Update atoms_movable.dm

* forgot this (very important)
This commit is contained in:
Molti
2023-05-02 00:53:52 -05:00
committed by GitHub
parent 048fbdbf68
commit 37e76e61bf
27 changed files with 209 additions and 44 deletions

View File

@@ -1270,7 +1270,7 @@
* * dealt_bare_wound_bonus- The bare_wound_bonus, if one was specified *and applied*, of the wounding attack. Not shown if armor was present
* * base_roll- Base wounding ability of an attack is a random number from 1 to (dealt_damage ** WOUND_DAMAGE_EXPONENT). This is the number that was rolled in there, before mods
*/
/proc/log_wound(atom/victim, datum/wound/suffered_wound, dealt_damage, dealt_wound_bonus, dealt_bare_wound_bonus, base_roll)
/proc/log_wound(atom/victim, datum/wound/suffered_wound, dealt_damage, dealt_wound_bonus, dealt_bare_wound_bonus, base_roll, attack_direction = null)
if(QDELETED(victim) || !suffered_wound)
return
var/message = "has suffered: [suffered_wound][suffered_wound.limb ? " to [suffered_wound.limb.name]" : null]"// maybe indicate if it's a promote/demote?
@@ -1287,6 +1287,9 @@
if(dealt_bare_wound_bonus)
message += " | BWB: [dealt_bare_wound_bonus]"
if(attack_direction)
message += " | AtkDir: [attack_direction]"
victim.log_message(message, LOG_ATTACK, color="blue")