From 4fa4b26ad3ea2614d68b54a1688d5f47a9132f08 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Tue, 29 Jun 2021 17:46:24 -0400 Subject: [PATCH] use const for buy in value --- src/events/RE/rePokerNight.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/events/RE/rePokerNight.js b/src/events/RE/rePokerNight.js index d612c932d3f..eb422283990 100644 --- a/src/events/RE/rePokerNight.js +++ b/src/events/RE/rePokerNight.js @@ -14,6 +14,7 @@ App.Events.REPokerNight = class REPokerNight extends App.Events.BaseEvent { V.nextButton = "Continue"; V.nextLink = "RIE Eligibility Check"; let r = []; + const buyIn = 5000; const { HeA } = getPronouns(assistant.pronouns().main).appendSuffix("A"); @@ -37,7 +38,7 @@ App.Events.REPokerNight = class REPokerNight extends App.Events.BaseEvent { if (V.cash < 5000) { choices.push(new App.Events.Result(null, null, "You lack the necessary funds to attend a high stakes poker game.")); } else { - choices.push(new App.Events.Result(`Attend the poker night`, attend, `It will cost ${cashFormat(5000)} to participate in the poker night.`)); + choices.push(new App.Events.Result(`Attend the poker night`, attend, `It will cost ${cashFormat(buyIn)} to participate in the poker night.`)); } App.Events.addResponses(node, choices); @@ -48,7 +49,7 @@ App.Events.REPokerNight = class REPokerNight extends App.Events.BaseEvent { function attend() { const frag = new DocumentFragment(); let r = []; - r.push(`You instruct ${V.assistant.name} to inform your ${V.mercenariesTitle} that you will be attending their poker night, and after settling your affairs in the penthouse you head down to the barracks. Unsurprisingly the atmosphere in the barracks is casual, especially in comparison to the high stakes games commonplace in arcology high society, though your mercenaries still maintain some measure of decorum towards you as their employer. Eventually, you settle in at the table with a handful of ${V.mercenariesTitle} officers and cash in your ${cashFormat(5000)} into chips. All that remains is to decide your strategy for the night.`); + r.push(`You instruct ${V.assistant.name} to inform your ${V.mercenariesTitle} that you will be attending their poker night, and after settling your affairs in the penthouse you head down to the barracks. Unsurprisingly the atmosphere in the barracks is casual, especially in comparison to the high stakes games commonplace in arcology high society, though your mercenaries still maintain some measure of decorum towards you as their employer. Eventually, you settle in at the table with a handful of ${V.mercenariesTitle} officers and cash in your ${cashFormat(buyIn)} into chips. All that remains is to decide your strategy for the night.`); App.Events.addParagraph(frag, r); const choices = []; -- GitLab