Skip to content
Snippets Groups Projects
Commit c16e689b authored by Arkerthan's avatar Arkerthan
Browse files

possible facilities to pure dom

parent 19e5fd6b
No related branches found
No related tags found
1 merge request!8522Convert all possible passages to pure JS
new App.DomPassage("Wardrobe",
() => {
V.nextButton = "Back";
V.nextLink = "Manage Penthouse";
return App.UI.WardrobeShopping("FS");
}, ["jump-to-safe", "jump-from-safe"]
);
new App.DomPassage("Pit", () => { return App.Facilities.Pit.pit(); }, ["jump-to-safe", "jump-from-safe"]);
new App.DomPassage("Salon",
() => {
V.nextButton = "Confirm changes";
V.nextLink = "Slave Interact";
V.encyclopedia = "The Auto Salon";
return App.UI.salon(getSlave(V.AS));
}, ["jump-to-safe", "jump-from-safe"]
);
new App.DomPassage("Body Modification",
() => {
V.nextButton = "Confirm changes";
V.nextLink = "Slave Interact";
V.encyclopedia = "The Studio";
return App.UI.bodyModification(getSlave(V.AS));
}, ["jump-to-safe", "jump-from-safe"]
);
new App.DomPassage("Incubator", () => { return App.UI.incubator(); }, ["jump-to-safe", "jump-from-safe"]);
new App.DomPassage("Agent Select",
() => {
V.nextButton = "Back";
V.nextLink = "Neighbor Interact";
V.encyclopedia = "Agents";
const f = document.createDocumentFragment();
App.UI.DOM.appendNewElement("h2", f, "Appoint an Agent from your devoted slaves");
// TODO Logic should not be handled here.
f.append(App.UI.SlaveList.slaveSelectionList(
s => s.fuckdoll === 0
&& s.devotion > 20
&& s.intelligence + s.intelligenceImplant > 15
&& s.intelligenceImplant >= 15
&& canWalk(s) && canSee(s) && canHear(s) && canTalk(s)
&& s.broodmother < 2
&& (s.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset"),
(slave) => App.UI.DOM.passageLink(SlaveFullName(slave), "Agent Workaround",
() => { V.i = V.slaves.findIndex((s) => s.ID === slave.ID); }),
s => App.Entity.facilities.arcologyAgent.manager.slaveHasExperience(s)
));
return f;
}, ["jump-from-safe"]
);
:: Body Modification [nobr jump-from-safe]
<<set $nextButton = "Confirm changes", $nextLink = "Slave Interact", $encyclopedia = "The Studio">>
<<includeDOM App.UI.bodyModification(getSlave($AS))>>
\ No newline at end of file
:: Incubator [nobr jump-to-safe jump-from-safe]
<<includeDOM App.UI.incubator()>>
\ No newline at end of file
:: Pit [nobr jump-to-safe jump-from-safe]
<<includeDOM App.Facilities.Pit.pit()>>
:: Salon [nobr jump-from-safe]
<<set $nextButton = "Confirm changes", $nextLink = "Slave Interact", $encyclopedia = "The Auto Salon">>
<<includeDOM App.UI.salon(getSlave($AS))>>
\ No newline at end of file
:: Wardrobe [nobr jump-to-safe jump-from-safe]
<<set $nextButton = "Back", $nextLink = "Manage Penthouse">>
<<includeDOM App.UI.WardrobeShopping("FS")>>
:: Agent Select [nobr jump-from-safe]
<<set $nextButton = "Back", $nextLink = "Neighbor Interact", $encyclopedia = "Agents">>
''Appoint an Agent from your devoted slaves:''
<<includeDOM App.UI.SlaveList.slaveSelectionList(
s => (s.fuckdoll === 0 && s.devotion > 20 && s.intelligence + s.intelligenceImplant > 15 && s.intelligenceImplant >= 15 && canWalk(s) && canSee(s) && canHear(s) && canTalk(s) && s.broodmother < 2 && (s.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")),
(slave) => App.UI.DOM.passageLink(SlaveFullName(slave), 'Agent Workaround',
() => { V.i = V.slaves.findIndex((s) => s.ID === slave.ID); }),
s => App.Entity.facilities.arcologyAgent.manager.slaveHasExperience(s)
)>>
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