Gogs 4 mesiacov pred
rodič
commit
27cc00ac50

+ 6 - 0
bin/client_msg/common.proto

@@ -151,6 +151,12 @@ message ReqGameRound {
 message ReqBet {
   optional int32 betAmount = 1;
 }
+
+message ReqResult {
+  int32 roundSitPos = 1;
+  int32 result = 2;
+}
+
 message ReqRound {
     // 回合数
     int32 round = 1;

+ 3 - 0
src/server/game/teen/opt.go

@@ -54,6 +54,9 @@ func chaal(room *room.Room, sitPos int32, betAmount int32) {
 		UserId:      room.GetPlayerBySitPos(sitPos).GetUserId(),
 	})
 	checkRoomStatus(room)
+	game.Module.Skeleton.AfterFunc(time.Microsecond*500, func() {
+		sendRoomBet(room)
+	})
 }
 
 // 亮牌

+ 10 - 0
src/server/game/teen/round.go

@@ -24,6 +24,16 @@ func startDealCard(r *room.Room) {
 
 		players := r.GetPlayersBySitPos(dealer.SitPos)
 
+		// 让所有玩家进行下底
+		for _, player := range players {
+			delay := time.Duration(300 * time.Millisecond)
+			game.Module.Skeleton.AfterFunc(delay, func() {
+				chaal(r, player.SitPos, 100)
+			})
+		}
+
+		time.Sleep(time.Second * 2)
+
 		//每个玩家从第一张开始发,发完再给每个玩家发第二张牌,发完再给每个玩家发第三张牌,要有序有间隔的体现
 		for index := 0; index < 3; index++ {
 			for i, player := range players {