Compare commits

..

No commits in common. "4947685627bb30f31a575b42af273fdccade9d94" and "8ee0093ccfba4d884b625ed564f46c9acbfa88ab" have entirely different histories.

10 changed files with 2342 additions and 2381 deletions

View File

@ -409,9 +409,6 @@ func (this *TienLenSceneData) BroadcastOpPos() {
if B < 0 {
isWin = false
}
if this.WGCreateScene.GetCloseCtrl() {
isWin = true
}
isTienLenYule := this.IsTienLenYule()
pack := &tienlen.SCTienLenAIData{
BombNum: 0, //炸弹数量
@ -557,12 +554,10 @@ func (this *TienLenSceneData) GetFreeGameSceneType() int32 {
return this.GetSceneType()
}
// SendHandCard_Match 发牌
// 比赛场发牌
// 纯真人,随机发牌
// 有机器人和真人,真人拿好牌
// mustRandom 必须随机发牌
func (this *TienLenSceneData) SendHandCard_Match(mustRandom bool) {
func (this *TienLenSceneData) SendHandCard_Match() {
this.poker.Shuffle()
buf := this.poker.GetPokerBuf()
cardss := map[int][]int32{}
@ -584,7 +579,7 @@ func (this *TienLenSceneData) SendHandCard_Match(mustRandom bool) {
}
}
}
if !mustRandom && len(realPlayers) > 0 && len(robotPlayers) > 0 {
if len(realPlayers) > 0 && len(robotPlayers) > 0 {
type gradeInfo struct {
id int
grade int

View File

@ -991,21 +991,17 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
if rule.TestOpen {
sceneEx.SendHandCardTest()
} else {
if len(sceneEx.testPokers) > 1 {
sceneEx.SendHandCardOdds()
} else {
// 关闭调控发牌
if sceneEx.WGCreateScene.GetCloseCtrl() {
sceneEx.SendHandCard_Match(true)
} else {
if sceneEx.IsMatchScene() || sceneEx.IsCustom() {
sceneEx.SendHandCard_Match(false)
sceneEx.SendHandCard_Match()
} else {
sceneEx.SendHandCardOdds()
}
}
}
}
for _, seat := range sceneEx.seats {
if seat != nil {

View File

@ -1417,7 +1417,7 @@ message CSPopUpWindowConfig{
//
//PACKET_SCPopUpWindowConfig
message SCPopUpWindowConfig{
repeated PopUpWindowInfo Info = 1;
repeated PopUpWindowInfo Info =1;
}
message PopUpWindowInfo{
int32 Id = 1;

File diff suppressed because it is too large Load Diff

View File

@ -205,7 +205,6 @@ message WGCreateScene {
MatchParam Match = 16; //
repeated int32 ChessRank = 26; //
repeated int64 Params = 27; // ,GameRule中定义,
bool CloseCtrl = 28; //
}
//PACKET_WG_DESTROYSCENE

File diff suppressed because it is too large Load Diff

View File

@ -109,7 +109,6 @@ message GameFree {
int32 GroupId = 1; // ID
bool Status = 2; //
server.DB_GameFree DbGameFree = 3; // excel导出结构
bool CloseCtrl = 4; //
}
//
@ -994,7 +993,7 @@ message ClientUpgrade{
//etcd /game/PopUpWindowConfig
message PopUpWindowConfig{
string Platform = 1; //
repeated PopUpWindowInfo Info = 2;
repeated PopUpWindowInfo Info =2;
}
message PopUpWindowInfo{
int32 Id = 1;

View File

@ -163,7 +163,6 @@ func (this *GameSession) AddScene(args *AddSceneParam) {
Custom: args.S.CustomParam,
Match: args.S.MatchParam,
Params: args.S.params,
CloseCtrl: args.S.CloseCtrl,
}
if args.S.CustomParam.GetRoomConfigId() != 0 {
cfg := PlatformMgrSingleton.GetConfig(args.S.platform.IdStr).RoomConfig[args.S.CustomParam.GetRoomConfigId()]

View File

@ -127,7 +127,6 @@ func (cfg *GameList) GetGameConfig(gameFreeId int32) *webapiproto.GameFree {
func CompareGameFreeConfigChanged(oldCfg, newCfg *webapiproto.GameFree) bool {
if oldCfg.Status != newCfg.Status ||
oldCfg.GroupId != newCfg.GroupId ||
oldCfg.GetCloseCtrl() != newCfg.GetCloseCtrl() ||
oldCfg.DbGameFree.GetBot() != newCfg.DbGameFree.GetBot() ||
oldCfg.DbGameFree.GetBaseScore() != newCfg.DbGameFree.GetBaseScore() ||
oldCfg.DbGameFree.GetLimitCoin() != newCfg.DbGameFree.GetLimitCoin() ||

View File

@ -65,8 +65,6 @@ type Scene struct {
*serverproto.CustomParam // 房卡场参数
*serverproto.MatchParam // 比赛场参数
*webapiproto.RoomConfigSystem // 系统竞技馆房间
CloseCtrl bool // 调控开关
csp *CoinScenePool // 所在场景池
hp *HundredSceneMgr // 百人场房间池
}
@ -148,10 +146,6 @@ func NewScene(args *CreateSceneParam) *Scene {
if s.RoomConfigSystem == nil {
s.RoomConfigSystem = new(webapiproto.RoomConfigSystem)
}
gf := PlatformMgrSingleton.GetGameFree(args.Platform.IdStr, args.GameFreeId)
if gf != nil {
s.CloseCtrl = gf.GetCloseCtrl()
}
return s
}