mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
## About The Pull Request Switches the floors in the CI room to be indestructible. They're not, apparently. ## Why It's Good For The Game The walls are indestructible and not the floors. I feel like these should be indestructible too. ## Changelog not player facing --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
24 lines
992 B
Plaintext
24 lines
992 B
Plaintext
/// Tests spray painting the ground to create graffiti.
|
|
/datum/unit_test/spraypainting
|
|
normal_floor_required = TRUE
|
|
|
|
/datum/unit_test/spraypainting/Run()
|
|
var/mob/living/carbon/human/consistent/artist = EASY_ALLOCATE()
|
|
var/obj/item/toy/crayon/spraycan/can = EASY_ALLOCATE()
|
|
var/turf/spray_turf = get_turf(artist)
|
|
artist.put_in_active_hand(can, forced = TRUE)
|
|
|
|
// Try to spray with a capped spraycan.
|
|
click_wrapper(artist, spray_turf)
|
|
TEST_ASSERT_EQUAL(can.charges, can.charges_left, "Spraypaint sprayed paint while capped.")
|
|
// Uncap it
|
|
click_wrapper(artist, can, list(ALT_CLICK = TRUE, BUTTON = ALT_CLICK))
|
|
TEST_ASSERT(!can.is_capped, "Spraypaint did not uncap when alt-clicked.")
|
|
// Try to spray with an uncapped spraycan.
|
|
click_wrapper(artist, spray_turf)
|
|
TEST_ASSERT_NOTEQUAL(can.charges, can.charges_left, "Spraypaint did not spray any paint when clicking on a turf with it.")
|
|
|
|
// Cleanup
|
|
for(var/obj/effect/decal/cleanable/crayon/made_art in spray_turf)
|
|
qdel(made_art)
|