diff --git a/workers.go b/workers.go index 4cdc0c6..c2b1876 100644 --- a/workers.go +++ b/workers.go @@ -175,6 +175,42 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { rep.Points = int32(p) cwm.Report[r.ReplaceAllString(m.Text, "${Score1}")] = rep + rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score2}")] + p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points2}")) + logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points2 : "+r.ReplaceAllString(m.Text, "$(Points2)")) + rep.Points = int32(p) + cwm.Report[r.ReplaceAllString(m.Text, "${Score2}")] = rep + + rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score3}")] + p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points3}")) + logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points3 : "+r.ReplaceAllString(m.Text, "$(Points3)")) + rep.Points = int32(p) + cwm.Report[r.ReplaceAllString(m.Text, "${Score3}")] = rep + + rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score4}")] + p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points4}")) + logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points4 : "+r.ReplaceAllString(m.Text, "$(Points4)")) + rep.Points = int32(p) + cwm.Report[r.ReplaceAllString(m.Text, "${Score4}")] = rep + + rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score5}")] + p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points5}")) + logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points5 : "+r.ReplaceAllString(m.Text, "$(Points5)")) + rep.Points = int32(p) + cwm.Report[r.ReplaceAllString(m.Text, "${Score5}")] = rep + + rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score6}")] + p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points6}")) + logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points6 : "+r.ReplaceAllString(m.Text, "$(Points6)")) + rep.Points = int32(p) + cwm.Report[r.ReplaceAllString(m.Text, "${Score6}")] = rep + + rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score7}")] + p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points7}")) + logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points7 : "+r.ReplaceAllString(m.Text, "$(Points7)")) + rep.Points = int32(p) + cwm.Report[r.ReplaceAllString(m.Text, "${Score7}")] = rep + b, err := json.Marshal(cwm) /* if len(r.ReplaceAllString(m.Text, "${Loot1}")) < 6 || len(r.ReplaceAllString(m.Text, "${Loot1}")) > 11 {