Update server.js (Add 'compound_no_scroll' event to 'compound')

Adds a 'compound_no_scroll' failure event to the 'compound' socket callback, instead of erroring.
This commit is contained in:
FreezePhoenix
2023-11-06 09:29:33 -05:00
committed by GitHub
parent 0e9abb34e1
commit a71e7d9c1e
+3
View File
@@ -5692,6 +5692,9 @@ function init_io() {
if (offering && G.items[offering.name].type != "offering") {
return socket.emit("game_response", "compound_invalid_offering");
}
if (!scroll) {
return socket.emit("game_response", "compound_no_scroll");
}
if (!item0 || (item0.level || 0) != data.clevel) {
return fail_response("no_item");
}