Files
MrMelbert a0b271d336 Fix Flypeople before anyone realizes they're broken but me (#94264)
## About The Pull Request

After I merged #94200 I realized it blocked all attack hand interactions
on decal which means flypeople would break

Fixes that, adds some unit tests

## Changelog

🆑 Melbert
fix: Fix Flypeople's vomit interaction before anyone realizes it's
broken but me
/🆑
2025-12-02 17:07:20 -07:00

15 lines
640 B
Plaintext

/// Test that flypeople can get nutriment from vomit decals
/datum/unit_test/flyperson
/datum/unit_test/flyperson/Run()
var/mob/living/carbon/human/consistent/fly = allocate(__IMPLIED_TYPE__)
fly.set_species(/datum/species/fly)
var/obj/effect/decal/cleanable/vomit/gross = allocate(__IMPLIED_TYPE__)
gross.create_reagents(10)
gross.reagents.add_reagent(/datum/reagent/consumable/nutriment, 10)
click_wrapper(fly, gross)
TEST_ASSERT(QDELETED(gross), "The vomit was not deleted by the flyperson")
TEST_ASSERT(fly.has_reagent(/datum/reagent/consumable/nutriment, 10), "The flyperson did not gain the reagents present in the vomit")