diff --git a/js/003-data/policiesData.js b/js/003-data/policiesData.js index 31178c68597edb6bc8258699fe06e81bc388e188..12710f2b0ae0626aec8ebde775430e9ce6dfc943 100644 --- a/js/003-data/policiesData.js +++ b/js/003-data/policiesData.js @@ -433,5 +433,32 @@ App.Data.Policies.Selection = { get note() { return `May improve cultural development if ${V.assistant.name}'s appearance is fashionable`; } } ], + [ + { + title: "Coursing Association", + text: "you will sponsor a Coursing Association that will hold monthly races.", + get activatedText() { + const el = new DocumentFragment; + el.append(`you are sponsoring a `); + el.append(App.UI.DOM.link( + "Coursing Association", + () => { }, + [], + "Coursing Association" + )); + el.append(` that will hold monthly races.`); + return el; + }, + policy: "policies.coursingAssociation", + get note() { return `Will cost ${cashFormat(1000)} weekly to maintain`; }, + get activatedNote() { + if (V.LurcherID !== 0) { + return `Your current lurcher is ${App.UI.slaveDescriptionDialog(getSlave(V.LurcherID))}`; + } else { + return ``; + } + } + } + ], ] }; diff --git a/src/interaction/policies/policies.js b/src/interaction/policies/policies.js index d230ae989d9f9bbc7c711b784f082be4cf33668c..ab4748787cc358b21b9881ea79d45c81ea381a01 100644 --- a/src/interaction/policies/policies.js +++ b/src/interaction/policies/policies.js @@ -138,7 +138,6 @@ globalThis.policy = function(category) { div.append(`: `); // Description text - console.log(p.text); div.append(`${p.text} `); // link if (policyValue === 0) { diff --git a/src/interaction/policies/policies.tw b/src/interaction/policies/policies.tw index 8999aaf2ff125765b093a62fec6773cc5f7b9836..a42727737230aec6df1e8a7255818c2781606607 100644 --- a/src/interaction/policies/policies.tw +++ b/src/interaction/policies/policies.tw @@ -109,23 +109,6 @@ policy("DomesticPolicies"); </script> - - <<if $policies.coursingAssociation == 1>> - <br>''Coursing Association:'' you are sponsoring a [[Coursing Association]] that will hold monthly races. - <span class="yellow">[[Repeal|Policies][$policies.coursingAssociation = 0]]</span> - <<if $LurcherID != 0>> - <<set $activeSlave = getSlave($LurcherID)>> - <br> Your current lurcher is - <<link "<<= SlaveFullName($activeSlave)>>" "Slave Interact">><</link>>. - <</if>> - <<else>> - <br>''Coursing Association:'' you will sponsor a Coursing Association that will hold monthly races. - <<if $rep >= 1000>> - <span class="green">[[Implement|Policies][$policies.coursingAssociation = 1, cashX(-5000, "policies"), repX(-1000, "policies")]]</span> - <</if>> - <br> //Will cost <<print cashFormat(1000)>> weekly to maintain// - <</if>> - <<if $policies.raidingMercenaries == 1>> <br>''Raiding Mercenaries:'' you are allowing your mercenaries to occasionally raid for your direct benefit. <span class="yellow">[[Repeal|Policies][$policies.raidingMercenaries = 0]]</span>