diff --git a/js/003-data/policiesData.js b/js/003-data/policiesData.js index 48afb0e264384a799258f7c6d6c407f9aa80cf84..a16a4b8da04042cc65a5405cbf4fb16e10de7451 100644 --- a/js/003-data/policiesData.js +++ b/js/003-data/policiesData.js @@ -480,24 +480,20 @@ App.Data.Policies.Selection = { title: "Coursing Association", text: "you will sponsor a Coursing Association that will hold monthly races.", get activatedText() { - const el = new DocumentFragment; + const el = new DocumentFragment(); el.append(`you are sponsoring a `); - el.append(App.UI.DOM.link( - "Coursing Association", - () => { }, - [], - "Coursing Association" - )); + el.append(App.UI.DOM.passageLink("Coursing Association", "Coursing Association")); el.append(` that will hold monthly races.`); return el; }, get note() { return `Will cost ${cashFormat(1000)} weekly to maintain`; }, get activatedNote() { + const el = new DocumentFragment(); if (V.LurcherID !== 0) { - return `Your current lurcher is ${App.UI.slaveDescriptionDialog(getSlave(V.LurcherID))}`; - } else { - return ``; + el.append(`Your current lurcher is `); + el.append(App.UI.DOM.slaveDescriptionDialog(getSlave(V.LurcherID))); } + return el; } } ], diff --git a/src/js/utilsDOM.js b/src/js/utilsDOM.js index bb016cc5a2faab9105a6aac1e6ef01c69f56766e..27531125aa81bb12b0711a878886f59807ec5109 100644 --- a/src/js/utilsDOM.js +++ b/src/js/utilsDOM.js @@ -188,7 +188,7 @@ App.Utils.passageElement = function(passage) { }; /** - * @param {Node|string} content + * @param {(Node|string)[]} content * @returns {DocumentFragment} */ App.UI.DOM.combineNodes = function(...content) { diff --git a/src/npc/surgery/organFarm.js b/src/npc/surgery/organFarm.js index ec09f300f84a86d33d04f80ef6e4c208088678df..20454e84b151f3e948285185548649209d3ebbe9 100644 --- a/src/npc/surgery/organFarm.js +++ b/src/npc/surgery/organFarm.js @@ -172,7 +172,7 @@ App.Medicine.OrganFarm.removeOrgan = function(slave, type) { * Organs the that can be implanted on the slave, sorted by dependencies first * * @param {App.Entity.SlaveState} slave - * @returns {[string]} + * @returns {string[]} */ App.Medicine.OrganFarm.getSortedOrgans = function(slave) { const F = App.Medicine.OrganFarm; diff --git a/src/personalAssistant/assistantOptions.tw b/src/personalAssistant/assistantOptions.tw index 67e449706bff4e424dc388923328b1fef942be35..ef4550e6d13f9b955e3fc328f808e7a55688d46a 100644 --- a/src/personalAssistant/assistantOptions.tw +++ b/src/personalAssistant/assistantOptions.tw @@ -938,7 +938,7 @@ Seated at your desk, you glance at the visual representation of <<link _text "Personal assistant options">> <<set $assistant.Extra2 = 1>> <<if $PC.skill.hacking < 75>> - <<run cashX(Math.trunc(-price), "capEx")>> + <<run cashX(Math.trunc(-_price), "capEx")>> <</if>> <<goto "Assistant Appearance Pack Two">> <</link>> //<<if $PC.skill.hacking < 75>> Costs <<= num(_price)>> <<else>> Unencrypted files, ripe for the taking<</if>>//