diff --git a/js/003-data/policiesData.js b/js/003-data/policiesData.js index 9a4ac356b0a1557e77c502d5d86773bafd57c83e..54b744085be8b38440914c40fac890b657a5afaa 100644 --- a/js/003-data/policiesData.js +++ b/js/003-data/policiesData.js @@ -1,23 +1,24 @@ App.Data.Policies.Selection = { SMR: { /** - * @param {string} // The policy value as a piece of the variable. "policies.SMR.basicSMR" will be checked against "V.policies.SMR.basicSMR". "arcologies[0].FSEgyptianRevivalistIncestPolicy" will be checked against "V.arcologies[0].FSEgyptianRevivalistIncestPolicy". + * @param {string} // The policy value as a piece of the variable. "policies.SMR.basicSMR" will be checked against "V.policies.SMR.basicSMR". "arcologies[0].FSEgyptianRevivalistIncestPolicy" will be checked against "V.arcologies[0].FSEgyptianRevivalistIncestPolicy". */ "policies.SMR.basicSMR": [ /** * @param {string} title The title of the policy as displayed in the UI, "Health Inspection SMR" * @param {string} [titleClass] The class to apply to the title: "lime" - * @param {string} [activatedTitle] The title of the policy if the policy is active. Param "title" is used as a fallback. - * @param {string} text Text that describes the policy in detail. - * @param {string} [activatedText] Text that describes an active policy in detail. Uses param "text" as a fallback. - * @param {Function} [requirements] Function to determine if a policy can be enabled. Returns boolean. - * @param {Function} [onImplementation] Beyond applying the policy itself and billing the player, are there other values to change? This allows a shortstack FS policy to revoke some generic tall policies, for example. No return expected. + * @param {string} [activatedTitle] The title of the policy if the policy is active. Param "title" is used as a fallback. + * @param {string} text Text that describes the policy in detail. No initial cap, ends with punctuation. + * @param {string} [activatedText] Text that describes an active policy in detail. Uses param "text" as a fallback. + * @param {Function} [requirements] Function to determine if a policy can be enabled. Returns boolean. + * @param {Function} [onImplementation] Beyond applying the policy itself and billing the player, are there other values to change? This allows a shortstack FS policy to revoke some generic tall policies, for example. No return expected. * @param {Function} [onRepeal] same as onImplementation, but fires when a policy is repealed. - * @param {number|string} [enable] Value to enable a policy. Defaults to 1 if not defined. - * @param {object} [hide] Object controling special hide settings that can hide parts of the policy if needed. + * @param {number|string} [enable] Value to enable a policy. Defaults to 1 if not defined. + * @param {object} [hide] Object controlling special hide settings that can hide parts of the policy if needed. * @param {number} [hide.button] Hides the appeal/repeal button if 1 * @param {number} [hide.ifActivated] Hides the entire policy if the policy is applied. 1 to enable. - * @param {string} [note] Note that appears at the end of the policy display in italics to present further information. + * @param {string} [note] Note that appears at the end of the policy display in italics to present further information. Starts with cap, no punctuation at end. + * @param {string} [activatedNote] Note that appears if policy is activated. Please note that unlike the other "activated" categories, "note" is only displayed on deactivated policies. There is no fallback. */ { title: "Basic SMR", @@ -100,7 +101,7 @@ App.Data.Policies.Selection = { text += "geld "; } } - text += " all market slaves below the maximum height"; + text += " all market slaves below the maximum height."; return text; } } @@ -128,7 +129,7 @@ App.Data.Policies.Selection = { text += "geld "; } } - text += " all market slaves below the maximum facial beauty" + text += " all market slaves below the maximum facial beauty."; return text; } } @@ -283,9 +284,7 @@ App.Data.Policies.Selection = { activatedText: "underage slaves enjoy protections against molestation and rape.", requirements: function() { if (V.extremeUnderage === 1) { return true; } else { return false; } }, } - ] - }, - FutureSocieties: { + ], "arcologies[0].FSEgyptianRevivalistIncestPolicy": [ { title: "Incest Encouragement", @@ -311,7 +310,7 @@ App.Data.Policies.Selection = { { title: "Encourage Self-Enslavement", text: "your image as a slaveowner will be softened, encouraging the desperate to consider coming to you for enslavement.", - activatedText: "Soften your image as a slaveowner, encouraging the desperate to consider coming to you for enslavement.", + activatedText: "soften your image as a slaveowner, encouraging the desperate to consider coming to you for enslavement.", note: "Will increase the chances of desperate people offering themselves to you for enslavement" } ], @@ -436,7 +435,7 @@ App.Data.Policies.Selection = { } }, get activatedNote() { - let text = `Will cost weekly`; + let text = `Will cost ${cashFormat(policies.cost())} weekly`; if (V.rep > 18000) { text += `, and prevent damage to your reputation`; } @@ -841,7 +840,7 @@ App.Data.Policies.Selection = { "policies.retirement.births": [ { title: "Fertile Breeder Retirement", - get text() { return `slaves will be rewarded with their freedom once they add ${num(V.policies.retirement.births)} new slaves to the population of ${V.arcologies[0].name}.`; }, + get text() { return `slaves will be rewarded with their freedom once they add ${num(V.policies.retirement.births)} new slaves to the population of ${V.arcologies[0].name}.`; }, get activatedText() { const el = new DocumentFragment; let div = document.createElement('div'); @@ -1309,7 +1308,7 @@ App.Data.Policies.Selection = { text: "you will do your best to push focus on to relative height rather than a strict cutoff.", activatedText: "beauty standards are based off of relative expected height as opposed to a strict cutoff.", requirements: function() { if (V.arcologies[0].FSStatuesqueGlorification >= 60) { return true; } else { return false; } }, - note: `/Will weaken beauty standards by making them more easily attainable` + note: `Will weaken beauty standards by making them more easily attainable` } ], "arcologies[0].FSStatuesqueGlorificationLaw": [ @@ -1442,7 +1441,7 @@ App.Data.Policies.Selection = { { title: "Corpulence SMR", titleClass: "lime", - text: "in order to be sold in the arcology, slaves will be required to be plump.", + text: "in order to be sold in the arcology, slaves will be required to be plump.", activatedText: "in order to be sold in the arcology, slaves must be plump.", note: `Will help advance Hedonistic Decadence` } @@ -1451,7 +1450,7 @@ App.Data.Policies.Selection = { { title: "Rotund Feminine Ideal", titleClass: "lime", - text: "you will do your best to start a fashion for thick girls with soft ", + text: "you will do your best to start a fashion for thick girls with soft bellies, big butts and luscious tits.", activatedText: "you are doing your best to maintain a fashion for thick girls with soft bellies, big butts and luscious tits.", requirements: function() { if ( @@ -1666,7 +1665,7 @@ App.Data.Policies.Selection = { text: "will protect the arcology from old world influences.", activatedText: "protects the arcology from old world influences, speeding the acceptance of all future societies.", requirements: function() { if (V.arcologies[0].FSEdoRevivalist >= 90) { return true; } else { return false; } }, - note: `Will speed the acceptance of all future societie` + note: `Will speed the acceptance of all future societies` } ], }, diff --git a/src/interaction/policies/policies.tw b/src/interaction/policies/policies.tw index db05994bc5908dfa3eccb08d69271d949e3fadb7..4e50b64af406e89e2d068bd7fa7cbf2ebeea8654 100644 --- a/src/interaction/policies/policies.tw +++ b/src/interaction/policies/policies.tw @@ -85,12 +85,6 @@ <script> policy("SexualTrendsetting"); </script> - - <h1>Future Societies</h1> - <span id="FutureSocieties"></span> - <script> - policy("FutureSocieties"); - </script> </div> </div>