This commit is contained in:
shoopea 2020-01-27 13:27:44 +08:00
parent da5beef9a5
commit 067c8eceae

4
job.go
View File

@ -1869,12 +1869,12 @@ func jobCraftItem(j Job) {
ava, _ := availableItems[k]
out = fmt.Sprintf("%s<code> [%s] %s : %d (%d)</code>\n", out, obj.Code, obj.Names[0], v, ava)
}
out = fmt.Sprint("%s<pre> Missing :</pre>\n", out)
out = fmt.Sprintf("%s<pre> Missing :</pre>\n", out)
for k, v := range missingItems {
obj, _ := getObjItem(getObjItemID(k, ``))
out = fmt.Sprintf("%s<code> [%s] %s : %d</code>\n", out, obj.Code, obj.Names[0], v)
}
out = fmt.Sprint("%s<pre> To craft :</pre>\n", out)
out = fmt.Sprintf("%s<pre> To craft :</pre>\n", out)
for k, v := range craftItems {
obj, _ := getObjItem(getObjItemID(k, ``))
out = fmt.Sprintf("%s<code> [%s] %s : %d</code>\n", out, obj.Code, obj.Names[0], v)