diff --git a/lib/datacache/pokememes.go b/lib/datacache/pokememes.go index d0c1119..42b51dc 100644 --- a/lib/datacache/pokememes.go +++ b/lib/datacache/pokememes.go @@ -228,8 +228,8 @@ func (dc *DataCache) GetAllPokememes() map[int]*dbmapping.PokememeFull { var keys []string keysToIDs := make(map[string]int) for i := range dc.fullPokememes { - keys = append(keys, strconv.Itoa(dc.fullPokememes[i].Pokememe.Grade)+"_"+dc.fullPokememes[i].Pokememe.Name) - keysToIDs[strconv.Itoa(dc.fullPokememes[i].Pokememe.Grade)+"_"+dc.fullPokememes[i].Pokememe.Name] = i + keys = append(keys, strconv.Itoa(dc.fullPokememes[i].Pokememe.Grade)+"_"+strconv.Itoa(dc.fullPokememes[i].Pokememe.Attack+100000000000000)+"_"+dc.fullPokememes[i].Pokememe.Name) + keysToIDs[strconv.Itoa(dc.fullPokememes[i].Pokememe.Grade)+"_"+strconv.Itoa(dc.fullPokememes[i].Pokememe.Attack+100000000000000)+"_"+dc.fullPokememes[i].Pokememe.Name] = i } sort.Strings(keys)