Merge branch 'meixiongfeng' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
e4a1df0700
@ -61,10 +61,7 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.PagodaGetListReq
|
|||||||
Type: season.Type,
|
Type: season.Type,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.RankList(session, &pb.PagodaRankListReq{
|
|
||||||
FloorId: 0,
|
|
||||||
Friend: false,
|
|
||||||
})
|
|
||||||
session.SendMsg(string(this.module.GetType()), PagodaGetListResp, &pb.PagodaGetListResp{Data: list})
|
session.SendMsg(string(this.module.GetType()), PagodaGetListResp, &pb.PagodaGetListResp{Data: list})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -90,6 +90,7 @@ func (this *Troll) TrollAI(session comm.IUserSession, troll *pb.DBTrollTrain, ai
|
|||||||
|
|
||||||
index := int32(index) % trainNum
|
index := int32(index) % trainNum
|
||||||
troll.RefreshTime += int64(sz[index])
|
troll.RefreshTime += int64(sz[index])
|
||||||
|
|
||||||
if now >= troll.RefreshTime {
|
if now >= troll.RefreshTime {
|
||||||
troll.RangeId = (troll.RangeId % maxCoefficient) + 1
|
troll.RangeId = (troll.RangeId % maxCoefficient) + 1
|
||||||
troll.TarinPos = (troll.TarinPos % trainNum) + 1
|
troll.TarinPos = (troll.TarinPos % trainNum) + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user