test
This commit is contained in:
parent
812c28e2cb
commit
0747167d4c
3
job.go
3
job.go
@ -2230,12 +2230,15 @@ func jobBrewItem(j Job) {
|
|||||||
m, err := getObjMsg(j.Trigger)
|
m, err := getObjMsg(j.Trigger)
|
||||||
logOnError(err, "jobBrewItem : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
|
logOnError(err, "jobBrewItem : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
fmt.Printf("jobBrewItem : Status 2, getting quantities\n")
|
||||||
rule, err := getMsgParsingRule(m)
|
rule, err := getMsgParsingRule(m)
|
||||||
logOnError(err, "jobBrewItem : getMsgParsingRule")
|
logOnError(err, "jobBrewItem : getMsgParsingRule")
|
||||||
|
fmt.Printf("jobBrewItem : Status 2, msg_type_id : %d\n", rule.MsgTypeID64)
|
||||||
if rule.MsgTypeID64 == cacheObjSubType[`msg_alch_stock_ack`] {
|
if rule.MsgTypeID64 == cacheObjSubType[`msg_alch_stock_ack`] {
|
||||||
_, err = parseSubTypeMessageAlchStockAck(m, rule.re)
|
_, err = parseSubTypeMessageAlchStockAck(m, rule.re)
|
||||||
logOnError(err, "jobBrewItem : parseSubTypeMessageAlchStockAck")
|
logOnError(err, "jobBrewItem : parseSubTypeMessageAlchStockAck")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
fmt.Printf("jobBrewItem : Status 2, calculating mana/item\n")
|
||||||
// pre-fill maps with references and quantities
|
// pre-fill maps with references and quantities
|
||||||
o, _ := getObjItem(p.ObjItemID64)
|
o, _ := getObjItem(p.ObjItemID64)
|
||||||
maxManaItems = p.ManaMax / o.Craft.Mana
|
maxManaItems = p.ManaMax / o.Craft.Mana
|
||||||
|
Loading…
Reference in New Issue
Block a user