quest playroom fix bug
This commit is contained in:
parent
1674ae161f
commit
60785c9909
@ -109,10 +109,13 @@ func TriggerQuestProgress(q *QuestProgress, Tr *Trigger) bool {
|
||||
if len(q.A) == 0 {
|
||||
return false
|
||||
}
|
||||
if len(Tr.A) == 0 {
|
||||
return false
|
||||
}
|
||||
Ids := GoUtil.IntSliceInterface(q.A)
|
||||
for _, t := range Tr.A {
|
||||
DressType := GoUtil.Int(t)
|
||||
if GoUtil.InArray(DressType, Ids) {
|
||||
arg := GoUtil.IntSlice(Tr.A[0])
|
||||
for _, t := range arg {
|
||||
if GoUtil.InArray(t, Ids) {
|
||||
q.Num += 1
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user