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 {
|
if len(q.A) == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if len(Tr.A) == 0 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
Ids := GoUtil.IntSliceInterface(q.A)
|
Ids := GoUtil.IntSliceInterface(q.A)
|
||||||
for _, t := range Tr.A {
|
arg := GoUtil.IntSlice(Tr.A[0])
|
||||||
DressType := GoUtil.Int(t)
|
for _, t := range arg {
|
||||||
if GoUtil.InArray(DressType, Ids) {
|
if GoUtil.InArray(t, Ids) {
|
||||||
q.Num += 1
|
q.Num += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user