Skip to content

Commit

Permalink
small notification change
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisRye committed May 2, 2024
1 parent db64903 commit c205630
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Assets/Scripts/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public Player(string name, Color color)
case 5: this.numberOfTroops = 25; break;
case 6: this.numberOfTroops = 20; break;
}

// this.numberOfTroops = 3; // for debugging


this.name = name;
this.color = color;
ownedCountries = new List<Country>();
Expand Down Expand Up @@ -92,12 +90,11 @@ public void ChangeNumberOfTroops(int difference)
/// </summary>
public void GetNewTroopsAndCards()
{
// if (color != new Color(0.95f, 0.3f, 0.3f, 1f)) return; // for debugging

this.numberOfTroops = Math.Max(this.ownedCountries.Count / 3, 3); // you need to receive at least 3 armies
if (gain_card)
{
GameObject.Find("CardNotification").GetComponent<Image>().enabled = true;
if (this is not AIPlayer) GameObject.Find("CardNotification").GetComponent<Image>().enabled = true;

int index = UnityEngine.Random.Range(0, GameController.ListOfCards.Count);
Card card = GameController.ListOfCards[index];
GameController.ListOfCards.RemoveAt(index);
Expand Down

0 comments on commit c205630

Please sign in to comment.