Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop

This commit is contained in:
sk 2024-10-25 13:50:38 +08:00
commit e20a82fba6
2 changed files with 44 additions and 12 deletions

View File

@ -1000,7 +1000,9 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
sceneEx.SendHandCardOdds() sceneEx.SendHandCardOdds()
} }
}*/ }*/
if len(sceneEx.testPokers) > 1 {
sceneEx.SendHandCardOdds()
} else {
if sceneEx.WGCreateScene.GetCloseCtrl() { if sceneEx.WGCreateScene.GetCloseCtrl() {
sceneEx.RandomCards() sceneEx.RandomCards()
} else { } else {
@ -1012,6 +1014,8 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
} }
} }
}
for _, seat := range sceneEx.seats { for _, seat := range sceneEx.seats {
if seat != nil { if seat != nil {
tmpCards := seat.cards[:] tmpCards := seat.cards[:]

View File

@ -25,6 +25,39 @@ var InviteLogMgrInstance = com.NewListMgr[*model.InviteInfo](
return ret, nil return ret, nil
}) })
var RobotInviteMgr = &RobotManager{}
type RobotManager struct {
}
func (this *RobotManager) InterestClockEvent() int {
return 1 << common.ClockEventDay
}
func (this *RobotManager) OnMonthTimer() {
}
func (this *RobotManager) ClockEventMax() {
return
}
func (this *RobotManager) OnSecTimer() {
}
func (this *RobotManager) OnMiniTimer() {
}
func (this *RobotManager) OnHourTimer() {
}
func (this *RobotManager) OnWeekTimer() {
}
func (this *RobotManager) OnShutdown() {
}
func (this *RobotManager) OnDayTimer() {
RobotRandon()
}
func RobotRandon() { func RobotRandon() {
//机器人随机 //机器人随机
robotNum := rand.Intn(21) + 10 robotNum := rand.Intn(21) + 10
@ -53,10 +86,5 @@ func RobotRandon() {
})).StartByFixExecutor("SaveRankInviteTask") })).StartByFixExecutor("SaveRankInviteTask")
} }
func init() { func init() {
common.RegisterClockFunc(&common.ClockFunc{ common.ClockMgrSingleton.RegisterSinker(RobotInviteMgr)
OnDayTimerFunc: func() {
RobotRandon()
logger.Logger.Trace("邀请积分排行榜0点机器人随机完成")
},
})
} }