From c3b8a24dbe1ef36d8e095d52a882294e686ff914 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 28 Jun 2020 11:38:01 +0200 Subject: [PATCH] test --- msg.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/msg.go b/msg.go index 6bba7d4..760cc71 100644 --- a/msg.go +++ b/msg.go @@ -375,6 +375,20 @@ func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha Quantity: 1, Quality: l[2], } + switch l[2] { + case `ᵃ`: + item.Quality = `a` + case `ᵇ`: + item.Quality = `b` + case `ᶜ`: + item.Quality = `c` + case `ᵈ`: + item.Quality = `d` + case `ᵉ`: + item.Quality = `e` + default: + item.Quality = `` + } log.Printf("Item : %s - %s : %s\n", item.Code, item.Name, item.Quality) stock = append(stock, item) }