Potted plant objs defs, /obj/random/pottedplant/ (#16853)

* plant defs

* dead2 and empty

* /obj/random/pottedplant

* a

* c

* Update code/modules/overmap/exoplanets/decor/flora/potted.dm

Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>

---------

Co-authored-by: DreamySkrell <>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
This commit is contained in:
DreamySkrell
2023-07-28 22:38:10 +00:00
committed by GitHub
co-authored by Fluffy DreamySkrell <>
parent eb3836a88a
commit 8fdbe6b840
4 changed files with 287 additions and 3 deletions
+25
View File
@@ -2160,3 +2160,28 @@
/obj/item/clothing/suit/space/syndicate/black/red = 1
)
has_postspawn = TRUE
/obj/random/pottedplant
name = "random potted plant"
desc = "Spawns a random potted plant."
icon = 'icons/obj/plants.dmi'
icon_state = "plant-26"
spawn_nothing_percentage = 1
/obj/random/pottedplant/spawn_item()
var/obj/structure/flora/pottedplant/P = null
var/list/unwanted = list(
/obj/structure/flora/pottedplant, // don't want parent base obj
/obj/structure/flora/pottedplant/random, // depreciated
/obj/structure/flora/pottedplant/dead2, // does not fit horizon's aesthetic
/obj/structure/flora/pottedplant/empty
)
var/list/rare = list(
/obj/structure/flora/pottedplant/eye,
/obj/structure/flora/pottedplant/dead
)
while(!P)
P = pick(typesof(/obj/structure/flora/pottedplant))
if(P in unwanted || ((P in rare) && prob(50)))
P = null
. = new P(loc)