派遣额外要求
This commit is contained in:
parent
1ede1a934e
commit
a5ee8db5ed
@ -306,12 +306,15 @@ func (this *modelDispatch) validHeroCond(uid string, taskId int32, heroId string
|
|||||||
case 1: //校验英雄的基础条件
|
case 1: //校验英雄的基础条件
|
||||||
if hero.Lv >= v.Param {
|
if hero.Lv >= v.Param {
|
||||||
ok1 = true
|
ok1 = true
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, v := range gd.Taskreqex {
|
||||||
|
switch v.Key {
|
||||||
case 2: //校验英雄的额外要求
|
case 2: //校验英雄的额外要求
|
||||||
if hero.Star >= v.Param {
|
if hero.Star >= v.Param {
|
||||||
ok2 = true
|
ok2 = true
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user