mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Adds unit test for tail wag emote, fixes tail wag emote (#81437)
## About The Pull Request <details> <summary>Funnier for who, Lemon?!</summary>  </details> https://github.com/tgstation/tgstation/pull/81400 broke the tail wag emote. This will make it work again. I did test it. _cough_. <details> <summary>Before</summary>  </details> <details> <summary>After</summary>  </details> My fault for not writing a better unit test I guess. ## Why It's Good For The Game Fixes a bug. ## Changelog 🆑 fix: *wag emote is now functional again /🆑
This commit is contained in:
@@ -136,9 +136,9 @@
|
||||
//I am so sorry my son
|
||||
//We bypass helpers here cause we already have the tail
|
||||
if(oranges_accessory.wag_flags & WAG_WAGGING) //We verified the tail exists in can_run_emote()
|
||||
oranges_accessory.stop_wag(src)
|
||||
oranges_accessory.stop_wag(user)
|
||||
else
|
||||
oranges_accessory.start_wag(src)
|
||||
oranges_accessory.start_wag(user)
|
||||
|
||||
/datum/emote/living/carbon/human/wag/select_message_type(mob/user, intentional)
|
||||
. = ..()
|
||||
|
||||
@@ -20,6 +20,18 @@
|
||||
if(dummy_tail.wag_flags & WAG_WAGGING)
|
||||
TEST_FAIL("Tail did not stop wagging when it should have!")
|
||||
|
||||
// TESTING WAG EMOTE
|
||||
|
||||
// start wagging
|
||||
dummy.emote("wag")
|
||||
if(!(dummy_tail.wag_flags & WAG_WAGGING))
|
||||
TEST_FAIL("Tail did not start wagging after using the *wag emote!")
|
||||
|
||||
// stop wagging
|
||||
dummy.emote("wag")
|
||||
if(dummy_tail.wag_flags & WAG_WAGGING)
|
||||
TEST_FAIL("Tail did not stop wagging after using the *wag emote!")
|
||||
|
||||
// TESTING WAG_ABLE FLAG
|
||||
|
||||
// flip the wag flag to unwaggable
|
||||
|
||||
Reference in New Issue
Block a user