Ported a bunch of tg hydroponic stuff.
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
|
||||
for(var/reag_id in reagents_add)
|
||||
genes += new /datum/plant_gene/reagent(reag_id, reagents_add[reag_id])
|
||||
reagents_from_genes() //quality coding
|
||||
|
||||
/obj/item/seeds/proc/Copy()
|
||||
var/obj/item/seeds/S = new type(null, 1)
|
||||
@@ -94,6 +95,18 @@
|
||||
for(var/datum/plant_gene/reagent/R in genes)
|
||||
reagents_add[R.reagent_id] = R.rate
|
||||
|
||||
///This proc adds a mutability_flag to a gene
|
||||
/obj/item/seeds/proc/set_mutability(typepath, mutability)
|
||||
var/datum/plant_gene/g = get_gene(typepath)
|
||||
if(g)
|
||||
g.mutability_flags |= mutability
|
||||
|
||||
///This proc removes a mutability_flag from a gene
|
||||
/obj/item/seeds/proc/unset_mutability(typepath, mutability)
|
||||
var/datum/plant_gene/g = get_gene(typepath)
|
||||
if(g)
|
||||
g.mutability_flags &= ~mutability
|
||||
|
||||
/obj/item/seeds/proc/mutate(lifemut = 2, endmut = 5, productmut = 1, yieldmut = 2, potmut = 25, wrmut = 2, wcmut = 5, traitmut = 0)
|
||||
adjust_lifespan(rand(-lifemut,lifemut))
|
||||
adjust_endurance(rand(-endmut,endmut))
|
||||
|
||||
Reference in New Issue
Block a user