mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-07-06 20:23:54 -05:00
Fix retrieving/saving Pokémon
This commit is contained in:
parent
5caf7c0752
commit
92b07bc634
|
|
@ -96,6 +96,9 @@ export default class Pokemon extends MapObject {
|
|||
else if (key === "id") {
|
||||
this.uid = parseInt(obj[key]);
|
||||
}
|
||||
else if (key == "pokemon_id") {
|
||||
this.dexNumber = parseInt(obj[key]);
|
||||
}
|
||||
else if (key === "move_1") {
|
||||
this.move1 = obj[key];
|
||||
}
|
||||
|
|
@ -215,7 +218,7 @@ export default class Pokemon extends MapObject {
|
|||
let query = `
|
||||
INSERT INTO ${CFG.MYSQL_OWNED_PKMN_TABLE} SET
|
||||
owner_id=?,
|
||||
dex_number=?,
|
||||
pokemon_id=?,
|
||||
cp=?,
|
||||
stamina=?,
|
||||
stamina_max=?,
|
||||
|
|
@ -295,4 +298,4 @@ export default class Pokemon extends MapObject {
|
|||
}
|
||||
|
||||
inherit(Pokemon, _calc);
|
||||
inherit(Pokemon, _actions);
|
||||
inherit(Pokemon, _actions);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user