Skip to content
Snippets Groups Projects
Commit 50e7f1ab authored by svornost's avatar svornost
Browse files

Turns out purge *can* get the last little bit.

parent 5ca38300
Branches
Tags
1 merge request!5781Clinic & spa updates
...@@ -280,10 +280,9 @@ ...@@ -280,10 +280,9 @@
<<if ($clinicSpeedGestation == 1) && ($slaves[$i].pregKnown == 1)>> <<if ($clinicSpeedGestation == 1) && ($slaves[$i].pregKnown == 1)>>
<<set $slaves[$i].pregControl = "speed up">> <<set $slaves[$i].pregControl = "speed up">>
<</if>> <</if>>
<<if ($slaves[$i].chem > 50) && ($clinicUpgradeFilters >= 1)>> <<if ($slaves[$i].chem > 10) && ($clinicUpgradeFilters >= 1)>>
<<if $slaves[$i].health.health > -50 && ($clinicUpgradePurge > 0)>> <<if $slaves[$i].health.health > -50 && ($clinicUpgradePurge > 0)>>
<<set $slaves[$i].chem -= 100 * $clinicUpgradePurge>> <<set $slaves[$i].chem -= 100 * $clinicUpgradePurge>>
<<set $slaves[$i].chem = Math.max($slaves[$i].chem, 40)>> /* purge can't get the last little bit */
<<run healthDamage($slaves[$i], 15)>> <<run healthDamage($slaves[$i], 15)>>
<</if>> <</if>>
<<set $slaves[$i].chem = Math.max($slaves[$i].chem - 5, 0)>> <<set $slaves[$i].chem = Math.max($slaves[$i].chem - 5, 0)>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment