Update functions.js to add toggle_merchant

This commit is contained in:
FreezePhoenix
2024-02-17 09:33:06 -05:00
committed by GitHub
parent 8920509c88
commit 2103f66304
+9
View File
@@ -2848,6 +2848,15 @@ function close_merchant()
return push_deferred("merchant");
}
function toggle_merchant(num) {
if(character.stand) {
socket.emit("merchant",{close:1});
} else {
socket.emit("merchant",{num:num});
}
return push_deferred("merchant");
}
function donate(gold)
{
if(gold===undefined)