赛马房间谁都可以开始游戏

This commit is contained in:
milimoe 2025-08-08 20:51:56 +08:00
parent 5c619fea3e
commit 547a8b3457
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -120,6 +120,10 @@ namespace Oshima.FunGame.OshimaServers.Service
room.Roomid = Verification.CreateVerifyCode(VerifyCodeType.MixVerifyCode, 7);
}
msg = $"房间创建成功,房间号为:{room.Roomid}\r\n注意房间若在 {FunGameConstant.RoomExpireTime} 分钟后仍处于空闲状态,将自动解散。";
if (room.GameModule == "horseracing")
{
msg += "\r\n在赛马房间内的所有玩家无论是否是房主都可以开始游戏。";
}
room.RoomMaster = user;
room.CreateTime = DateTime.Now;
}
@ -357,7 +361,7 @@ namespace Oshima.FunGame.OshimaServers.Service
if (FunGameConstant.UsersInRoom.TryGetValue(user.Id, out Room? value) && value != null)
{
room = value;
if (room.RoomMaster.Id != user.Id)
if (room.GameModule != "horseracing" && room.RoomMaster.Id != user.Id)
{
msgs.Add("你不是房主,无法开始游戏。");
}