Files
5d5d68b87b Makes the floors in the CI room indestructable (#96909)
## 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>
2026-07-11 12:42:06 -06:00

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)