This commit is contained in:
shoopea 2020-01-27 12:43:29 +08:00
parent dcccf21169
commit 33a957b4ce

5
job.go
View File

@ -1810,11 +1810,12 @@ func jobCraftItem(j Job) {
requiredItems = make(map[string]int64)
missingItems = make(map[string]int64)
craftItems = make(map[string]int64)
totalMana = item.Craft.Mana
totalMana = item.Craft.Mana * p.Quantity
for _, v := range item.Craft.Items {
log.Printf("jobCraftItem[%s] : %s - %d\n", item.Code, v.Code, v.Quantity)
requiredItems[v.Code] = v.Quantity
requiredItems[v.Code] = v.Quantity * p.Quantity
missingItems[v.Code] = 0
craftItems[v.Code] = 0
}