test g_deposit_all

This commit is contained in:
shoopea 2019-08-23 18:24:58 +08:00
parent 69b3a69543
commit 79cd2dc1da

7
job.go
View File

@ -718,7 +718,6 @@ func jobGDeposit(j Job) {
obj, err := getObjItem(p.ResObjID64[0])
logOnError(err, "jobGDeposit : getObjItem")
if err == nil {
switch obj.ItemTypeID {
case objSubTypeItemResource:
res = true
@ -738,24 +737,30 @@ func jobGDeposit(j Job) {
}
}
}
log.Printf("jobGDeposit : Sending messages.\n")
var delay int64 = 0
if res {
log.Printf("jobGDeposit : Sending res.\n")
clientSendCWMsgDelay(p.ChatID64, `📦Resources`, delay)
delay = delay + 2
}
if alch {
log.Printf("jobGDeposit : Sending alch.\n")
clientSendCWMsgDelay(p.ChatID64, `Alchemy`, delay)
delay = delay + 2
}
if misc {
log.Printf("jobGDeposit : Sending misc.\n")
clientSendCWMsgDelay(p.ChatID64, `🗃Misc`, delay)
delay = delay + 2
}
if craft {
log.Printf("jobGDeposit : Sending craft.\n")
clientSendCWMsgDelay(p.ChatID64, `⚒Crafting`, delay)
delay = delay + 2
}
if equip {
log.Printf("jobGDeposit : Sending equip.\n")
clientSendCWMsgDelay(p.ChatID64, `🏷Equipment`, delay)
delay = delay + 2
}