Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions assets/data/maps/jungle/dng/tree-expo-space.json.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"type": "ENTER",
"index": ["entities"]
},
{
"type": "ADD_ARRAY_ELEMENT",
"content": {
"type": "EventTrigger",
"x": 0,
"y": 0,
"level": 3,
"settings": {
"name": "Goal",
"eventType": "PARALLEL",
"triggerType": "ONCE_PER_ENTRY",
"startCondition": "true",
"endCondition": "false",
"event": [
{
"type": "MW_GOAL_COMPLETED",
"goal": "monkey"
}
]
}
}
}
]
25 changes: 16 additions & 9 deletions data/in/regions.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@
],
"exclude": [ "1" ],
"start": "2",
"goal": "32"
"goals": {
"creator": {
"region": "32"
}
}
},
"open": {
"connections": [
Expand Down Expand Up @@ -611,22 +615,25 @@
"condition": [
["var", "vwPassage"]
]
},
{
"from": "open16.1",
"to": "open19",
}
],
"exclude": [ "open1" ],
"start": "open2",
"goals": {
"creator": {
"region": "open16.1",
"condition": [
[ "item", "Heat", 1 ],
[ "item", "Cold", 1 ],
[ "item", "Shock", 1 ],
[ "item", "Wave", 1 ],
[ "var", "vtShadeLock" ]
]
},
"monkey": {
"region": "open15.3"
}
],
"exclude": [ "open1" ],
"start": "open2",
"goal": "open19"
}
}
}
}
10 changes: 6 additions & 4 deletions src/patches/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ export function patch(plugin: MwRandomizer) {

ig.EVENT_STEP.MW_GOAL_COMPLETED = ig.EventStepBase.extend({
init(settings) {
// In the future, goal will only update client status if it checks off
// a specific goal specified by their yaml. For now, there's only one
// goal.
this.goal = settings.goal;
},
start() {
sc.multiworld.client.goal();
if (
sc.multiworld.options.goal === undefined && this.goal === "creator" ||
sc.multiworld.options.goal === this.goal
) {
sc.multiworld.client.goal();
}
}
});
}
2 changes: 2 additions & 0 deletions src/types/multiworld-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ declare global {
}

export type MultiworldOptions = {
goal: string,
vtShadeLock: boolean | number,
meteorPassage: boolean,
closedGaia: number,
vtSkip: boolean,
keyrings: number[],
questRando: boolean,
Expand Down