Ебаное говно не залилось

This commit is contained in:
Jabkas
2024-04-03 23:03:04 +03:00
parent 25f0863cb9
commit ec1adebfab
5 changed files with 10 additions and 10 deletions

View File

@@ -109,14 +109,14 @@ public sealed partial class AnomalySystem : SharedAnomalySystem
if (!Resolve(anomaly, ref component, false))
return 0;
var multiplier = 1f;
var multiplier = 1.5f;
if (component.Stability > component.GrowthThreshold)
multiplier = component.GrowingPointMultiplier; //more points for unstable
//penalty of up to 50% based on health
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;
}

View File

@@ -25,13 +25,13 @@ public sealed partial class AnomalyGeneratorComponent : Component
/// The cooldown between generating anomalies.
/// </summary>
[DataField("cooldownLength"), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan CooldownLength = TimeSpan.FromMinutes(5);
public TimeSpan CooldownLength = TimeSpan.FromMinutes(2);
/// <summary>
/// How long it takes to generate an anomaly after pushing the button.
/// </summary>
[DataField("generationLength"), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan GenerationLength = TimeSpan.FromSeconds(8);
public TimeSpan GenerationLength = TimeSpan.FromSeconds(5);
/// <summary>
/// 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
/// </summary>
[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>
/// The random anomaly spawner entity

View File

@@ -24,7 +24,7 @@ public sealed partial class AnomalyVesselComponent : Component
/// A multiplier applied to the amount of points generated.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float PointMultiplier = 1;
public float PointMultiplier = 2;
/// <summary>
/// The maximum time between each beep

View File

@@ -58,13 +58,13 @@ public sealed partial class ArtifactComponent : Component
/// to determine the monetary value of the artifact
/// </summary>
[DataField("priceMultiplier"), ViewVariables(VVAccess.ReadWrite)]
public float PriceMultiplier = 0.05f;
public float PriceMultiplier = 1.05f;
/// <summary>
/// The base amount of research points for each artifact node.
/// </summary>
[DataField("pointsPerNode"), ViewVariables(VVAccess.ReadWrite)]
public int PointsPerNode = 6500;
public int PointsPerNode = 10000;
/// <summary>
/// Research points which have been "consumed" from the theoretical max value of the artifact.

View File

@@ -178,14 +178,14 @@ public sealed partial class AnomalyComponent : Component
/// The minimum amount of research points generated per second
/// </summary>
[DataField("minPointsPerSecond")]
public int MinPointsPerSecond = 10;
public int MinPointsPerSecond = 65;
/// <summary>
/// The maximum amount of research points generated per second
/// This doesn't include the point bonus for being unstable.
/// </summary>
[DataField("maxPointsPerSecond")]
public int MaxPointsPerSecond = 80;
public int MaxPointsPerSecond = 150;
/// <summary>
/// The multiplier applied to the point value for the