I need a system that efficiently adjust income for players who control countries in risk and for players that lose countries.
So it would be something like this
Player X controls all command centers in a country
Create a spawning building for Player X
Add income based on number of command center to Player x total income
If Player X no longer owns all bases in the country the game will remove spawn building and remove the income bonus the player received for owning the whole country
Also when a player does take over a country it would be nice to have a message to all players saying Player x took Y country
So it would be something like this
Player X controls all command centers in a country
Create a spawning building for Player X
Add income based on number of command center to Player x total income
If Player X no longer owns all bases in the country the game will remove spawn building and remove the income bonus the player received for owning the whole country
Also when a player does take over a country it would be nice to have a message to all players saying Player x took Y country