From 2815bab234a13268f1f4bf614dfac170544d43fa Mon Sep 17 00:00:00 2001 From: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com> Date: Tue, 5 Mar 2024 19:05:55 +0100 Subject: [PATCH] 57yethdbfn (#18585) Co-authored-by: DreamySkrell <> --- .../preference_setup/loadout/items/general.dm | 15 +++++++++++++++ html/changelogs/DreamySkrell-plant-loadout.yml | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 html/changelogs/DreamySkrell-plant-loadout.yml diff --git a/code/modules/client/preference_setup/loadout/items/general.dm b/code/modules/client/preference_setup/loadout/items/general.dm index 9c540273efe..275f760c06b 100644 --- a/code/modules/client/preference_setup/loadout/items/general.dm +++ b/code/modules/client/preference_setup/loadout/items/general.dm @@ -417,3 +417,18 @@ /datum/gear/lore_radio display_name = "analog radio" path = /obj/item/lore_radio + +/datum/gear/pottedplant_small + display_name = "potted plant" + description = "A small potted plant." + cost = 1 + path = /obj/item/flora/pottedplant_small/dead + +/datum/gear/pottedplant_small/New() + ..() + var/list/plants = list() + for(var/plant_type in typesof(/obj/item/flora/pottedplant_small)) + var/obj/item/flora/pottedplant_small/plant = plant_type + plants[initial(plant.name)] = plant_type + sortTim(plants, GLOBAL_PROC_REF(cmp_text_asc)) + gear_tweaks += new /datum/gear_tweak/path(plants) diff --git a/html/changelogs/DreamySkrell-plant-loadout.yml b/html/changelogs/DreamySkrell-plant-loadout.yml new file mode 100644 index 00000000000..96035debe96 --- /dev/null +++ b/html/changelogs/DreamySkrell-plant-loadout.yml @@ -0,0 +1,7 @@ + +author: DreamySkrell + +delete-after: True + +changes: + - rscadd: "Adds small potted plant selection to the loadout."