mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Multiplayer code in place but not tested with server yet
This commit is contained in:
committed by
Eric Fredricksen
parent
d389d7d8df
commit
48cc250bff
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user