This commit is contained in:
shoopea 2021-01-21 15:27:49 +01:00
parent 812c28e2cb
commit 0747167d4c

3
job.go
View File

@ -2230,12 +2230,15 @@ func jobBrewItem(j Job) {
m, err := getObjMsg(j.Trigger)
logOnError(err, "jobBrewItem : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
if err == nil {
fmt.Printf("jobBrewItem : Status 2, getting quantities\n")
rule, err := getMsgParsingRule(m)
logOnError(err, "jobBrewItem : getMsgParsingRule")
fmt.Printf("jobBrewItem : Status 2, msg_type_id : %d\n", rule.MsgTypeID64)
if rule.MsgTypeID64 == cacheObjSubType[`msg_alch_stock_ack`] {
_, err = parseSubTypeMessageAlchStockAck(m, rule.re)
logOnError(err, "jobBrewItem : parseSubTypeMessageAlchStockAck")
if err == nil {
fmt.Printf("jobBrewItem : Status 2, calculating mana/item\n")
// pre-fill maps with references and quantities
o, _ := getObjItem(p.ObjItemID64)
maxManaItems = p.ManaMax / o.Craft.Mana