Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
01b746ee7f
@ -230,6 +230,14 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle
|
||||
}
|
||||
handles = append(handles, handle)
|
||||
this.registerVerifyHandle(v.Id, handle)
|
||||
case comm.Rtype111:
|
||||
handle := &rtaskCondHandle{
|
||||
condId: v.Id,
|
||||
verify: this.modelRtask.verifyRtype111,
|
||||
update: this.modelRtaskRecord.addUpdate,
|
||||
}
|
||||
handles = append(handles, handle)
|
||||
this.registerVerifyHandle(v.Id, handle)
|
||||
default:
|
||||
log.Warnf("rtaskType[%v] handle not register", tt)
|
||||
}
|
||||
|
@ -465,3 +465,21 @@ func (this *ModelRtask) verifyRtype43(uid string, cfg *cfg.GameRdtaskCondiData,
|
||||
ok = true
|
||||
return
|
||||
}
|
||||
|
||||
func (this *ModelRtask) verifyRtype111(uid string, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
|
||||
m, err := this.service.GetModule(comm.ModuleHero)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if ml, y := m.(comm.IHero); y {
|
||||
for _, hero := range ml.GetHeroList(uid) {
|
||||
if ok, err = soGreatEqual(hero.Lv, cfg.Data2); ok {
|
||||
count++
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
ok = true
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user