Skip to content

Commit

Permalink
Hotfix: limit remnant str attack increase.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkapulis committed Dec 19, 2024
1 parent 5a5b33b commit bc807d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions Ship_Game/Commands/Goals/RemnantEngageEmpire.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ GoalStep GatherFleet()
GoalStep WaitForCompletion()
{
if (Fleet == null || Fleet.Ships.Count == 0)
{
Owner.IncreaseFleetStrEmpireMultiplier(TargetEmpire);
return GoalStep.GoalFailed; // fleet is dead
}

if (!IsPortalValidOrRerouted())
return Remnants.ReleaseFleet(Fleet, GoalStep.GoalFailed);

Expand All @@ -216,16 +214,11 @@ GoalStep WaitForCompletion()
RequestBombers(numBombers);

if (numBombers / 3 >= Fleet.Ships.Count - numBombers) // only bombers and some combat ships left
{
if (Fleet.TaskStep <= 7)
Owner.IncreaseFleetStrEmpireMultiplier(TargetEmpire);
return ReturnToClosestPortalAndReroute();
}

if (Fleet.TaskStep != 7 && TargetPlanet?.Owner == TargetEmpire) // Not cleared enemy at target planet yet
return GoalStep.TryAgain;

Owner.DecreaseFleetStrEmpireMultiplier(TargetEmpire);
if (!Remnants.TargetEmpireStillValid(TargetEmpire))
{
if (!Remnants.FindValidTarget(out Empire newVictim))
Expand Down
1 change: 0 additions & 1 deletion Ship_Game/Universe/SolarBodies/SolarSystemBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@ protected void UpdateDescription()
public void ChangeOwnerByInvasion(Empire newOwner, int planetLevel) // TODO: FB - this code needs refactor
{
Empire oldOwner = Owner;
newOwner.DecreaseFleetStrEmpireMultiplier(Owner);
var thisPlanet = (Planet)this;

thisPlanet.Construction.ClearQueue();
Expand Down

0 comments on commit bc807d6

Please sign in to comment.