Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class Generator_Settings
public float MaxPowerDraw = 500.00f;
public float MinPowerDraw = 50.00f;

public int MaxSiegeTime = 60; // this refers to max time spent you are able to be in siege mode.
public int MinSiegeTime = 10; // this refers to min time spent sieging in the cooldown formula, any time spent in siege below this number will count as this value for the cooldown formula. thus the minimum cooldown time is this number * 2.
public int MaxSiegeTime = 60;
public int MinSiegeTime = 15;
public int SiegePowerDraw = 900;
public float SiegeModeResistence = 0.9f;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ private void EndSiegeMode()

SiegeBlockEnabler(Block.CubeGrid.GetFatBlocks<IMyFunctionalBlock>(), true);

SiegeCooldownTime.Value = 2 * (SiegeElapsedTime.Value > Config.MinSiegeTime ? SiegeElapsedTime.Value : Config.MinSiegeTime);
SiegeCooldownTime.Value = Math.Max(SiegeElapsedTime.Value * 2, Config.MinSiegeTime);
SiegeElapsedTime.Value = 0;
SiegeCooldownActive.Value = true;
}
Expand Down