diff --git a/job.go b/job.go index 908b302..b56928f 100644 --- a/job.go +++ b/job.go @@ -1834,7 +1834,7 @@ func jobCraftItem(j Job) { logOnError(err, "jobCraftItem : getObjItem") if obj.Craft != nil { craftItems[code] = req - ava - totalMana = (req - ava) * obj.Craft.Mana + totalMana = totalMana + (req-ava)*obj.Craft.Mana for _, v := range obj.Craft.Items { req2, _ := requiredItems[v.Code] requiredItems[v.Code] = req2 + v.Quantity*(req-ava)