mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 06:01:26 -05:00
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:
@@ -1613,6 +1613,10 @@ function init_socket(args)
|
|||||||
ui_error("Item combination failed");
|
ui_error("Item combination failed");
|
||||||
if(!data.stale) resolve_deferred("compound",{success:false,level:data.level,num:data.num});
|
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")
|
else if(response=="compound_in_progress")
|
||||||
{
|
{
|
||||||
ui_log("Another combination in progress","gray");
|
ui_log("Another combination in progress","gray");
|
||||||
|
|||||||
Reference in New Issue
Block a user