Whenever a player joins a Nation, they do so with zero power. This isn't ideal, as it could potentially make the Nation vulnerable to falling below vulnerability thresholds since the Member count increases yet the Power stays the same.
Looking at the config and how it's set up, I assume this is because individual power isn't linked to a player but rather a property within the Nation data. Instead of untangling the two, which I assume would be a large amount of work, let's instead just set up the following:
1) When a player joins the nation for the first time, set their passive power to full (8).
2) When a player leaves, keep the variable hasJoinedBefore so that upon any rejoining of the Nation their power is set to zero.
This actually might accidentally have created a fix for another issue I was going to raise today (punishment for rejoining repeatedly), so that's convenient!
Whenever a player joins a Nation, they do so with zero power. This isn't ideal, as it could potentially make the Nation vulnerable to falling below vulnerability thresholds since the Member count increases yet the Power stays the same.
Looking at the config and how it's set up, I assume this is because individual power isn't linked to a player but rather a property within the Nation data. Instead of untangling the two, which I assume would be a large amount of work, let's instead just set up the following:
1) When a player joins the nation for the first time, set their passive power to full (8). 2) When a player leaves, keep the variable hasJoinedBefore so that upon any rejoining of the Nation their power is set to zero.
This actually might accidentally have created a fix for another issue I was going to raise today (punishment for rejoining repeatedly), so that's convenient!