/var/datum/controller/subsystem/processing/plants/SSplants /datum/controller/subsystem/processing/plants name = "Seeds & Plants" flags = 0 // Override parent's flags. wait = 75 init_order = SS_INIT_SEEDS priority = SS_PRIORITY_PLANTS var/list/product_descs = list() // Stores generated fruit descs. var/list/seeds = list() // All seed data stored here. var/list/gene_tag_masks = list() // Gene obfuscation for delicious trial and error goodness. var/list/plant_icon_cache = list() // Stores images of growth, fruits and seeds. var/list/plant_sprites = list() // List of all harvested product sprites. var/list/plant_product_sprites = list() // List of all growth sprites plus number of growth stages. /datum/controller/subsystem/processing/plants/New() NEW_SS_GLOBAL(SSplants) /datum/controller/subsystem/processing/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]