This commit is contained in:
shoopea 2021-01-21 16:26:23 +01:00
parent d7eb7007c6
commit 9b4c646b5d

2
job.go
View File

@ -2241,6 +2241,8 @@ func jobBrewItem(j Job) {
fmt.Printf("jobBrewItem : Status 2, calculating mana/item\n") 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)
fmt.Printf("p.ManaMax : %d\n", p.ManaMax)
fmt.Printf("o.Craft.Mana : %d\n", o.Craft.Mana)
maxManaItems = p.ManaMax / o.Craft.Mana maxManaItems = p.ManaMax / o.Craft.Mana
if p.ManaNow < p.ManaMax { if p.ManaNow < p.ManaMax {
t := (p.ManaMax - p.ManaNow) / ((p.ManaMax / 250) + 1) t := (p.ManaMax - p.ManaNow) / ((p.ManaMax / 250) + 1)