Skip to content

Commit cc3db2c

Browse files
committed
*added punishment for losing planet
1 parent 188c774 commit cc3db2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

WarTech/WarTech/Helper.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ public static StarSystem EvaluateOwnerChange(FactionControl ownerControl, Planet
190190
if (newowner.percentage >= Fields.settings.PercentageForControl) {
191191
system = Helper.ChangeOwner(system, newowner, Sim, true, false);
192192
planetState.owner = newowner.faction;
193-
Fields.WarFatique[newowner.faction] = Mathf.Max(0, Fields.WarFatique[newowner.faction] - Fields.settings.FatiqueRecoveredPerPlanetCapture);
193+
Fields.WarFatique[newowner.faction] = Mathf.Max(0, Fields.WarFatique[newowner.faction] - Fields.settings.FatiquePerPlanetCapture);
194+
Fields.WarFatique[ownerControl.faction] = Mathf.Min(100, Fields.WarFatique[newowner.faction] + Fields.settings.FatiquePerPlanetCapture);
194195
}
195196
else {
196197
FactionControl localcontrol = planetState.factionList.FirstOrDefault(x => x.faction == Faction.Locals);

WarTech/WarTech/HolderClasses.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Settings {
1616
public float FatiquePerLostAttack = 0.5f;
1717
public float FatiqueLostPerMonth = 3f;
1818
public float FatiqueRecoveredPerDay = 0.5f;
19-
public float FatiqueRecoveredPerPlanetCapture = 3f;
19+
public float FatiquePerPlanetCapture = 3f;
2020
public string attackercolor = "#ee0000ff";
2121
public string defendercolor = "#00bb00ff";
2222
public string planetcolor = "#00ffffff";

0 commit comments

Comments
 (0)