public void ReadyRollVantage(int playerId, VantageKind vantage) { CreatureStats playerState = GetPlayerStats(playerId); playerState.ReadyToRollDice = true; if (playerState.DiceStack.Count == 0) { playerState.AddD20(); } playerState.Vantage = vantage; }
public void ToggleReadyRollD20(int playerId) { CreatureStats playerStats = GetPlayerStats(playerId); playerStats.DiceStack.Clear(); playerStats.AddD20(); if (playerStats.Vantage == VantageKind.Normal || !playerStats.ReadyToRollDice) { playerStats.ReadyToRollDice = !playerStats.ReadyToRollDice; } else { playerStats.Vantage = VantageKind.Normal; } }