This commit is contained in:
shoopea 2020-02-10 18:21:18 +08:00
parent a77e7f6bb6
commit 812bf50e14

5
job.go
View File

@ -2095,9 +2095,12 @@ func jobCraftAll(j Job) {
recipes, _ := totalRecipes[k]
parts, _ := totalParts[k]
if k == "a83" || k == "a84" {
log.Printf("jobCraftAll[%s] ratio : %d | parts : %d | recipes : %d\n", k, i, parts, recipes)
log.Printf("jobCraftAll[%s] DEBUG > ratio : %d | parts : %d | recipes : %d\n", k, i, parts, recipes)
}
if (recipes > 0 && parts > (i-1)) || (parts >= i) {
if k == "a83" || k == "a84" {
log.Printf("jobCraftAll[%s] STORE > ratio : %d | parts : %d | recipes : %d\n", k, i, parts, recipes)
}
completeItems[k] = float64(MinInt64(recipes*i, parts) / i)
maxItems = MaxInt64(maxItems, int64(completeItems[k]))
}