You can turn potty off (#90910)

## About The Pull Request


https://github.com/user-attachments/assets/7123a11e-964b-4c6d-b380-60d5781dfaa6

## Why It's Good For The Game

It came to me in a dream

## Changelog

🆑
image: You can now turn potty the plant's light off.
/🆑
This commit is contained in:
John Willard
2025-05-02 04:00:46 -04:00
committed by GitHub
parent 71a1cbca6e
commit ff19fbf5ee
2 changed files with 28 additions and 0 deletions
@@ -136,8 +136,36 @@
name = "Potty the Potted Plant"
desc = "A secret agent staffed in the station's bar to protect the mystical cakehat."
icon_state = "potty"
base_icon_state = "potty"
custom_plant_name = TRUE
trimmable = FALSE
actions_types = list(/datum/action/item_action/toggle_light)
action_slots = ALL
light_range = 2
light_power = 1
light_system = OVERLAY_LIGHT
light_on = TRUE
color = LIGHT_COLOR_DEFAULT
///Boolean on whether the light is on and flashing.
var/light_enabled = TRUE
//this is called by the action type as well
/obj/item/kirbyplants/potty/attack_self(mob/user)
. = ..()
if(.)
return .
light_enabled = !light_enabled
set_light_on(light_enabled)
update_item_action_buttons()
update_appearance(UPDATE_ICON)
/obj/item/kirbyplants/potty/update_overlays()
. = ..()
if(dead)
return .
if(light_enabled)
. += "[base_icon_state]_light"
/obj/item/kirbyplants/fern
name = "neglected fern"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB