Skip to content
Snippets Groups Projects
Commit cda04547 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

invite

parent cd9d0952
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@ App.Events.PEPitFight = class PEPitFight extends App.Events.BaseEvent {
return [
() => V.eventResults.pit === 1,
() => V.BodyguardID !== 0,
];
}
......
App.Events.PEPitFightInvite = class PEPitFightInvite extends App.Events.BaseEvent {
eventPrerequisites() {
return [
() => V.BodyguardID !== 0,
];
}
execute(node) {
let r = [];
V.nextButton = "Continue";
V.nextLink = "RIE Eligibility Check";
const slave = S.Bodyguard;
const {he} = getPronouns(slave);
V.eventResults.pit = 0;
r.push(`Gladiatorial combat between slaves has not yet reached the level of social acceptability it once enjoyed in Rome, but it's growing in popularity. For now, most fights are discreet affairs limited to select guests. Displaying a slave bodyguard is an excellent way to get yourself invited to participate, and V.assistant.name has just passed on an invitation to a private fight next week, should you be willing to hazard a bodyguard.`);
App.Events.addParagraph(node, r);
r = [];
if (V.pit) {
r.push(`Of course, ${capFirstChar(V.pit.name)} in ${V.arcologies[0].name} sees regular fights${(V.pit.lethal) ? " to the death" : ""}, but there's something extra special about attending these outside fights${(V.pit.lethal) ? ", especially with the very real risk of violent death" : ""}.`);
}
App.Events.addParagraph(node, r);
App.Events.addResponses(node, [
new App.Events.Result(`Enter your bodyguard as a gladiatrix`, enterBG),
new App.Events.Result(`Politely decline`, decline),
]);
function enterBG() {
App.Events.drawEventArt(node, S.Bodyguard);
V.eventResults.pit = 1;
return `You receive a brief confirmation. It looks like ${he}'s got a fight.`;
}
function decline() {
return `You decline the invitation.`;
}
}
};
......@@ -109,6 +109,7 @@ App.Events.getNonindividualEvents = function() {
new App.Events.PEConcubineInterview(),
new App.Events.PEUnderageConcubine(),
new App.Events.PEHeadgirlConcubine(),
new App.Events.PEPitFightInvite(),
new App.Events.REDevotees(),
new App.Events.RERelativeRecruiter(),
......
:: PE pit fight invite [nobr]
<<set $nextButton = "Continue">>
<<set $nextLink = "RIE Eligibility Check">>
<<set $eventResults.pit = 0>>
<<setLocalPronouns _S.Bodyguard>>
<span id="art-frame">
</span>
<p>Gladiatorial combat between slaves has not yet reached the level of social acceptability it once enjoyed in Rome, but it's growing in popularity. For now, most fights are discreet affairs limited to select guests. Displaying a slave bodyguard is an excellent way to get yourself invited to participate, and $assistant.name has just passed on an invitation to a private fight next week, should you be willing to hazard a bodyguard.</p>
<<if $pit>>
<p>Of course, <<= capFirstChar($pit.name)>> in $arcologies[0].name sees regular fights<<if $pit.lethal>> to the death<</if>>, but there's something extra special about attending these outside fights<<if !$pit.lethal>>, especially with the very real risk of violent death<</if>>.</p>
<</if>>
<span id="result">
<<link "Enter your bodyguard as a gladiatrix">>
<<replace "#art-frame">>
<span id="art-frame">
/* 000-250-006 */
<<if $seeImages == 1>>
<<if $imageChoice == 1>>
<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<SlaveArt _S.Bodyguard 3 0>></div>
<<else>>
<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<SlaveArt _S.Bodyguard 3 0>></div>
<</if>>
<</if>>
/* 000-250-006 */
</span>
<</replace>>
<<replace "#result">>
You receive a brief confirmation. It looks like $he's got a fight.
<<set $eventResults.pit = 1>>
<</replace>>
<</link>>
<br><<link "Politely decline">>
<<replace "#result">>
You decline the invitation.
<</replace>>
<</link>>
</span>
......@@ -211,8 +211,6 @@
<<if _S.Bodyguard>>
<<set $events.push("PE pit fight invite")>>
<<if (_S.Bodyguard.skill.combat != 0)>>
<<set $PESSevent.push("bodyguard bedtime")>>
<</if>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment