SUBSYSTEM_DEF(plants) name = "Seeds & Plants" flags = 0 // Override parent's flags. wait = 75 init_order = INIT_ORDER_SEEDS priority = SS_PRIORITY_PLANTS runlevels = RUNLEVELS_PLAYING /// Stores generated fruit descs. var/list/product_descs = list() /// All seed data stored here. var/list/seeds = list() /// Gene obfuscation for delicious trial and error goodness. var/list/gene_tag_masks = list() /// Stores images of growth, fruits and seeds. var/list/plant_icon_cache = list() /// List of all harvested product sprites. var/list/plant_sprites = list() /// List of all growth sprites plus number of growth stages. var/list/plant_product_sprites = list() /// Stores list of masked genes rather than recreating it later var/list/gene_masked_list = list() /// Stores gene masked list as datums var/list/plant_gene_datums = list() var/list/processing = list() var/list/current = list() /datum/controller/subsystem/plants/stat_entry(msg) msg = "P:[processing.len]" return ..() /datum/controller/subsystem/plants/Initialize(timeofday) // Build the icon lists. for(var/icostate in icon_states('icons/obj/hydroponics_growing.dmi')) var/split = findtext(icostate,"-") if(!split) // invalid icon_state continue var/ikey = copytext(icostate,(split+1)) if(ikey == "dead") // don't count dead icons continue ikey = text2num(ikey) var/base = copytext(icostate,1,split) if(!(plant_sprites[base]) || (plant_sprites[base]