Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
调整输光的下限
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyl18 committed May 8, 2018
1 parent a7b8e2a commit 827d379
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CardSharp/GameSteps/WaitingParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void Parse(Desk desk, Player player, string command)
var point = PlayerConfig.GetConfig(player).Point;
if (point <= -100000)
desk.AddMessage($"CNM 这里是CY 你们的印钞厂停业了.");
else if (point <= 0)
else if (point <= -2000)
desk.AddMessage("您输光了/您没输入过‘获取积分’.");
else
desk.AddPlayer(player);
Expand Down Expand Up @@ -54,15 +54,17 @@ public void Parse(Desk desk, Player player, string command)
if (desk.PlayerList.Count == 3)
desk.Start(seed);
}
if (command.StartsWith("表演开屎") && PlayerConfig.GetConfig(player).IsAdmin){
if (desk.Players.Any()){
if (command.StartsWith("表演开屎") && PlayerConfig.GetConfig(player).IsAdmin)
{
if (desk.Players.Any())
{
desk.AddMessage("有玩家了不可以使用.");
return;
}

for(int i = 0; i < 3; i++) desk.AddPlayer(new FakePlayer(desk));
for (int i = 0; i < 3; i++) desk.AddPlayer(new FakePlayer(desk));
desk.Start();
}
}
}
}
}

0 comments on commit 827d379

Please sign in to comment.