mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
cleans up malignant organ nutrition (#9971)
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
// perform actions based on the parasite
|
||||
if(feedmodmax > 0)
|
||||
if(owner.nutrition > 0)
|
||||
owner.nutrition = max(owner.nutrition - rand( growth * feedmodmin, growth * feedmodmax),0)
|
||||
owner.adjust_nutrition(-rand(growth * feedmodmin, growth * feedmodmax))
|
||||
else
|
||||
owner.remove_blood(1 + rand( growth * feedmodmin, growth * feedmodmax))
|
||||
// by default, don't grow. Other parasites might thought!
|
||||
@@ -196,7 +196,7 @@
|
||||
if(prob(1))
|
||||
owner.Weaken(3)
|
||||
owner.adjustToxLoss(3)
|
||||
owner.nutrition = max(owner.nutrition - rand(1,5),0)
|
||||
owner.adjust_nutrition(-rand(1,5))
|
||||
cooldown = rand(cooldownmin,cooldownmax)
|
||||
if(stage > 2)
|
||||
if(prob(1))
|
||||
@@ -210,7 +210,7 @@
|
||||
owner.make_dizzy(90)
|
||||
else
|
||||
owner.Confuse(20)
|
||||
owner.nutrition = max(owner.nutrition - rand(1,5),0)
|
||||
owner.adjust_nutrition(-rand(1,5))
|
||||
cooldown = rand(cooldownmin,cooldownmax)
|
||||
if(stage > 3)
|
||||
if(prob(1))
|
||||
@@ -219,7 +219,7 @@
|
||||
bodypart.wounds += W
|
||||
owner.Weaken(10)
|
||||
owner.adjustToxLoss(20)
|
||||
owner.nutrition = max(owner.nutrition - rand(1,5),0)
|
||||
owner.adjust_nutrition(-rand(1,5))
|
||||
cooldown = rand(cooldownmin,cooldownmax)
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
|
||||
if(prob(3))
|
||||
owner.adjustToxLoss(2)
|
||||
owner.nutrition = max(owner.nutrition - rand(1,5),0)
|
||||
owner.adjust_nutrition(-rand(1,5))
|
||||
|
||||
if(prob(2))
|
||||
owner.vomit()
|
||||
@@ -621,7 +621,7 @@
|
||||
// finished, ready to TRANSFORM
|
||||
if(owner.radiation > 20)
|
||||
growth++
|
||||
owner.nutrition -= rand(1,3)
|
||||
owner.adjust_nutrition(-rand(1,3))
|
||||
if(owner.nutrition > 20)
|
||||
if(growth > growth_trigger)
|
||||
// spawn new organ, delete us
|
||||
@@ -639,7 +639,7 @@
|
||||
cooldown = rand(5,10)
|
||||
|
||||
else if(!prepared)
|
||||
owner.nutrition -= rand(1,3)
|
||||
owner.adjust_nutrition(-rand(1,3))
|
||||
if(owner.nutrition > 20)
|
||||
growth++
|
||||
if(growth > growth_trigger)
|
||||
@@ -729,7 +729,7 @@
|
||||
// process the chems!
|
||||
if(owner.bloodstr.get_reagent_amount(chemid) < 5)
|
||||
if(prob(10))
|
||||
owner.nutrition = max(owner.nutrition - 1,0) // num num
|
||||
owner.adjust_nutrition(-1) // num num
|
||||
owner.bloodstr.add_reagent(chemid,rand(5,10))
|
||||
cooldown = rand(5,10)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user