This commit is contained in:
shoopea 2020-06-28 11:32:27 +02:00
parent 391eaa8394
commit 739b00be0d

4
msg.go
View File

@ -356,7 +356,9 @@ func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
Name: l[2],
ItemID64: i,
Quantity: q,
Quality: rq.ReplaceAllString(l[1], "${Quality}"),
}
if rq.MatchString(l[1]) {
item.Quality = rq.ReplaceAllString(l[1], "${Quality}")
}
log.Printf("Item : %s - %s : %s\n", item.Code, item.Name, item.Quality)
stock = append(stock, item)