Skip to content

Commit

Permalink
Переброс урона по легким с ожога на брут
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Jul 1, 2024
1 parent 4005775 commit f85d4e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
if(BODY_ZONE_CHEST)
if(prob(amount))
adjustOrganLoss(ORGAN_SLOT_STOMACH, bruteloss * 0.3)
if(BODY_ZONE_CHEST)
if(prob(amount))
adjustOrganLoss(ORGAN_SLOT_LUNGS, bruteloss * 0.2)
if(BODY_ZONE_PRECISE_GROIN)
if(prob(amount))
adjustOrganLoss(ORGAN_SLOT_LIVER, bruteloss * 0.4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
/mob/living/proc/adjustFireLoss(amount, updating_health = TRUE, forced = FALSE, required_bodytype = ALL)
if(!can_adjust_fire_loss(amount, forced, required_bodytype))
return 0
. = fireloss
fireloss = clamp((fireloss + (amount * CONFIG_GET(number/damage_multiplier))), 0, maxHealth * 2)
. -= fireloss

if(BODY_ZONE_CHEST)
if(prob(amount))
adjustOrganLoss(ORGAN_SLOT_LUNGS, fireloss * 0.2,required_organ_flag = ORGAN_ORGANIC)

if(. == 0) // no change, no need to update
return
if(updating_health)
updatehealth()

0 comments on commit f85d4e7

Please sign in to comment.