Update game.js to add events for Scrollsmith and NPC right click support

This commit is contained in:
FreezePhoenix
2024-03-03 16:29:16 -05:00
committed by GitHub
parent 23abfd1a70
commit 36479485c4
+13
View File
@@ -2194,6 +2194,15 @@ function init_socket(args)
} }
else if(response=="magiport_failed") ui_log("Magiport failed","gray"),no_no_no(2); else if(response=="magiport_failed") ui_log("Magiport failed","gray"),no_no_no(2);
else if(response=="revive_failed") ui_log("Revival failed","gray"),no_no_no(1); else if(response=="revive_failed") ui_log("Revival failed","gray"),no_no_no(1);
else if(response=="scrollsmith_cant")
{
ui_log("Can't destat this item","gray")
}
else if(response=="scrollsmith_success")
{
ui_log("Spent " + data.gold.toLocaleString() + " gold","gray");
ui_log("De-statted the item","gray");
}
else if(response=="locksmith_cant") else if(response=="locksmith_cant")
{ {
ui_log("Can't lock/unlock this item","gray") ui_log("Can't lock/unlock this item","gray")
@@ -3257,6 +3266,10 @@ function npc_right_click(event){
{ {
render_interaction({auto:true,dialog:"locksmith",skin:"asoldier"}); render_interaction({auto:true,dialog:"locksmith",skin:"asoldier"});
} }
if(this.role=="scrollsmith")
{
render_interaction({auto:true,dialog:"scrollsmith",skin:"bsoldier"});
}
if(this.role=="compound") if(this.role=="compound")
{ {
render_compound_shrine(1); render_compound_shrine(1);