Add guid to window.PLAYER and add constant MAX_RESO_PER_PLAYER

This commit is contained in:
Xelio
2013-03-03 22:42:51 +08:00
parent 4926b5450c
commit 5f94d56578
3 changed files with 13 additions and 0 deletions

View File

@ -159,6 +159,7 @@ window.setupMap = function() {
// included as inline script in the original site, the data is static
// and cannot be updated.
window.setupPlayerStat = function() {
PLAYER.guid = playerNameToGuid(PLAYER.nickname);
var level;
var ap = parseInt(PLAYER.ap);
for(level = 0; level < MIN_AP_FOR_LEVEL.length; level++) {