Skip to content
Snippets Groups Projects
Commit 55b0ac1a authored by Jones's avatar Jones
Browse files

Devotion overflow and serve the public balance

parent efe21994
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ window.SlaveStatClamp = /** @param {App.Entity.SlaveState} slave */ function Sla
else if ((slave.trust < 100) && (slave.trust > 20))
slave.trust += (Math.trunc((slave.devotion-100)*5)/10);
else
repX(10*(slave.devotion-100), "slavesViewOfPC", slave);
repX(4*(slave.devotion-100), "slavesViewOfPC", slave);
slave.devotion = 100;
} else if (slave.devotion < -95)
slave.devotion = -100;
......@@ -18,7 +18,7 @@ window.SlaveStatClamp = /** @param {App.Entity.SlaveState} slave */ function Sla
else if (slave.devotion < 100 && slave.devotion > 20)
slave.devotion += Math.trunc(slave.trust-100);
else
repX(10*(slave.trust-100), "slavesViewOfPC", slave);
repX(4*(slave.trust-100), "slavesViewOfPC", slave);
slave.trust = 100;
} else if (slave.trust < -95)
slave.trust = -100;
......
......@@ -1053,13 +1053,13 @@ $His appearance attracted $beauty members of the public (<<print Math.trunc($bea
<<if ($slaves[$i].assignment == "recruit girls")>>
<<elseif $slaves[$i].assignment == "serve in the club">>
<<run repX(Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.1), "publicServantClub", $slaves[$i])>>
<<run repX(Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.15), "publicServantClub", $slaves[$i])>>
<<elseif $slaves[$i].assignment == "serve the public">>
<<run repX(Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.1), "publicServant", $slaves[$i])>>
<<run repX(Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.15), "publicServant", $slaves[$i])>>
<<else>>
<<run repX(Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.1), "serving the public in an unregistered building", $slaves[$i])>>
<<run repX(Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.15), "serving the public in an unregistered building", $slaves[$i])>>
<</if>>
<<set _incomeStats.income += Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.1)>>
<<set _incomeStats.income += Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[$i].entertainSkill))*0.15)>>
/* FACILITY DECORATION IMPACTS */
......
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