Archived
1

New Year 2018 preparations

This commit is contained in:
2017-12-28 05:57:51 +04:00
parent bbb0b8afe1
commit 880810d90c
4 changed files with 78 additions and 2 deletions

View File

@@ -284,8 +284,8 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
return "fail"
}
for n_meme, attack := range pokememes {
memeAry := strings.Split(n_meme, "_")
for nMeme, attack := range pokememes {
memeAry := strings.Split(nMeme, "_")
meme := memeAry[1]
rarity := "common"
if strings.HasPrefix(meme, "🔸") {
@@ -304,6 +304,10 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
rarity = "super liber"
meme = strings.Replace(meme, "🔷", "", 1)
}
if strings.HasPrefix(meme, "❄️") {
rarity = "new year"
meme = strings.Replace(meme, "❄️", "", 1)
}
u.fillProfilePokememe(profileRaw.ID, meme, attack, rarity)
}