Multiplayer code in place but not tested with server yet

This commit is contained in:
Eric Fredricksen
2021-12-08 15:52:37 -08:00
committed by Eric Fredricksen
parent d389d7d8df
commit 48cc250bff
7 changed files with 115 additions and 6326 deletions
+11
View File
@@ -234,6 +234,10 @@ function SqlStorage() {
};
}
function UrlEncode(s) {
return encodeURIComponent(s).replace(/%20/g, "+");
}
var iPad = navigator.userAgent.match(/iPad/);
var iPod = navigator.userAgent.match(/iPod/);
var iPhone = navigator.userAgent.match(/iPhone/);
@@ -308,6 +312,13 @@ function LevelUpTime(level) { // seconds
}
let RevString = '&rev=6';
// Rev strings known to server, probably:
// rev=3 is the minimum allowed by server, probably pq6.1
// rev=4 is pq6.2 the longstanding delphi client
// rev=5 is pq6.3 presumably the lazarus port or other unofficial release
// rev=6 is this here, pq-web multiplayer enabled
var K = {};
K.Traits = ["Name", "Race", "Class", "Level"];