diff --git a/code/game/objects/items/kirby_plants/kirbyplants.dm b/code/game/objects/items/kirby_plants/kirbyplants.dm index 926942cd372..8630ae0f77c 100644 --- a/code/game/objects/items/kirby_plants/kirbyplants.dm +++ b/code/game/objects/items/kirby_plants/kirbyplants.dm @@ -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" diff --git a/icons/obj/fluff/flora/plants.dmi b/icons/obj/fluff/flora/plants.dmi index 6ea1f9a2299..f4a4e11bb6d 100644 Binary files a/icons/obj/fluff/flora/plants.dmi and b/icons/obj/fluff/flora/plants.dmi differ