mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 18:51:53 +00:00
more fixes and runtime corrections
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user