We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac806a commit f8dcb39Copy full SHA for f8dcb39
1 file changed
ZkData/Ef/Galaxy.cs
@@ -94,9 +94,12 @@ public void ProcessProduction()
94
95
96
// planets generate metal
97
- foreach (var p in Planets.Where(x => x.Faction != null && x.Account != null))
+ foreach (var p in Planets.Where(x => x.Faction != null))
98
{
99
- p.Account.ProduceMetal(GlobalConst.PlanetMetalPerTurn);
+ if (p.Account != null)
100
+ p.Account.ProduceMetal(GlobalConst.PlanetMetalPerTurn);
101
+ else
102
+ p.Faction.Metal += GlobalConst.PlanetMetalPerTurn;
103
}
104
105
0 commit comments