From f321bfc3e6c434cbb0d000af09c0a960b5951b26 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 27 Jan 2020 12:15:42 +0800 Subject: [PATCH] test --- job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)