diff --git a/.idea/.idea.TemporalTempestLight/.idea/vcs.xml b/.idea/.idea.TemporalTempestLight/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/.idea.TemporalTempestLight/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TemporalTempestLight.sln.DotSettings.user b/TemporalTempestLight.sln.DotSettings.user
index d57dd6a..6b84784 100644
--- a/TemporalTempestLight.sln.DotSettings.user
+++ b/TemporalTempestLight.sln.DotSettings.user
@@ -1,6 +1,8 @@
+ ForceIncluded
ForceIncluded
ForceIncluded
ForceIncluded
+ ForceIncluded
ForceIncluded
ForceIncluded
\ No newline at end of file
diff --git a/TemporalTempestLight/TemporalTempestLight/ModConfig.cs b/TemporalTempestLight/TemporalTempestLight/ModConfig.cs
index f9e10a8..db015fd 100644
--- a/TemporalTempestLight/TemporalTempestLight/ModConfig.cs
+++ b/TemporalTempestLight/TemporalTempestLight/ModConfig.cs
@@ -4,11 +4,11 @@ namespace TemporalTempestLight;
public class ModConfig
{
- public double InitialStormDuration = 0.2;
- public double StormDurationGrowthPerMonth = 0.0208;
- public double StormDurationLimit = 2;
+ public double InitialStormDuration = 6;
+ public double StormDurationGrowthPerYear = 12;
+ public double StormDurationLimit = 42;
public double InitialStormDurationReductionMul = 0.2;
- public double StormDurationReductionMulGrowthPerDay = 0.00139;
+ public double StormDurationReductionMulDecreasePerYear = 0.09;
public double StormDurationReductionMulLimit = 0.02;
}
\ No newline at end of file
diff --git a/TemporalTempestLight/TemporalTempestLight/Patches/TemporalStabilityPatches.cs b/TemporalTempestLight/TemporalTempestLight/Patches/TemporalStabilityPatches.cs
index c343b38..e19e376 100644
--- a/TemporalTempestLight/TemporalTempestLight/Patches/TemporalStabilityPatches.cs
+++ b/TemporalTempestLight/TemporalTempestLight/Patches/TemporalStabilityPatches.cs
@@ -31,7 +31,7 @@ internal class TemporalStabilityPatches
var stormActiveDays = system.StormData.stormActiveTotalDays - api.World.Calendar.TotalDays;
- ((IServerPlayer)(((EntityPlayer)(damageSource.GetCauseEntity())).Player)).SendMessage(GlobalConstants.GeneralChatGroup, (api.World.Calendar.TotalDays).ToString(), EnumChatType.Notification);
+ ((IServerPlayer)(((EntityPlayer)(damageSource.GetCauseEntity())).Player)).SendMessage(GlobalConstants.GeneralChatGroup, (stormActiveDays).ToString(), EnumChatType.Notification);
var stormActiveDaysReduction =
stormActiveDays * 0.2;
@@ -50,11 +50,13 @@ internal class TemporalStabilityPatches
if (stabilitySystem.StormData.nowStormActive)
{
if (tempest.IsStormInitialized) return;
+
+ var daysPerMoth = api.World.Config.GetAsInt("daysPerMonth");
stabilitySystem.StormData.stormActiveTotalDays = Math.Min(
TemporalTempestLightModSystem.Config.InitialStormDuration +
- TemporalTempestLightModSystem.Config.StormDurationGrowthPerMonth * (api.World.Calendar.TotalDays / 9),
- TemporalTempestLightModSystem.Config.StormDurationLimit) + api.World.Calendar.TotalDays;
+ TemporalTempestLightModSystem.Config.StormDurationGrowthPerYear * ((api.World.Calendar.TotalDays - 36) / daysPerMoth / 12),
+ TemporalTempestLightModSystem.Config.StormDurationLimit) / 24 + api.World.Calendar.TotalDays;
tempest.IsStormInitialized = true;
}