[MIRROR] Gives growing plant icons custom offsets [MDB IGNORE] (#17502)
* Gives growing plant icons custom offsets * Fixes the conflicts and most of our modular plants * And now the dinosaurs are gone Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
@@ -14,6 +14,7 @@
|
||||
name = "pack of ambrosia vulgaris seeds"
|
||||
desc = "These seeds grow into common ambrosia, a plant grown by and from medicine."
|
||||
icon_state = "seed-ambrosiavulgaris"
|
||||
plant_icon_offset = 0
|
||||
species = "ambrosiavulgaris"
|
||||
plantname = "Ambrosia Vulgaris"
|
||||
product = /obj/item/food/grown/ambrosia/vulgaris
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
name = "pack of cannabis seeds"
|
||||
desc = "Taxable."
|
||||
icon_state = "seed-cannabis"
|
||||
plant_icon_offset = 6
|
||||
species = "cannabis"
|
||||
plantname = "Cannabis Plant"
|
||||
product = /obj/item/food/grown/cannabis
|
||||
@@ -15,11 +16,11 @@
|
||||
icon_dead = "cannabis-dead" // Same for the dead icon
|
||||
genes = list(/datum/plant_gene/trait/repeated_harvest)
|
||||
mutatelist = list(/obj/item/seeds/cannabis/rainbow,
|
||||
/obj/item/seeds/cannabis/death,
|
||||
/obj/item/seeds/cannabis/white,
|
||||
/obj/item/seeds/cannabis/ultimate)
|
||||
reagents_add = list(/datum/reagent/drug/thc = 0.15) //SKYRAT EDIT - MORENARCOTICS
|
||||
//axed lipolicide, replaced space drugs with thc
|
||||
/obj/item/seeds/cannabis/death,
|
||||
/obj/item/seeds/cannabis/white,
|
||||
/obj/item/seeds/cannabis/ultimate,
|
||||
)
|
||||
reagents_add = list(/datum/reagent/drug/thc = 0.15) //SKYRAT EDIT - MORENARCOTICS - axed lipolicide, replaced space drugs with thc
|
||||
|
||||
|
||||
/obj/item/seeds/cannabis/rainbow
|
||||
@@ -64,22 +65,24 @@
|
||||
name = "pack of omega weed seeds"
|
||||
desc = "These seeds grow into omega weed."
|
||||
icon_state = "seed-ocannabis"
|
||||
plant_icon_offset = 0
|
||||
icon_grow = "ocannabis-grow"
|
||||
species = "ocannabis"
|
||||
plantname = "Omega Weed"
|
||||
product = /obj/item/food/grown/cannabis/ultimate
|
||||
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/glow/green, /datum/plant_gene/trait/modified_volume/omega_weed)
|
||||
mutatelist = null
|
||||
reagents_add = list(/datum/reagent/drug/thc = 0.3, //SKYRAT EDIT - MORENARCOTICS
|
||||
/datum/reagent/toxin/mindbreaker = 0.3,
|
||||
/datum/reagent/mercury = 0.15,
|
||||
/datum/reagent/lithium = 0.15,
|
||||
/datum/reagent/medicine/atropine = 0.15,
|
||||
/datum/reagent/drug/methamphetamine = 0.15,
|
||||
/datum/reagent/drug/bath_salts = 0.15,
|
||||
/datum/reagent/drug/krokodil = 0.15,
|
||||
//SKYRAT REMOVAL // /datum/reagent/toxin/lipolicide = 0.15,
|
||||
/datum/reagent/drug/nicotine = 0.1)
|
||||
reagents_add = list(/datum/reagent/drug/thc = 0.3, //SKYRAT EDIT - MORE NARCOTICS - ORIGINAL: reagents_add = list(/datum/reagent/drug/cannabis = 0.3,
|
||||
/datum/reagent/toxin/mindbreaker = 0.3,
|
||||
/datum/reagent/mercury = 0.15,
|
||||
/datum/reagent/lithium = 0.15,
|
||||
/datum/reagent/medicine/atropine = 0.15,
|
||||
/datum/reagent/drug/methamphetamine = 0.15,
|
||||
/datum/reagent/drug/bath_salts = 0.15,
|
||||
/datum/reagent/drug/krokodil = 0.15,
|
||||
// /datum/reagent/toxin/lipolicide = 0.15, // SKYRAT REMOVAL - MORE NARCOTICS
|
||||
/datum/reagent/drug/nicotine = 0.1,
|
||||
)
|
||||
rarity = 69
|
||||
graft_gene = /datum/plant_gene/trait/glow/green
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
name = "pack of bungo tree seeds"
|
||||
desc = "These seeds grow into bungo trees. They appear to be heavy and almost perfectly spherical."
|
||||
icon_state = "seed-bungotree"
|
||||
plant_icon_offset = 4
|
||||
species = "bungotree"
|
||||
plantname = "Bungo Tree"
|
||||
product = /obj/item/food/grown/bungofruit
|
||||
|
||||
@@ -128,6 +128,7 @@
|
||||
name = "pack of harebell seeds"
|
||||
desc = "These seeds grow into pretty little flowers."
|
||||
icon_state = "seed-harebell"
|
||||
plant_icon_offset = 1
|
||||
species = "harebell"
|
||||
plantname = "Harebells"
|
||||
product = /obj/item/food/grown/harebell
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "pack of kronkus seeds"
|
||||
desc = "A pack of highly illegal kronkus seeds.\nPossession of these seeds carries the death penalty in 7 sectors."
|
||||
icon_state = "seed-kronkus"
|
||||
plant_icon_offset = 6
|
||||
species = "kronkus"
|
||||
plantname = "Kronkus Vine"
|
||||
product = /obj/item/food/grown/kronkus
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
name = "pack of pumpkin seeds"
|
||||
desc = "These seeds grow into pumpkin vines."
|
||||
icon_state = "seed-pumpkin"
|
||||
plant_icon_offset = 4
|
||||
species = "pumpkin"
|
||||
plantname = "Pumpkin Vines"
|
||||
product = /obj/item/food/grown/pumpkin
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
name = "pack of replica pod seeds"
|
||||
desc = "These seeds grow into replica pods. They say these are used to harvest humans."
|
||||
icon_state = "seed-replicapod"
|
||||
plant_icon_offset = 2
|
||||
species = "replicapod"
|
||||
plantname = "Replica Pod"
|
||||
product = /mob/living/carbon/human //verrry special -- Urist
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
name = "pack of kudzu seeds"
|
||||
desc = "These seeds grow into a weed that grows incredibly fast."
|
||||
icon_state = "seed-kudzu"
|
||||
plant_icon_offset = 2
|
||||
species = "kudzu"
|
||||
plantname = "Kudzu"
|
||||
product = /obj/item/food/grown/kudzupod
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "pack of nettle seeds"
|
||||
desc = "These seeds grow into nettles."
|
||||
icon_state = "seed-nettle"
|
||||
plant_icon_offset = 0
|
||||
species = "nettle"
|
||||
plantname = "Nettles"
|
||||
product = /obj/item/food/grown/nettle
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
name = "pack of starthistle seeds"
|
||||
desc = "A robust species of weed that often springs up in-between the cracks of spaceship parking lots."
|
||||
icon_state = "seed-starthistle"
|
||||
plant_icon_offset = 3
|
||||
species = "starthistle"
|
||||
plantname = "Starthistle"
|
||||
lifespan = 70
|
||||
|
||||
@@ -300,7 +300,7 @@
|
||||
set_self_sustaining(FALSE)
|
||||
|
||||
/obj/machinery/hydroponics/process(delta_time)
|
||||
var/needs_update = 0 // Checks if the icon needs updating so we don't redraw empty trays every time
|
||||
var/needs_update = FALSE // Checks if the icon needs updating so we don't redraw empty trays every time
|
||||
|
||||
if(self_sustaining)
|
||||
if(powered())
|
||||
@@ -319,7 +319,7 @@
|
||||
if(age < myseed.maturation)
|
||||
lastproduce = age
|
||||
|
||||
needs_update = 1
|
||||
needs_update = TRUE
|
||||
|
||||
|
||||
//Nutrients//////////////////////////////////////////////////////////////
|
||||
@@ -493,6 +493,7 @@
|
||||
else
|
||||
var/t_growthstate = clamp(round((age / myseed.maturation) * myseed.growthstages), 1, myseed.growthstages)
|
||||
plant_overlay.icon_state = "[myseed.icon_grow][t_growthstate]"
|
||||
plant_overlay.pixel_y = myseed.plant_icon_offset
|
||||
return plant_overlay
|
||||
|
||||
/obj/machinery/hydroponics/proc/update_status_light_overlays()
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
var/icon_dead
|
||||
/// Used to override harvest icon (default is `"[species]-harvest"`). If null, plant will use `[icon_grow][growthstages]`.
|
||||
var/icon_harvest
|
||||
/// Used to offset the plant sprite so that it appears at proper height in the tray
|
||||
var/plant_icon_offset = 8
|
||||
/// How long before the plant begins to take damage from age.
|
||||
var/lifespan = 25
|
||||
/// Amount of health the plant has.
|
||||
|
||||
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -9,6 +9,7 @@
|
||||
desc = "Long stalks with flowering tips, they contain a chemical that attracts felines."
|
||||
species = "catnip"
|
||||
plantname = "Catnip Plant"
|
||||
icon_dead = null
|
||||
growthstages = 3
|
||||
product = /obj/item/food/grown/tea/catnip
|
||||
reagents_add = list(/datum/reagent/pax/catnip = 0.1, /datum/reagent/consumable/nutriment/vitamin = 0.06, /datum/reagent/toxin/teapowder = 0.3)
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
growing_icon = 'modular_skyrat/modules/xenoarch/icons/growing.dmi'
|
||||
icon_grow = "telriis-stage"
|
||||
growthstages = 4
|
||||
plant_icon_offset = 7
|
||||
genes = list(/datum/plant_gene/trait/repeated_harvest)
|
||||
reagents_add = list(/datum/reagent/medicine/higadrite = 0.1)
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |