Easier wounds on unclosed surgery sites (#17970)

* Update _bodyparts.dm

* Update code/modules/surgery/bodyparts/_bodyparts.dm
This commit is contained in:
ynot01
2023-02-18 22:04:06 -05:00
committed by GitHub
parent 9c4d0652db
commit 50ed5323a5

View File

@@ -383,6 +383,12 @@
if(HAS_TRAIT(owner, TRAIT_EASYDISMEMBER)) if(HAS_TRAIT(owner, TRAIT_EASYDISMEMBER))
damage *= 1.1 damage *= 1.1
// If we have an open surgery site here, wound more easily
for(var/datum/surgery/S in owner.surgeries)
if(S.operated_bodypart == src)
damage *= 1.25
break
var/base_roll = rand(1, round(damage ** WOUND_DAMAGE_EXPONENT)) var/base_roll = rand(1, round(damage ** WOUND_DAMAGE_EXPONENT))
var/injury_roll = base_roll var/injury_roll = base_roll
injury_roll += check_wounding_mods(woundtype, damage, wound_bonus, bare_wound_bonus) injury_roll += check_wounding_mods(woundtype, damage, wound_bonus, bare_wound_bonus)