取消后手补偿
This commit is contained in:
@@ -126,14 +126,6 @@ namespace TcgEngine.Gameplay
|
||||
//Draw starting cards 开始抽卡
|
||||
int dcards = pdeck != null ? pdeck.start_cards : GameplayData.Get().cards_start;
|
||||
DrawCard(player, dcards);
|
||||
|
||||
//Add coin second player
|
||||
bool is_random = level == null || level.first_player == LevelFirst.Random;
|
||||
if (is_random && player.player_id != game_data.first_player && GameplayData.Get().second_bonus != null)
|
||||
{
|
||||
Card card = Card.Create(GameplayData.Get().second_bonus, VariantData.GetDefault(), player);
|
||||
player.cards_hand.Add(card);
|
||||
}
|
||||
}
|
||||
|
||||
//Start state
|
||||
@@ -1998,6 +1990,14 @@ namespace TcgEngine.Gameplay
|
||||
|
||||
game_data.first_player = f < l ? 0 : 1;
|
||||
game_data.current_player = game_data.first_player;
|
||||
|
||||
// 后手补偿(已取消)
|
||||
// int second_player_id = f < l ? 1 : 0; // 后手玩家ID
|
||||
// if (GameplayData.Get().second_bonus != null)
|
||||
// {
|
||||
// Card bonus_card = Card.Create(GameplayData.Get().second_bonus, VariantData.GetDefault(), game_data.players[second_player_id]);
|
||||
// game_data.players[second_player_id].cards_hand.Add(bonus_card);
|
||||
// }
|
||||
}
|
||||
|
||||
//-------------
|
||||
|
||||
Reference in New Issue
Block a user