This commit is contained in:
shoopea 2020-01-05 14:37:32 +08:00
parent 8c3cae85f6
commit 98fd748b93

12
job.go
View File

@ -1278,17 +1278,17 @@ func jobGWithdraw(j Job) {
if id != 0 { if id != 0 {
obj, _ := getObjItem(id) obj, _ := getObjItem(id)
switch obj.ItemTypeID { switch obj.ItemTypeID {
case codeObjSubType[`item_res`]: case cacheObjSubTypefix[`item_res`]:
p.Status = p.Status | 1 p.Status = p.Status | 1
case codeObjSubType[`item_alch`]: case cacheObjSubType[`item_alch`]:
p.Status = p.Status | 2 p.Status = p.Status | 2
case codeObjSubType[`item_misc`]: case cacheObjSubType[`item_misc`]:
p.Status = p.Status | 4 p.Status = p.Status | 4
case codeObjSubType[`item_recipe`]: case cacheObjSubType[`item_recipe`]:
p.Status = p.Status | 8 p.Status = p.Status | 8
case codeObjSubType[`item_part`]: case cacheObjSubType[`item_part`]:
p.Status = p.Status | 16 p.Status = p.Status | 16
case codeObjSubType[`item_other`]: case cacheObjSubType[`item_other`]:
p.Status = p.Status | 32 p.Status = p.Status | 32
default: default:
log.Printf("jobGWithdraw : No handler for item type #%d.\n", obj.ItemTypeID) log.Printf("jobGWithdraw : No handler for item type #%d.\n", obj.ItemTypeID)