mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
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:
co-authored by
Fluffy
DreamySkrell <>
parent
eb3836a88a
commit
8fdbe6b840
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user