Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,11 @@
/obj/item/stack/sheet/glass = 1
)

// DARKPACK EDIT ADD START
/obj/item/circuitboard/machine/hydroponics/tainted
build_path = /obj/machinery/hydroponics/constructable/tainted
// DARKPACK EDIT ADD END

/obj/item/circuitboard/machine/microwave
name = "Microwave"
greyscale_colors = CIRCUIT_COLOR_SERVICE
Expand Down
2 changes: 2 additions & 0 deletions code/modules/cargo/packs/organic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
/obj/item/food/grown/cucumber,
)

/* // DARKPACK EDIT REMOVAL
/datum/supply_pack/organic/exoticseeds
name = "Exotic Seeds Crate"
desc = "Any entrepreneuring botanist's dream. Contains twelve different seeds, \
Expand All @@ -110,6 +111,7 @@
)
crate_name = "exotic seeds crate"
crate_type = /obj/structure/closet/crate/hydroponics
*/

/datum/supply_pack/organic/food
name = "Food Crate"
Expand Down
35 changes: 23 additions & 12 deletions code/modules/hydroponics/hydroponics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
var/tray_flags = HYDROPONIC
///How many extra px to offset the plant sprite on the y axis, gets passed to the seed and added to the seeds offset
var/plant_offset_y = 0

var/mutating_tray = FALSE // DARKPACK EDIT ADD

/obj/machinery/hydroponics/Initialize(mapload)
//ALRIGHT YOU DEGENERATES. YOU HAD REAGENT HOLDERS FOR AT LEAST 4 YEARS AND NONE OF YOU MADE HYDROPONICS TRAYS HOLD NUTRIENT CHEMS INSTEAD OF USING "Points".
Expand Down Expand Up @@ -172,6 +172,14 @@
desc = "A basin used to grown plants in, packed full of cutting-edge technology."
circuit = /obj/item/circuitboard/machine/hydroponics/fullupgrade

// DARKPACK EDIT ADD START
/obj/machinery/hydroponics/constructable/tainted
name = "strange hydroponics tray"
desc = "A strange modified basic used to grow plants. It has many nozzles and tanks full of bubbling liquid you cant understand."
circuit = /obj/item/circuitboard/machine/hydroponics/tainted
mutating_tray = TRUE
// DARKPACK EDIT ADD END

/obj/machinery/hydroponics/constructable/Initialize(mapload)
. = ..()
AddElement(/datum/element/simple_rotation)
Expand Down Expand Up @@ -391,17 +399,20 @@
pollinate()

//This is where stability mutations exist now.
if(myseed.instability >= 80)
traitmutate(myseed.instability - 75) //Scaling odds of a random trait or chemical
if(myseed.instability >= 60)
if(prob((myseed.instability)/2) && !self_sustaining && LAZYLEN(myseed.mutatelist) && !myseed.get_gene(/datum/plant_gene/trait/never_mutate)) //Minimum 30%, Maximum 50% chance of mutating every age tick when not on autogrow or having Prosophobic Inclination trait.
mutatespecie()
myseed.set_instability(myseed.instability/2)
if(myseed.instability >= 20 && prob(myseed.instability) && !myseed.get_gene(/datum/plant_gene/trait/stable_stats)) //No hardmutation if Symbiotic Resilience trait is present.
if(myseed.instability >= 40)
hardmutate(stabmut = myseed.instability >= 80 ? 5 : 0)
else
mutate(stabmut = 0)
// DARKPACK EDIT CHANGE START - (Locks mutating through process to a specifc type of tray)
if(mutating_tray)
if(myseed.instability >= 80)
traitmutate(myseed.instability - 75) //Scaling odds of a random trait or chemical
if(myseed.instability >= 60)
if(prob((myseed.instability)/2) && !self_sustaining && LAZYLEN(myseed.mutatelist) && !myseed.get_gene(/datum/plant_gene/trait/never_mutate)) //Minimum 30%, Maximum 50% chance of mutating every age tick when not on autogrow or having Prosophobic Inclination trait.
mutatespecie()
myseed.set_instability(myseed.instability/2)
if(myseed.instability >= 20 && prob(myseed.instability) && !myseed.get_gene(/datum/plant_gene/trait/stable_stats)) //No hardmutation if Symbiotic Resilience trait is present.
if(myseed.instability >= 40)
hardmutate(stabmut = myseed.instability >= 80 ? 5 : 0)
else
mutate(stabmut = 0)
// DARKPACK EDIT CHANGE END

//Health & Age///////////////////////////////////////////////////////////

Expand Down
Loading