mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Lemon fixes ci [MDB IGNORE] (#24942)
* Lemon fixes ci (#79384) ## About The Pull Request Sets up moveloops to better catch issues with duplicated loops Letting people modify the timer var AND have it track what bucket we're in was a bad idea. So instead let's store the queued time separate. Also makes allowed_to_move return true/false instead of flags This fixed? the null loop issue locally, I honestly have no damn idea why. I'm gonna be working on the rest of ci here, left trackers so if it pops up between now and merge I'll know what the issue is. --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com> Co-authored-by: Emmett Gaines <ninjanomnom@ gmail.com> * Lemon fixes ci --------- Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com> Co-authored-by: Emmett Gaines <ninjanomnom@ gmail.com>
This commit is contained in:
co-authored by
John Willard
Emmett Gaines
LemonInTheDark
parent
a859354272
commit
2e7ad10f7e
@@ -97,6 +97,8 @@
|
||||
/datum/unit_test/strange_reagent/proc/test_death_no_damage(target_type)
|
||||
var/mob/living/target = allocate_new_target(target_type)
|
||||
target.death()
|
||||
if(QDELETED(target))
|
||||
return
|
||||
update_amounts(target)
|
||||
strange_reagent.expose_mob(target, INGEST, amount_needed_to_revive)
|
||||
TEST_ASSERT_NOTEQUAL(target.stat, DEAD, "Strange Reagent did not revive a dead target type [target.type].")
|
||||
@@ -107,6 +109,8 @@
|
||||
return
|
||||
|
||||
target.death()
|
||||
if(QDELETED(target))
|
||||
return
|
||||
update_amounts(target)
|
||||
strange_reagent.expose_mob(target, INGEST, amount_needed_to_revive)
|
||||
TEST_ASSERT_NOTEQUAL(target.stat, DEAD, "Strange Reagent did not revive a dead target type [target.type].")
|
||||
@@ -126,6 +130,8 @@
|
||||
return
|
||||
|
||||
target.death()
|
||||
if(QDELETED(target))
|
||||
return
|
||||
update_amounts(target)
|
||||
strange_reagent.expose_mob(target, INGEST, amount_needed_to_full_heal)
|
||||
TEST_ASSERT_EQUAL(target_max_health, get_target_organic_health_manual(target), "Strange Reagent did not fully heal a dead target type [target.type] with the expected amount.")
|
||||
@@ -134,6 +140,8 @@
|
||||
var/mob/living/target = allocate_new_target(target_type)
|
||||
if(!damage_target_to_percentage(target, strange_reagent.max_revive_damage_ratio * 0.9)) // 10% under the damage cap
|
||||
return
|
||||
if(QDELETED(target))
|
||||
return
|
||||
|
||||
update_amounts(target)
|
||||
strange_reagent.expose_mob(target, INGEST, amount_needed_to_revive)
|
||||
@@ -143,7 +151,9 @@
|
||||
var/mob/living/target = allocate_new_target(target_type)
|
||||
if(!damage_target_to_percentage(target, strange_reagent.max_revive_damage_ratio * 1.1)) // 10% over the damage cap
|
||||
return
|
||||
|
||||
if(QDELETED(target))
|
||||
return
|
||||
|
||||
update_amounts(target)
|
||||
strange_reagent.expose_mob(target, INGEST, amount_needed_to_revive)
|
||||
TEST_ASSERT_EQUAL(target.stat, DEAD, "Strange Reagent revived a target type [target.type] with more than double their max health in damage.")
|
||||
|
||||
Reference in New Issue
Block a user