diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm index 583013f7ea0..20beda3422f 100644 --- a/code/modules/events/spacevine.dm +++ b/code/modules/events/spacevine.dm @@ -333,8 +333,8 @@ if(!master.vines.len) var/obj/item/seeds/kudzu/KZ = new(loc) KZ.mutations |= mutations - KZ.potency = min(100, master.mutativeness * 10) - KZ.production = (master.spread_cap / initial(master.spread_cap)) * 5 + KZ.set_potency(master.mutativeness * 10) + KZ.set_production((master.spread_cap / initial(master.spread_cap)) * 5) mutations = list() set_opacity(0) if(buckled_mob) diff --git a/code/modules/hydroponics/grown/kudzu.dm b/code/modules/hydroponics/grown/kudzu.dm index e417d1868a5..72edae138bc 100644 --- a/code/modules/hydroponics/grown/kudzu.dm +++ b/code/modules/hydroponics/grown/kudzu.dm @@ -54,7 +54,7 @@ for(var/datum/spacevine_mutation/SM in mutations) if(SM.quality == NEGATIVE) temp_mut_list += SM - if(prob(20)) + if(prob(20) && temp_mut_list.len) mutations.Remove(pick(temp_mut_list)) temp_mut_list.Cut() @@ -62,7 +62,7 @@ for(var/datum/spacevine_mutation/SM in mutations) if(SM.quality == POSITIVE) temp_mut_list += SM - if(prob(20)) + if(prob(20) && temp_mut_list.len) mutations.Remove(pick(temp_mut_list)) temp_mut_list.Cut() @@ -70,21 +70,21 @@ for(var/datum/spacevine_mutation/SM in mutations) if(SM.quality == MINOR_NEGATIVE) temp_mut_list += SM - if(prob(20)) + if(prob(20) && temp_mut_list.len) mutations.Remove(pick(temp_mut_list)) temp_mut_list.Cut() if(S.has_reagent("blood", 15)) - production = Clamp(production + rand(15, -5),1,10) + adjust_production(rand(15, -5)) if(S.has_reagent("amanitin", 5)) - production = Clamp(production + rand(5, -15),1,10) + adjust_production(rand(5, -15)) if(S.has_reagent("plasma", 5)) - potency = Clamp(potency + rand(5, -15),0,100) + adjust_potency(rand(5, -15)) if(S.has_reagent("holywater", 10)) - potency = Clamp(potency + rand(15, -5),0,100) + adjust_potency(rand(15, -5)) /obj/item/weapon/reagent_containers/food/snacks/grown/kudzupod diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm index 5c976119dbd..5b7cb07f402 100644 --- a/code/modules/hydroponics/seeds.dm +++ b/code/modules/hydroponics/seeds.dm @@ -211,7 +211,7 @@ C.value = weed_rate /obj/item/seeds/proc/adjust_weed_chance(adjustamt) - weed_chance = Clamp(weed_chance + adjustamt, 0, 67) + weed_chance = Clamp(weed_chance + adjustamt, 0, 100) var/datum/plant_gene/core/C = get_gene(/datum/plant_gene/core/weed_chance) if(C) C.value = weed_chance