Archived
1

Possibilities grade check fixed

This commit is contained in:
Vladimir Hodakov 2017-10-13 03:07:45 +04:00
parent ef924d26c7
commit 25991e0839

View File

@ -107,7 +107,7 @@ func (t *Talkers) PokememeInfo(update tgbotapi.Update, player_raw dbmapping.Play
}
if calculate_possibilites {
if (pk.Grade < profile_raw.Level_id + 2) || (pk.Grade > profile_raw.Level_id - 3) {
if (pk.Grade < profile_raw.Level_id + 2) && (pk.Grade > profile_raw.Level_id - 3) {
message += "\nВероятность поимки:"
for i := range(pokememe.Locations) {
percentile, pokeballs := c.Getters.PossibilityRequiredPokeballs(pokememe.Locations[i].Id, pk.Grade, profile_raw.Level_id)