mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Easier wounds on unclosed surgery sites (#17970)
* Update _bodyparts.dm * Update code/modules/surgery/bodyparts/_bodyparts.dm
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user