aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2019-03-19 16:46:06 +0100
committerstonedDiscord <stoned@derpymail.org>2019-03-19 16:46:06 +0100
commit93a4462c3c2f333f9bc54296847d628d6d46bdb1 (patch)
tree12dcf631c71a66608a4030411c6d76f61f1d587c /webAO/client.js
parent16878ca81abd27e92c1650282f560b8d6d393bcc (diff)
update all this npm shit
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 84bd9bd..d6d388e 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -14,7 +14,7 @@ location.search.substr(1).split("&").forEach(function(item) {
const serverIP = queryDict.ip;
let mode = queryDict.mode;
-const AO_HOST = queryDict.asset || "http://assets.aceattorneyonline.com/base/";
+const AO_HOST = queryDict.asset || "http://s3.wasabisys.com/webao/base/";
const MUSIC_HOST = AO_HOST + "sounds/music/";
const BAR_WIDTH = 90;
const BAR_HEIGHT = 20;
@@ -61,6 +61,7 @@ class Client {
"EI": (args) => this.handleEI(args),
"EM": (args) => this.handleEM(args),
"SM": (args) => this.handleSM(args),
+ "BD": (args) => this.handleBD(args),
"music": (args) => this.handlemusic(args),
"DONE": (args) => this.handleDONE(args),
"BN": (args) => this.handleBN(args),
@@ -413,6 +414,14 @@ class Client {
this.serv.send("RD#%");
}
+/**
+ * Handles the banned packet
+ * @param {Array} args packet arguments
+ */
+ handleBD(args) {
+ document.getElementById("client_loadingtext").innerHTML = "Banned: " + args[1];
+ }
+
/**
* Handles incoming music information, containing all entries
* in the same packet.