Archived
1

Latest game update reflections

Added ``pokememes_wealth`` in profiles, because we now can retrieve it
from profiles.
Removed ``pokememe_lvl`` from profile pokememes due to latest game
update, where level calculating become almost impossible (or hard enough
to throw it away).
Added ``pokememe_attack`` for profile pokememes, which will be used
instead of level.
This commit is contained in:
2017-10-22 13:13:20 +04:00
parent c99648b72a
commit 88c9853c77
9 changed files with 98 additions and 28 deletions

View File

@@ -17,6 +17,7 @@ type Profile struct {
LevelID int `db:"level_id"`
Pokeballs int `db:"pokeballs"`
Wealth int `db:"wealth"`
PokememesWealth int `db:"pokememes_wealth"`
Exp int `db:"exp"`
EggExp int `db:"egg_exp"`
Power int `db:"power"`

View File

@@ -13,7 +13,7 @@ type ProfilePokememe struct {
ID int `db:"id"`
ProfileID int `db:"profile_id"`
PokememeID int `db:"pokememe_id"`
PokememeLevel int `db:"pokememe_lvl"`
PokememeAttack int `db:"pokememe_attack"`
PokememeRarity string `db:"pokememe_rarity"`
CreatedAt time.Time `db:"created_at"`
}