mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Add back .clevel check at compound
This commit is contained in:
+1
-1
@@ -5684,7 +5684,7 @@ function init_io() {
|
|||||||
if (!scroll) {
|
if (!scroll) {
|
||||||
return socket.emit("game_response", "compound_no_scroll");
|
return socket.emit("game_response", "compound_no_scroll");
|
||||||
}
|
}
|
||||||
if (!item0 || !item1 || !item2) {
|
if (!item0 || !item1 || !item2 || (item0.level || 0) != data.clevel) {
|
||||||
return fail_response("no_item");
|
return fail_response("no_item");
|
||||||
}
|
}
|
||||||
if (!player.computer && simple_distance(G.maps.main.compound, player) > B.sell_dist) {
|
if (!player.computer && simple_distance(G.maps.main.compound, player) > B.sell_dist) {
|
||||||
|
|||||||
Reference in New Issue
Block a user