more fixes and runtime corrections

This commit is contained in:
Fox-McCloud
2017-01-28 04:03:33 -05:00
parent a69b3f3673
commit ec4add0ebf
3 changed files with 10 additions and 10 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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