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

View File

@ -991,18 +991,14 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
if rule.TestOpen { if rule.TestOpen {
sceneEx.SendHandCardTest() sceneEx.SendHandCardTest()
} else { } else {
if len(sceneEx.testPokers) > 1 { if len(sceneEx.testPokers) > 1 {
sceneEx.SendHandCardOdds() sceneEx.SendHandCardOdds()
} else { } else {
// 关闭调控发牌 if sceneEx.IsMatchScene() || sceneEx.IsCustom() {
if sceneEx.WGCreateScene.GetCloseCtrl() { sceneEx.SendHandCard_Match()
sceneEx.SendHandCard_Match(true)
} else { } else {
if sceneEx.IsMatchScene() || sceneEx.IsCustom() { sceneEx.SendHandCardOdds()
sceneEx.SendHandCard_Match(false)
} else {
sceneEx.SendHandCardOdds()
}
} }
} }
} }

View File

@ -236,8 +236,8 @@ enum PlayerPacketID {
PACKET_SCClawdollItemLog = 2845;// PACKET_SCClawdollItemLog = 2845;//
PACKET_CSDollConfig = 2846; // PACKET_CSDollConfig = 2846; //
PACKET_SCDollConfig = 2847; // PACKET_SCDollConfig = 2847; //
PACKET_CSPopUpWindowConfig = 2848; // PACKET_CSPopUpWindowConfig = 2848; //
PACKET_SCPopUpWindowConfig = 2849; // PACKET_SCPopUpWindowConfig = 2849; //
} }
// //
@ -1417,12 +1417,12 @@ message CSPopUpWindowConfig{
// //
//PACKET_SCPopUpWindowConfig //PACKET_SCPopUpWindowConfig
message SCPopUpWindowConfig{ message SCPopUpWindowConfig{
repeated PopUpWindowInfo Info = 1; repeated PopUpWindowInfo Info =1;
} }
message PopUpWindowInfo{ message PopUpWindowInfo{
int32 Id = 1; int32 Id = 1;
string Name = 2; string Name = 2;
string Key = 3; string Key = 3;
int32 OpenStatus = 4;//1- 0- int32 OpenStatus = 4;//1- 0-
int32 Weight = 5;// int32 Weight = 5;//
} }

File diff suppressed because it is too large Load Diff

View File

@ -205,7 +205,6 @@ message WGCreateScene {
MatchParam Match = 16; // MatchParam Match = 16; //
repeated int32 ChessRank = 26; // repeated int32 ChessRank = 26; //
repeated int64 Params = 27; // ,GameRule中定义, repeated int64 Params = 27; // ,GameRule中定义,
bool CloseCtrl = 28; //
} }
//PACKET_WG_DESTROYSCENE //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 int32 GroupId = 1; // ID
bool Status = 2; // bool Status = 2; //
server.DB_GameFree DbGameFree = 3; // excel导出结构 server.DB_GameFree DbGameFree = 3; // excel导出结构
bool CloseCtrl = 4; //
} }
// //
@ -993,13 +992,13 @@ message ClientUpgrade{
//etcd /game/PopUpWindowConfig //etcd /game/PopUpWindowConfig
message PopUpWindowConfig{ message PopUpWindowConfig{
string Platform = 1; // string Platform = 1; //
repeated PopUpWindowInfo Info = 2; repeated PopUpWindowInfo Info =2;
} }
message PopUpWindowInfo{ message PopUpWindowInfo{
int32 Id = 1; int32 Id = 1;
string Name = 2; string Name = 2;
string Key = 3; string Key = 3;
int32 OpenStatus = 4;//1- 2- int32 OpenStatus = 4;//1- 2-
int32 Weight = 5;// int32 Weight = 5;//
} }

View File

@ -163,7 +163,6 @@ func (this *GameSession) AddScene(args *AddSceneParam) {
Custom: args.S.CustomParam, Custom: args.S.CustomParam,
Match: args.S.MatchParam, Match: args.S.MatchParam,
Params: args.S.params, Params: args.S.params,
CloseCtrl: args.S.CloseCtrl,
} }
if args.S.CustomParam.GetRoomConfigId() != 0 { if args.S.CustomParam.GetRoomConfigId() != 0 {
cfg := PlatformMgrSingleton.GetConfig(args.S.platform.IdStr).RoomConfig[args.S.CustomParam.GetRoomConfigId()] 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 { func CompareGameFreeConfigChanged(oldCfg, newCfg *webapiproto.GameFree) bool {
if oldCfg.Status != newCfg.Status || if oldCfg.Status != newCfg.Status ||
oldCfg.GroupId != newCfg.GroupId || oldCfg.GroupId != newCfg.GroupId ||
oldCfg.GetCloseCtrl() != newCfg.GetCloseCtrl() ||
oldCfg.DbGameFree.GetBot() != newCfg.DbGameFree.GetBot() || oldCfg.DbGameFree.GetBot() != newCfg.DbGameFree.GetBot() ||
oldCfg.DbGameFree.GetBaseScore() != newCfg.DbGameFree.GetBaseScore() || oldCfg.DbGameFree.GetBaseScore() != newCfg.DbGameFree.GetBaseScore() ||
oldCfg.DbGameFree.GetLimitCoin() != newCfg.DbGameFree.GetLimitCoin() || oldCfg.DbGameFree.GetLimitCoin() != newCfg.DbGameFree.GetLimitCoin() ||

View File

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