Removed trailing 1 from profiles attack
This commit is contained in:
parent
7780fb4f00
commit
c5d8590b87
@ -4,8 +4,8 @@
|
|||||||
package users
|
package users
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-telegram-bot-api/telegram-bot-api"
|
|
||||||
"git.wtfteam.pro/fat0troll/i2_bot/lib/dbmapping"
|
"git.wtfteam.pro/fat0troll/i2_bot/lib/dbmapping"
|
||||||
|
"github.com/go-telegram-bot-api/telegram-bot-api"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -67,7 +67,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
|
|||||||
crystallsInt := 0
|
crystallsInt := 0
|
||||||
weapon := ""
|
weapon := ""
|
||||||
pokememes := make(map[string]string)
|
pokememes := make(map[string]string)
|
||||||
powerInt := 1
|
powerInt := 0
|
||||||
|
|
||||||
// Filling information
|
// Filling information
|
||||||
// We don't know how many strings we got, so we iterating each other
|
// We don't know how many strings we got, so we iterating each other
|
||||||
|
@ -135,7 +135,7 @@ func (u *Users) ProfileMessage(update *tgbotapi.Update, playerRaw *dbmapping.Pla
|
|||||||
message += "\n💲" + c.Statistics.GetPrintablePoints(profileRaw.Wealth)
|
message += "\n💲" + c.Statistics.GetPrintablePoints(profileRaw.Wealth)
|
||||||
message += " |💎" + strconv.Itoa(profileRaw.Crystalls)
|
message += " |💎" + strconv.Itoa(profileRaw.Crystalls)
|
||||||
message += " |⭕" + strconv.Itoa(profileRaw.Pokeballs)
|
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 {
|
if profileRaw.WeaponID != 0 {
|
||||||
message += "\n🔫Оружие: " + weapon.Name + " " + c.Statistics.GetPrintablePoints(weapon.Power) + "⚔"
|
message += "\n🔫Оружие: " + weapon.Name + " " + c.Statistics.GetPrintablePoints(weapon.Power) + "⚔"
|
||||||
|
Reference in New Issue
Block a user