Skip to content
Snippets Groups Projects
Commit e52e350a authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-dev' into 'pregmod-master'

Simple solution to birth clearing .fertPeak

See merge request pregmodfan/fc-pregmod!4129
parents 70c7b960 7a54e3fb
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
<<set $PC.fertPeak = 1>> <<set $PC.fertPeak = 1>>
<</if>> <</if>>
<<set $PC.fertPeak-->> <<set $PC.fertPeak-->>
<<elseif $PC.fertPeak != 0>>
<<set $PC.fertPeak = 0>>
<</if>> <</if>>
/*Adding random changes to the economy*/ /*Adding random changes to the economy*/
...@@ -144,6 +146,8 @@ ...@@ -144,6 +146,8 @@
<<set $slaves[_i].fertPeak = 1>> <<set $slaves[_i].fertPeak = 1>>
<</if>> <</if>>
<<set $slaves[_i].fertPeak-->> <<set $slaves[_i].fertPeak-->>
<<elseif $slaves[_i].fertPeak != 0>>
<<set $slaves[_i].fertPeak = 0>>
<</if>> <</if>>
<<set $slaves[_i].trust = Number($slaves[_i].trust.toFixed(1)), $slaves[_i].devotion = Number($slaves[_i].devotion.toFixed(1))>> <<set $slaves[_i].trust = Number($slaves[_i].trust.toFixed(1)), $slaves[_i].devotion = Number($slaves[_i].devotion.toFixed(1))>>
<<set $slaves[_i].oldDevotion = $slaves[_i].devotion, $slaves[_i].oldTrust = $slaves[_i].trust, $slaves[_i].tired = 0, $slaves[_i].minorInjury = 0>> <<set $slaves[_i].oldDevotion = $slaves[_i].devotion, $slaves[_i].oldTrust = $slaves[_i].trust, $slaves[_i].tired = 0, $slaves[_i].minorInjury = 0>>
......
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