mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
## About The Pull Request Caused by #93165 I'm not sure but I think this was just missing a check for `TRAIT_SKIP_BASIC_REACH_CHECK`, because soup pots are given that trait ## Changelog 🆑 Melbert fix: You can interact with soup pots on stoves again /🆑
14 lines
513 B
Plaintext
14 lines
513 B
Plaintext
/datum/unit_test/reachable_soup
|
|
|
|
/datum/unit_test/reachable_soup/Run()
|
|
var/obj/machinery/oven/range/range = EASY_ALLOCATE()
|
|
var/obj/item/reagent_containers/cup/soup_pot/soup = EASY_ALLOCATE()
|
|
var/mob/living/carbon/human/dummy = EASY_ALLOCATE()
|
|
|
|
dummy.put_in_active_hand(soup)
|
|
click_wrapper(dummy, range)
|
|
TEST_ASSERT_EQUAL(soup.loc, range, "Soup pot should have been placed on the stove.")
|
|
|
|
click_wrapper(dummy, soup)
|
|
TEST_ASSERT_EQUAL(soup.loc, dummy, "Soup pot should have been picked up by the dummy.")
|