fix craft all for 1 piece missing
This commit is contained in:
parent
812bf50e14
commit
2abb957a55
8
job.go
8
job.go
@ -2094,13 +2094,7 @@ func jobCraftAll(j Job) {
|
||||
for k, i := range ratioItems {
|
||||
recipes, _ := totalRecipes[k]
|
||||
parts, _ := totalParts[k]
|
||||
if k == "a83" || k == "a84" {
|
||||
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)
|
||||
}
|
||||
if (recipes > 0 && parts >= (i-1)) || (parts >= i) {
|
||||
completeItems[k] = float64(MinInt64(recipes*i, parts) / i)
|
||||
maxItems = MaxInt64(maxItems, int64(completeItems[k]))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user