lets try fixing the fucking stamina bug - removes redundant update_stamina() calls and moves update_stamina() calls outside of if clauses
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
adjustStaminaLoss(-stamina, FALSE)
|
||||
if(updating_health)
|
||||
updatehealth()
|
||||
update_stamina()
|
||||
update_stamina()
|
||||
|
||||
// damage ONE external organ, organ gets randomly selected from damaged ones.
|
||||
/mob/living/proc/take_bodypart_damage(brute = 0, burn = 0, stamina = 0, updating_health = TRUE)
|
||||
@@ -252,7 +252,7 @@
|
||||
adjustStaminaLoss(stamina, FALSE)
|
||||
if(updating_health)
|
||||
updatehealth()
|
||||
update_stamina()
|
||||
update_stamina()
|
||||
|
||||
// heal MANY bodyparts, in random order
|
||||
/mob/living/proc/heal_overall_damage(brute = 0, burn = 0, stamina = 0, only_robotic = FALSE, only_organic = TRUE, updating_health = TRUE)
|
||||
@@ -261,7 +261,7 @@
|
||||
adjustStaminaLoss(-stamina, FALSE)
|
||||
if(updating_health)
|
||||
updatehealth()
|
||||
update_stamina()
|
||||
update_stamina()
|
||||
|
||||
// damage MANY bodyparts, in random order
|
||||
/mob/living/proc/take_overall_damage(brute = 0, burn = 0, stamina = 0, updating_health = TRUE)
|
||||
@@ -270,7 +270,7 @@
|
||||
adjustStaminaLoss(stamina, FALSE)
|
||||
if(updating_health)
|
||||
updatehealth()
|
||||
update_stamina()
|
||||
update_stamina()
|
||||
|
||||
//heal up to amount damage, in a given order
|
||||
/mob/living/proc/heal_ordered_damage(amount, list/damage_types)
|
||||
|
||||
Reference in New Issue
Block a user