From c59dfe97e88d0dc4ea4f24b3ea37956171567e45 Mon Sep 17 00:00:00 2001 From: Blank_Alt <12406-Blank_Alt@users.noreply.gitgud.io> Date: Fri, 6 Mar 2020 03:01:41 -0800 Subject: [PATCH] Supply policies report fix --- src/js/economyJS.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/js/economyJS.js b/src/js/economyJS.js index e0f3b186c30..33dd17c3856 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -2140,28 +2140,28 @@ window.agentBonus = function(arcology) { window.supplyPoliciesReport = function(NPCclass) { let r = ``; const varName = `${NPCclass}Class`; - const className = NPCclass !== 'top' ? `${NPCclass} class citizens` : `arcology's millionaires`; - const classNameShort = NPCclass === 'top' ? `millionaire` : `${className.replace('citizens', '')}`; + const className = NPCclass !== 'top' ? `<b>${NPCclass} class citizens</b>` : `<b>arcology's millionaires</b>`; + const dissatisfaction = `and their <span class='red'>dissatisfaction</span> with you is rising.`; let overSupply = 0; if (V.sexDemandResult[varName] < 350) { - r += `Your ${className} have <span class='red'>far too few options for sexual relief</span> inside your arcology.`; + r += `Your ${className} have <span class='red'>far too few options for sexual relief</span> inside your arcology`; if (V.classSatisfied[varName] === 0) { - r += ` They trust you will take care of this issue as soon as you are settled in.`; + r += `. They trust you will take care of this issue as soon as you are settled in.`; } else { - r += ` It is <span class='red'>causing dissatisfaction</span> among your ${classNameShort + NPCclass === 'top' ? `s` : ``}.`; + r += ` ${dissatisfaction}`; } } else if (V.sexDemandResult[varName] < 550) { - r += `Your ${className} need <span class='red'>some more avenues for sexual relief</span> inside your arcology.`; + r += `Your ${className} need <span class='red'>some more avenues for sexual relief</span> inside your arcology`; if (V.classSatisfied[varName] === 1) { - r += ` They see <span class='green'>you are on the right track</span> and anticipate further improvements.`; + r += `. They see <span class='green'>you are on the right track</span> and anticipate further improvements.`; } else if (V.classSatisfied[varName] === 0) { - r += ` Their patience is being tested.`; + r += `. Their patience is being tested.`; } else { - r += ` It is <span class='red'>causing dissatisfaction</span> among your ${classNameShort + NPCclass === 'top' ? `s` : ``}.`; + r += ` ${dissatisfaction}`; } } else if (V.sexDemandResult[varName] < 750) { - r += `Your ${className} have no issue finding the sexual relief they need inside your arcology.`; + r += `<b>Your ${className} have no issue finding the sexual relief they need inside your arcology.`; if (V.classSatisfied[varName] === 1) { r += ` They are <span class='green'>delighted</span> with how quickly you've provided for them.`; } @@ -2172,11 +2172,11 @@ window.supplyPoliciesReport = function(NPCclass) { if (V.sexDemandResult[varName] > 1000) { overSupply = V.sexDemandResult[varName] - 1000; V.sexDemandResult[varName] = 1000; } - r += `<br>${capFirstChar(classNameShort)} satisfaction is at ${V.sexDemandResult[varName]/10}%`; + r += `<i><br> Satisfaction is at ${V.sexDemandResult[varName]/10}%`; if (overSupply > 0) { r += ` and the arcology provides ${overSupply/10}% more sexual services than required which <span class='red'>drives prices down</span>`; } - r += `, ${V.NPCMarketShare[varName]/10 === V.sexDemandResult[varName]/10 ? `the entire` : `${V.NPCMarketShare[varName]/10}% of the`} market is serviced by other suppliers operating inside your arcology.<br>`; + r += `, ${V.NPCMarketShare[varName]/10 === V.sexDemandResult[varName]/10 ? `the entire` : `${V.NPCMarketShare[varName]/10}% of the`} market is serviced by other suppliers operating inside your arcology.<br></i>`; // charge supply barriers (unreported, since it's a flat amount that you were told when you enacted the policy) const supplyCosts = [0, 1000, 5000, 20000, 60000]; -- GitLab