Skip to content

Commit

Permalink
configure enter('crypt') instead of hardcoding it
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsndk committed Apr 25, 2024
1 parent 23b4fe4 commit 2b644b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions design/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@
[-1.54,105.6,126.56,56.96,"cave",2,0],
],
"instance":True,
"enter": {
# requirements to enter the dungeon
# TODO level, class,
"items": [["cryptkey", 1]], #requires 1 cryptkey to enter

# [mapKey, locationType, locationIndex, range]
"locations": [
# ["cave", "spawns", 2, 120], # spawn in front of door
["cave", "doors", 2, 120] # door at crypt castle
]
}
},
"goobrawl":{
"key":"jayson_GooIsland",
Expand Down
2 changes: 1 addition & 1 deletion node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5020,7 +5020,7 @@ function init_io() {
} else {
return fail_response("cant_enter");
}
} else if (data.place == "crypt" || data.place == "winter_instance") {
} else if (data.place == "winter_instance") {
var f = "cave";
var ref = G.maps.cave.spawns[2];
var item = "cryptkey";
Expand Down

0 comments on commit 2b644b6

Please sign in to comment.