From 4e891fb72edbb1af7a2994a9e7add0cfccea4058 Mon Sep 17 00:00:00 2001 From: spessbro <51048066+spessbro@users.noreply.github.com> Date: Sun, 4 Jul 2021 19:41:52 -0400 Subject: [PATCH] carnivory is visible (#59927) --- code/modules/hydroponics/grown/mushrooms.dm | 6 +++--- code/modules/hydroponics/hydroponics.dm | 6 +++--- code/modules/hydroponics/plant_genes.dm | 3 --- code/modules/hydroponics/unique_plant_genes.dm | 4 ++++ 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/code/modules/hydroponics/grown/mushrooms.dm b/code/modules/hydroponics/grown/mushrooms.dm index 7eef3d1e0c5..3763e0cdf67 100644 --- a/code/modules/hydroponics/grown/mushrooms.dm +++ b/code/modules/hydroponics/grown/mushrooms.dm @@ -205,15 +205,15 @@ endurance = 8 yield = 4 growthstages = 2 - genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism, /datum/plant_gene/reagent/liquidelectricity, /datum/plant_gene/trait/plant_type/carnivory) + genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism, /datum/plant_gene/reagent/liquidelectricity, /datum/plant_gene/trait/carnivory) growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi' reagents_add = list(/datum/reagent/consumable/nutriment = 0.1) - graft_gene = /datum/plant_gene/trait/plant_type/carnivory + graft_gene = /datum/plant_gene/trait/carnivory /obj/item/seeds/chanter/jupitercup/Initialize(mapload,nogenes) . = ..() if(!nogenes) - unset_mutability(/datum/plant_gene/trait/plant_type/carnivory, PLANT_GENE_REMOVABLE) + unset_mutability(/datum/plant_gene/trait/carnivory, PLANT_GENE_REMOVABLE) /obj/item/food/grown/mushroom/jupitercup seed = /obj/item/seeds/chanter/jupitercup diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index 2e5bf697da5..387fd279070 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -208,7 +208,7 @@ //Pests & Weeds////////////////////////////////////////////////////////// if(pestlevel >= 8) - if(!myseed.get_gene(/datum/plant_gene/trait/plant_type/carnivory)) + if(!myseed.get_gene(/datum/plant_gene/trait/carnivory)) if(myseed.potency >=30) myseed.adjust_potency(-rand(2,6)) //Pests eat leaves and nibble on fruit, lowering potency. myseed.set_potency(min((myseed.potency), CARNIVORY_POTENCY_MIN, MAX_PLANT_POTENCY)) @@ -217,7 +217,7 @@ adjustPests(-1 / rating) else if(pestlevel >= 4) - if(!myseed.get_gene(/datum/plant_gene/trait/plant_type/carnivory)) + if(!myseed.get_gene(/datum/plant_gene/trait/carnivory)) if(myseed.potency >=30) myseed.adjust_potency(-rand(1,4)) myseed.set_potency(min((myseed.potency), CARNIVORY_POTENCY_MIN, MAX_PLANT_POTENCY)) @@ -227,7 +227,7 @@ if(prob(50)) adjustPests(-1 / rating) - else if(pestlevel < 4 && myseed.get_gene(/datum/plant_gene/trait/plant_type/carnivory)) + else if(pestlevel < 4 && myseed.get_gene(/datum/plant_gene/trait/carnivory)) if(prob(5)) adjustPests(-1 / rating) diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index 3cef75df9b3..d659ab64522 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -939,6 +939,3 @@ /datum/plant_gene/trait/plant_type/alien_properties name ="?????" -/// Plant doesn't get annoyed by pests in their tray. -/datum/plant_gene/trait/plant_type/carnivory - name = "Obligate Carnivory" diff --git a/code/modules/hydroponics/unique_plant_genes.dm b/code/modules/hydroponics/unique_plant_genes.dm index f04edb5d81c..98cad1c0e22 100644 --- a/code/modules/hydroponics/unique_plant_genes.dm +++ b/code/modules/hydroponics/unique_plant_genes.dm @@ -612,3 +612,7 @@ stank.gases[/datum/gas/miasma][MOLES] = (stinky_seed.yield + 6) * 3.5 * MIASMA_CORPSE_MOLES * delta_time // this process is only being called about 2/7 as much as corpses so this is 12-32 times a corpses stank.temperature = T20C // without this the room would eventually freeze and miasma mining would be easier tray_turf.assume_air(stank) + +/// Plant doesn't get annoyed by pests in their tray. +/datum/plant_gene/trait/carnivory + name = "Obligate Carnivory"