diff --git a/src/events/RE/reAWOL.js b/src/events/RE/reAWOL.js index 9e91f254f2bc0f65e60067c43644b663b45916a8..e8fce9ce2ff8d9850df72495ca4b252b02f82c55 100644 --- a/src/events/RE/reAWOL.js +++ b/src/events/RE/reAWOL.js @@ -133,33 +133,10 @@ App.Events.REAWOL = class REAWOL extends App.Events.BaseEvent { App.Events.addParagraph(frag, r); const choices = []; - choices.push(new App.Events.Result(`Enslave ${him}`, enslave)); - choices.push(new App.Events.Result(`Flog ${him} in public then exile ${him} from the arcology`, flog)); + choices.push(new App.Events.Result(`Enslave ${him}`, () => enslave(true))); + choices.push(new App.Events.Result(`Flog ${him} in public then exile ${him} from the arcology`, () => flog(true))); App.Events.addResponses(frag, choices); - function enslave() { - const frag = new DocumentFragment(); - let r = []; - r.push(`Despite the trouble ${he} has caused you, you manage to complete the legalities and biometric scanning quickly and without incident. Of course, this is in large part due to the fact that the would-be mutineer is of course restrained. Based on the accounts of ${his} captors and the numerous injuries evident amongst them, ${he} is likely to be violent when ${he} is finally released.`); - r.push(App.UI.newSlaveIntro(slave)); - App.Events.addParagraph(frag, r); - return frag; - } - - function flog() { - const frag = new DocumentFragment(); - let r = []; - r.push(`An example must be made. There is a binding contract between you and your ${V.mercenariesTitle}, and this ${woman} attempted to undermine it for ${his} own selfish profit. The protesting bitch is stripped and flogged on the promenade before being escorted bleeding from the arcology. The public <span class="reputation inc">approves of this harshness.</span> In addition <span class="prosperity inc">Arcology prosperity improves,</span> a result of showing your citizens that you are willing and able to deal with such matters in-house.`); - V.arcologies[0].prosperity += 2; - repX(5000, "event", slave); - if (V.arcologies[0].prosperity > V.AProsperityCap) { - V.arcologies[0].prosperity = V.AProsperityCap; - } - App.Events.addParagraph(frag, r); - return frag; - } - - App.Events.addParagraph(frag, r); return frag; } } @@ -192,31 +169,41 @@ App.Events.REAWOL = class REAWOL extends App.Events.BaseEvent { r.push(`It doesn't take long for some hired guns, motivated by the bounty, to track ${him} down. Soon you have the troublesome turncoat before you in chains.`); App.Events.addParagraph(frag, r); const choices = []; - choices.push(new App.Events.Result(`Enslave ${him}`, enslave)); - choices.push(new App.Events.Result(`Flog ${him} in public then exile ${him} from the arcology`, flog)); + choices.push(new App.Events.Result(`Enslave ${him}`, () => enslave(false))); + choices.push(new App.Events.Result(`Flog ${him} in public then exile ${him} from the arcology`, () => flog(false))); App.Events.addResponses(frag, choices); return frag; + } + } - function enslave() { - const frag = new DocumentFragment(); - let r = []; - r.push(`Despite the trouble ${he} has caused you, you manage to complete the legalities and biometric scanning quickly and without incident. Of course, this is in large part due to the fact that the would-be mutineer is of course restrained. Based on the accounts of ${his} captors and the numerous injuries evident amongst them, ${he} is likely to be violent when ${he} is finally released.`); - r.push(App.UI.newSlaveIntro(slave)); - cashX(-bountyFee, "event", slave); - App.Events.addParagraph(frag, r); - return frag; + function flog(inHouse) { + const frag = new DocumentFragment(); + let r = []; + r.push(`An example must be made. There is a binding contract between you and your ${V.mercenariesTitle}, and this ${woman} attempted to undermine it for ${his} own selfish profit. The protesting bitch is stripped and flogged on the promenade before being escorted bleeding from the arcology. The public <span class="reputation inc">approves of this harshness.</span>`); + repX(5000, "event", slave); + if (inHouse) { + r.push(`In addition <span class="prosperity inc">Arcology prosperity improves,</span> a result of showing your citizens that you are willing and able to deal with such matters in-house.`); + V.arcologies[0].prosperity += 2; + if (V.arcologies[0].prosperity > V.AProsperityCap) { + V.arcologies[0].prosperity = V.AProsperityCap; } + } else { // Used bounty hunters instead + cashX(-bountyFee, "event", slave); + } + App.Events.addParagraph(frag, r); + return frag; + } - function flog() { - const frag = new DocumentFragment(); - let r = []; - r.push(`An example must be made. There is a binding contract between you and your ${V.mercenariesTitle}, and this ${woman} attempted to undermine it for ${his} own selfish profit. The protesting bitch is stripped and flogged on the promenade before being escorted bleeding from the arcology. The public <span class="reputation inc">approves of this harshness.</span>`); - repX(5000, "event", slave); - cashX(-bountyFee, "event", slave); - App.Events.addParagraph(frag, r); - return frag; - } + function enslave(inHouse) { + const frag = new DocumentFragment(); + let r = []; + r.push(`Despite the trouble ${he} has caused you, you manage to complete the legalities and biometric scanning quickly and without incident. Of course, this is in large part due to the fact that the would-be mutineer is of course restrained. Based on the accounts of ${his} captors and the numerous injuries evident amongst them, ${he} is likely to be violent when ${he} is finally released.`); + if (!inHouse) { // Used bounty hunters instead + cashX(-bountyFee, "event", slave); } + r.push(App.UI.newSlaveIntro(slave)); + App.Events.addParagraph(frag, r); + return frag; } } };