上传竞技场npc cd代码
This commit is contained in:
parent
716d9585a4
commit
7413511ab5
@ -66,7 +66,7 @@ func (this *apiComp) PlotReward(session comm.IUserSession, req *pb.ArenaPlotRewa
|
|||||||
if len(npc.MonsterformatId) > int(info.Npc[req.Pid].Index+1) {
|
if len(npc.MonsterformatId) > int(info.Npc[req.Pid].Index+1) {
|
||||||
info.Npc[req.Pid].Index++
|
info.Npc[req.Pid].Index++
|
||||||
}
|
}
|
||||||
info.Npc[req.Pid].Cd = configure.Now().Add(time.Minute * time.Duration(npc.ReviveCd)).Unix()
|
info.Npc[req.Pid].Cd = configure.Now().Add(time.Hour * time.Duration(npc.ReviveCd)).Unix()
|
||||||
if err = this.module.modelArena.Change(info.Uid, map[string]interface{}{
|
if err = this.module.modelArena.Change(info.Uid, map[string]interface{}{
|
||||||
"npc": info.Npc,
|
"npc": info.Npc,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user