Skip to content
Snippets Groups Projects
Commit 3b3574e6 authored by svornost's avatar svornost
Browse files

Don't attempt to improve the condition of an undefined slave if there is no farmer.

parent bcc58ab9
No related branches found
No related tags found
1 merge request!6656Don't attempt to improve the condition of an undefined slave
...@@ -209,13 +209,13 @@ ...@@ -209,13 +209,13 @@
<</switch>> <</switch>>
/* TODO: should FS with "spare" living rules cause some minor health damage and devotion / trust loss? */ /* TODO: should FS with "spare" living rules cause some minor health damage and devotion / trust loss? */
<<if ($slaves[$i].health.condition < -80)>> <<if ($slaves[$i].health.condition < -80)>>
<<run improveCondition($slaves[_FLs], 20)>> <<run improveCondition($slaves[$i], 20)>>
<<elseif $slaves[$i].health.condition < -40>> <<elseif $slaves[$i].health.condition < -40>>
<<run improveCondition($slaves[_FLs], 15)>> <<run improveCondition($slaves[$i], 15)>>
<<elseif $slaves[$i].health.condition < 0>> <<elseif $slaves[$i].health.condition < 0>>
<<run improveCondition($slaves[_FLs], 10)>> <<run improveCondition($slaves[$i], 10)>>
<<elseif $slaves[$i].health.condition < 90>> <<elseif $slaves[$i].health.condition < 90>>
<<run improveCondition($slaves[_FLs], 7)>> <<run improveCondition($slaves[$i], 7)>>
<</if>> <</if>>
<<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>> <<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>>
<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>> <<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment