mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* Refactors Pastries into newfood. (#54996) Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@ users.noreply.github.com> Co-authored-by: Floyd <Floydje123@ hotmail.com> * Refactors Pastries into newfood. * Update collars.dm Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@ users.noreply.github.com> Co-authored-by: Floyd <Floydje123@ hotmail.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
13 lines
780 B
Plaintext
13 lines
780 B
Plaintext
/datum/unit_test/reagent_mob_procs/Run()
|
|
var/mob/living/carbon/human/human = allocate(/mob/living/carbon/human)
|
|
var/obj/item/food/hotdog/debug/fooditem = allocate(/obj/item/food/hotdog/debug)
|
|
|
|
TEST_ASSERT_EQUAL(human.has_reagent(/datum/reagent/consumable/ketchup), FALSE, "Human somehow has ketchup before eating")
|
|
TEST_ASSERT_EQUAL(human.has_reagent(/datum/reagent/medicine/epinephrine), FALSE, "Human somehow has epinephrine before injecting")
|
|
|
|
fooditem.attack(human, human)
|
|
human.reagents.add_reagent(/datum/reagent/medicine/epinephrine, 5)
|
|
|
|
TEST_ASSERT(human.has_reagent(/datum/reagent/consumable/ketchup), "Human doesn't have ketchup after eating")
|
|
TEST_ASSERT(human.has_reagent(/datum/reagent/medicine/epinephrine), "Human doesn't have epinephrine after injecting")
|