Skip to content

Commit

Permalink
Update combat_stamina.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Iajret committed Jun 13, 2024
1 parent de5b3c1 commit 864d473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/unit_tests/combat_stamina.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/datum/unit_test/stamcrit/Run()
var/mob/living/carbon/human/consistent/tider = allocate(__IMPLIED_TYPE__)
tider.stamina_regen_time = 0.2 SECONDS
tider.adjustStaminaLoss(99)
tider.adjustStaminaLoss(tider.maxHealth-1) // NOVA EDIT CHANGE - ORIGINAL: tider.adjustStaminaLoss(99)
TEST_ASSERT(!tider.has_status_effect(/datum/status_effect/incapacitating/stamcrit), "Stamcrit should not be applied at 99 stamina damage")
tider.adjustStaminaLoss(1)
TEST_ASSERT(tider.has_status_effect(/datum/status_effect/incapacitating/stamcrit), "Stamcrit should be applied at 100 stamina damage")
Expand Down

0 comments on commit 864d473

Please sign in to comment.