Skip to content
Snippets Groups Projects
Commit 7a2ed515 authored by svornost's avatar svornost
Browse files

clamp attraction during NextWeek to avoid overshooting by so far that the RA...

clamp attraction during NextWeek to avoid overshooting by so far that the RA decides to discourage it
parent 5415bafd
No related branches found
No related tags found
No related merge requests found
......@@ -184,6 +184,8 @@
/% Fix some possible floating point rounding errors, and bring precision to one decimal place. %/
<<run SlaveStatClamp($slaves[_i])>>
<<set $slaves[_i].energy = Math.clamp($slaves[_i].energy.toFixed(1), 0, 100)>>
<<set $slaves[_i].attrXY = Math.clamp($slaves[_i].attrXY.toFixed(1), 0, 100)>>
<<set $slaves[_i].attrXX = Math.clamp($slaves[_i].attrXX.toFixed(1), 0, 100)>>
<<if $slaves[_i].fetishStrength > 95>>
<<set $slaves[_i].fetishStrength = 100>>
<<else>>
......
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