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

dom passages consistent formatting

parent 04ce6bfb
No related branches found
No related tags found
1 merge request!8522Convert all possible passages to pure JS
......@@ -32,7 +32,8 @@ new App.DomPassage("SE pc birthday", () => App.Events.pcBirthday.runEvent());
/* ### Non Random Events ### */
new App.DomPassage("Murder Attempt", () => {
new App.DomPassage("Murder Attempt",
() => {
if (V.event === "slave trade") {
return App.Events.murderAttemptFollowup("slave", V.illegalDeals.slave.company, V.illegalDeals.slave.type);
} else if (V.event === "trade deal") {
......
......@@ -61,8 +61,10 @@ new App.DomPassage("Agent Select",
}, ["jump-from-safe"]
);
new App.DomPassage("Rules Assistant", () => {
const div = document.createElement("div");
App.RA.options(div);
return div;
}, ["jump-to-safe", "jump-from-safe"]);
new App.DomPassage("Rules Assistant",
() => {
const div = document.createElement("div");
App.RA.options(div);
return div;
}, ["jump-to-safe", "jump-from-safe"]
);
......@@ -27,8 +27,7 @@ new App.DomPassage("Description Options",
V.nextLink = V.storedLink;
return App.UI.descriptionOptions();
},
["jump-to-safe", "jump-from-safe"]
}, ["jump-to-safe", "jump-from-safe"]
);
new App.DomPassage("Summary Options",
......@@ -45,8 +44,7 @@ new App.DomPassage("Summary Options",
V.passageSwitchHandler = App.EventHandlers.optionsChanged;
return App.UI.summaryOptions();
},
["jump-to-safe", "jump-from-safe"]
}, ["jump-to-safe", "jump-from-safe"]
);
new App.DomPassage("Hotkey Settings",
......
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