mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-08 22:50:51 +01:00
4c46ee0676
## About The Pull Request We just deleted the code that read `SLOWS_WHILE_IN_HAND` ## Changelog 🆑 Melbert fix: Bolas don't slow while in hand /🆑
12 lines
537 B
Plaintext
12 lines
537 B
Plaintext
/// Tests SLOWS_WHILE_IN_HAND
|
|
/datum/unit_test/held_slowdown
|
|
|
|
/datum/unit_test/held_slowdown/Run()
|
|
var/mob/living/carbon/human/consistent/dummy = EASY_ALLOCATE()
|
|
var/obj/item/restraints/legcuffs/bola/bola = EASY_ALLOCATE()
|
|
dummy.put_in_hands(bola)
|
|
TEST_ASSERT(!(bola in dummy.get_equipped_speed_mod_items()), "Bola slows while held, when it shouldn't.")
|
|
|
|
bola.item_flags |= SLOWS_WHILE_IN_HAND
|
|
TEST_ASSERT((bola in dummy.get_equipped_speed_mod_items()), "Bola should slow while held now that it has the SLOWS_WHILE_IN_HAND flag.")
|