mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-09-09 02:56:52 -05:00
Fix setup process, 0.5.6
- Fixed register step - Added default tutorial value to user table - Fixed table generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "POGOServer",
|
||||
"version": "0.5.5",
|
||||
"version": "0.5.6",
|
||||
"description": "",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user