diff --git a/lib/users/parsers.go b/lib/users/parsers.go index 5e9c1e9..6310aa5 100644 --- a/lib/users/parsers.go +++ b/lib/users/parsers.go @@ -4,8 +4,8 @@ package users import ( - "github.com/go-telegram-bot-api/telegram-bot-api" "git.wtfteam.pro/fat0troll/i2_bot/lib/dbmapping" + "github.com/go-telegram-bot-api/telegram-bot-api" "regexp" "strconv" "strings" @@ -67,7 +67,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe crystallsInt := 0 weapon := "" pokememes := make(map[string]string) - powerInt := 1 + powerInt := 0 // Filling information // We don't know how many strings we got, so we iterating each other diff --git a/lib/users/responders.go b/lib/users/responders.go index d2f24a5..87dbf1f 100644 --- a/lib/users/responders.go +++ b/lib/users/responders.go @@ -135,7 +135,7 @@ func (u *Users) ProfileMessage(update *tgbotapi.Update, playerRaw *dbmapping.Pla message += "\n💲" + c.Statistics.GetPrintablePoints(profileRaw.Wealth) message += " |💎" + strconv.Itoa(profileRaw.Crystalls) message += " |⭕" + strconv.Itoa(profileRaw.Pokeballs) - message += "\n⚔Атака: 1 + " + c.Statistics.GetPrintablePoints(weapon.Power) + " + " + c.Statistics.GetPrintablePoints(attackPokememes) + "\n" + message += "\n⚔Атака: " + c.Statistics.GetPrintablePoints(weapon.Power) + " + " + c.Statistics.GetPrintablePoints(attackPokememes) + "\n" if profileRaw.WeaponID != 0 { message += "\n🔫Оружие: " + weapon.Name + " " + c.Statistics.GetPrintablePoints(weapon.Power) + "⚔"