Fix setup process, 0.5.6

- Fixed register step
- Added default tutorial value to user table
- Fixed table generation
This commit is contained in:
Felix
2016-09-07 20:14:10 +02:00
parent 946e41684c
commit adc27df811
6 changed files with 3 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "POGOServer",
"version": "0.5.5",
"version": "0.5.6",
"description": "",
"repository": {
"type": "git",

View File

@@ -3,7 +3,7 @@ cell_id varchar(64) NOT NULL,
latitude double NOT NULL DEFAULT '0',
longitude double NOT NULL DEFAULT '0',
encounters varchar(64) NOT NULL DEFAULT '{}',
interval int(11) NOT NULL DEFAULT '5',
update_interval int(11) NOT NULL DEFAULT '5',
min_spawn_expire int(11) NOT NULL DEFAULT '2',
max_spawn_expire int(11) NOT NULL DEFAULT '15',
PRIMARY KEY (id)

View File

@@ -14,5 +14,5 @@ send_push_notifications tinyint(1) NOT NULL,
candies varchar(64) NOT NULL DEFAULT '{}',
items varchar(64) NOT NULL DEFAULT '{}',
avatar varchar(9999) NOT NULL DEFAULT '{}',
tutorial varchar(64) NOT NULL DEFAULT '{}',
tutorial varchar(64) NOT NULL DEFAULT '{"0":1,"1":1,"3":1,"4":1,"7":1}',
PRIMARY KEY (id)

View File

@@ -38,14 +38,6 @@ export default class Cell extends MapObject {
}
get uPkmnId() {
return (this._uPkmnId);
}
set uPkmnId(value) {
if (this.uPkmnId < Number.MAX_SAFE_INTEGER) this._uPkmnId += value;
else this._uPkmnId = 0;
}
/**
* @param {Number} lat
* @param {Number} lng

View File

@@ -73,7 +73,6 @@ export default class SpawnPoint extends MapObject {
pokeball: "ITEM_POKE_BALL",
favorite: 0,
isWild: true,
uid: this.uPkmnId++,
cellId: this.cellId,
minExpire: this.minExpire,
maxExpire: this.maxExpire

View File

@@ -92,7 +92,6 @@ export function registerPlayer(player) {
return new Promise((resolve) => {
this.db.query(`INSERT INTO ${CFG.MYSQL_USERS_TABLE} SET email=? `, [player.email], (e, res) => {
if (e) return this.print(e, 31);
player.id = id;
resolve();
});
});