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

Adds a handler for the 'compound_no_scroll' to the client.
This commit is contained in:
FreezePhoenix
2023-11-06 09:31:05 -05:00
committed by GitHub
parent a71e7d9c1e
commit 4fa5bb9865
+5 -1
View File
@@ -1613,6 +1613,10 @@ function init_socket(args)
ui_error("Item combination failed");
if(!data.stale) resolve_deferred("compound",{success:false,level:data.level,num:data.num});
}
else if(response=="compound_no_scroll")
{
reject_deferred("compound",{reason:"no_scroll"});
}
else if(response=="compound_in_progress")
{
ui_log("Another combination in progress","gray");
@@ -6182,4 +6186,4 @@ function draw(arg1,manual_draw) {
catch(e){console.log(e);}
}
in_draw=false;
}
}