Ебаное говно не залилось
This commit is contained in:
@@ -109,14 +109,14 @@ public sealed partial class AnomalySystem : SharedAnomalySystem
|
|||||||
if (!Resolve(anomaly, ref component, false))
|
if (!Resolve(anomaly, ref component, false))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
var multiplier = 1f;
|
var multiplier = 1.5f;
|
||||||
if (component.Stability > component.GrowthThreshold)
|
if (component.Stability > component.GrowthThreshold)
|
||||||
multiplier = component.GrowingPointMultiplier; //more points for unstable
|
multiplier = component.GrowingPointMultiplier; //more points for unstable
|
||||||
|
|
||||||
//penalty of up to 50% based on health
|
//penalty of up to 50% based on health
|
||||||
multiplier *= MathF.Pow(1.5f, component.Health) - 0.5f;
|
multiplier *= MathF.Pow(1.5f, component.Health) - 0.5f;
|
||||||
|
|
||||||
var severityValue = 1 / (1 + MathF.Pow(MathF.E, -7 * (component.Severity - 0.5f)));
|
var severityValue = 1.05 / (1.05 + MathF.Pow(MathF.E, -7 * (component.Severity - 1.5f)));
|
||||||
|
|
||||||
return (int) ((component.MaxPointsPerSecond - component.MinPointsPerSecond) * severityValue * multiplier) + component.MinPointsPerSecond;
|
return (int) ((component.MaxPointsPerSecond - component.MinPointsPerSecond) * severityValue * multiplier) + component.MinPointsPerSecond;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ public sealed partial class AnomalyGeneratorComponent : Component
|
|||||||
/// The cooldown between generating anomalies.
|
/// The cooldown between generating anomalies.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("cooldownLength"), ViewVariables(VVAccess.ReadWrite)]
|
[DataField("cooldownLength"), ViewVariables(VVAccess.ReadWrite)]
|
||||||
public TimeSpan CooldownLength = TimeSpan.FromMinutes(5);
|
public TimeSpan CooldownLength = TimeSpan.FromMinutes(2);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// How long it takes to generate an anomaly after pushing the button.
|
/// How long it takes to generate an anomaly after pushing the button.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("generationLength"), ViewVariables(VVAccess.ReadWrite)]
|
[DataField("generationLength"), ViewVariables(VVAccess.ReadWrite)]
|
||||||
public TimeSpan GenerationLength = TimeSpan.FromSeconds(8);
|
public TimeSpan GenerationLength = TimeSpan.FromSeconds(5);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The material needed to generate an anomaly
|
/// The material needed to generate an anomaly
|
||||||
@@ -43,7 +43,7 @@ public sealed partial class AnomalyGeneratorComponent : Component
|
|||||||
/// The amount of material needed to generate a single anomaly
|
/// The amount of material needed to generate a single anomaly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("materialPerAnomaly"), ViewVariables(VVAccess.ReadWrite)]
|
[DataField("materialPerAnomaly"), ViewVariables(VVAccess.ReadWrite)]
|
||||||
public int MaterialPerAnomaly = 1500; // a bit less than a stack of plasma
|
public int MaterialPerAnomaly = 1000; // a bit less than a stack of plasma
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The random anomaly spawner entity
|
/// The random anomaly spawner entity
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public sealed partial class AnomalyVesselComponent : Component
|
|||||||
/// A multiplier applied to the amount of points generated.
|
/// A multiplier applied to the amount of points generated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||||
public float PointMultiplier = 1;
|
public float PointMultiplier = 2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum time between each beep
|
/// The maximum time between each beep
|
||||||
|
|||||||
@@ -58,13 +58,13 @@ public sealed partial class ArtifactComponent : Component
|
|||||||
/// to determine the monetary value of the artifact
|
/// to determine the monetary value of the artifact
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("priceMultiplier"), ViewVariables(VVAccess.ReadWrite)]
|
[DataField("priceMultiplier"), ViewVariables(VVAccess.ReadWrite)]
|
||||||
public float PriceMultiplier = 0.05f;
|
public float PriceMultiplier = 1.05f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The base amount of research points for each artifact node.
|
/// The base amount of research points for each artifact node.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("pointsPerNode"), ViewVariables(VVAccess.ReadWrite)]
|
[DataField("pointsPerNode"), ViewVariables(VVAccess.ReadWrite)]
|
||||||
public int PointsPerNode = 6500;
|
public int PointsPerNode = 10000;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Research points which have been "consumed" from the theoretical max value of the artifact.
|
/// Research points which have been "consumed" from the theoretical max value of the artifact.
|
||||||
|
|||||||
@@ -178,14 +178,14 @@ public sealed partial class AnomalyComponent : Component
|
|||||||
/// The minimum amount of research points generated per second
|
/// The minimum amount of research points generated per second
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("minPointsPerSecond")]
|
[DataField("minPointsPerSecond")]
|
||||||
public int MinPointsPerSecond = 10;
|
public int MinPointsPerSecond = 65;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum amount of research points generated per second
|
/// The maximum amount of research points generated per second
|
||||||
/// This doesn't include the point bonus for being unstable.
|
/// This doesn't include the point bonus for being unstable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("maxPointsPerSecond")]
|
[DataField("maxPointsPerSecond")]
|
||||||
public int MaxPointsPerSecond = 80;
|
public int MaxPointsPerSecond = 150;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The multiplier applied to the point value for the
|
/// The multiplier applied to the point value for the
|
||||||
|
|||||||
Reference in New Issue
Block a user