This commit is contained in:
Kaan Soral
2025-03-27 16:16:17 +03:00
parent 7dbc37f0b7
commit 2199fb728b
3 changed files with 14 additions and 4 deletions
+11 -1
View File
@@ -5050,7 +5050,12 @@ function init_io() {
} else {
return fail_response("cant_enter");
}
} else if (data.place == "crypt" || data.place == "winter_instance" || data.place == "spider_instance") {
} else if (
data.place == "crypt" ||
data.place == "winter_instance" ||
data.place == "spider_instance" ||
data.place == "tomb"
) {
var f = "cave";
var ref = G.maps.cave.spawns[2];
var item = "cryptkey";
@@ -5064,6 +5069,11 @@ function init_io() {
ref = G.maps.gateway.spawns[3];
item = "spiderkey";
}
if (data.place == "tomb") {
f = "mansion";
ref = G.maps.mansion.spawns[1];
item = "tombkey";
}
if (simple_distance(player, { in: f, map: f, x: ref[0], y: ref[1] }) > 120) {
return fail_response("transport_cant_reach");
}