From e9a677bc6eeeb3c7833749c88322e62e51bec533 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Wed, 24 Jun 2020 21:42:27 -0400 Subject: [PATCH] more data --- js/003-data/policiesData.js | 9 +++++++++ src/interaction/policies/policies.js | 4 ++-- src/interaction/policies/policies.tw | 10 ---------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/js/003-data/policiesData.js b/js/003-data/policiesData.js index b7549fa2aca..889be22bfdb 100644 --- a/js/003-data/policiesData.js +++ b/js/003-data/policiesData.js @@ -413,5 +413,14 @@ App.Data.Policies.Selection = { activatedNote: [`activated entertainments`, ``] } ], + [ + { + title: "Public Personal Assistant", + text: `${V.assistant.name} is part of your public image.`, + activatedText: `${V.assistant.name} is part of your public image.`, + policy: "policies.publicPA", + note: `May improve cultural development if ${V.assistant.name}'s appearance is fashionable` + } + ], ] }; diff --git a/src/interaction/policies/policies.js b/src/interaction/policies/policies.js index 79c93c8ca57..a29ff30a283 100644 --- a/src/interaction/policies/policies.js +++ b/src/interaction/policies/policies.js @@ -138,8 +138,8 @@ globalThis.policy = function(category) { div.append(`: `); // Description text - div.append(p.text); - div.append(` `); + console.log(p.text); + div.append(`${p.text} `); // link if (policyValue === 0) { let enable; diff --git a/src/interaction/policies/policies.tw b/src/interaction/policies/policies.tw index 0ac9a4284f7..8999aaf2ff1 100644 --- a/src/interaction/policies/policies.tw +++ b/src/interaction/policies/policies.tw @@ -109,16 +109,6 @@ policy("DomesticPolicies"); </script> - <<if $policies.publicPA == 1>> - <br>''Public Personal Assistant:'' $assistant.name is part of your public image. - <span class="yellow">[[Repeal|Policies][$policies.publicPA = 0]]</span> - <<else>> - <br>''Public Personal Assistant:'' $assistant.name will become part of your public image. - <<if $rep >= 1000>> - <span class="green">[[Implement|Policies][$policies.publicPA = 1, cashX(-5000, "policies"), repX(-1000, "policies")]]</span> - <</if>> - <br> //May improve cultural development if $assistant.name's appearance is fashionable// - <</if>> <<if $policies.coursingAssociation == 1>> <br>''Coursing Association:'' you are sponsoring a [[Coursing Association]] that will hold monthly races. -- GitLab