Changed craft times for all items,buildings, researches and added research that can change game stats/effects.

This commit is contained in:
2026-05-09 13:27:01 +02:00
parent 9f32152fb8
commit 677d8595db
14 changed files with 828 additions and 477 deletions
@@ -0,0 +1,24 @@
using System.Text.Json.Serialization;
public class ResearchEffect
{
[JsonPropertyName("stat")]
public string Stat { get; set; }
[JsonPropertyName("value")]
public float Value { get; set; }
public string GetDisplayText()
{
return Stat switch
{
"robot_speed_bonus" => $"Robot speed +{Value * 100f:0}%",
"robot_energy_use_reduction" => $"Robot energy use -{Value * 100f:0}%",
"robot_heat_gain_reduction" => $"Robot heat gain -{Value * 100f:0}%",
"robot_cooling_bonus" => $"Robot cooling +{Value * 100f:0}%",
"robot_maintenance_loss_reduction" => $"Robot maintenance loss -{Value * 100f:0}%",
"robot_minimum_efficiency_bonus" => $"Damaged robot efficiency +{Value * 100f:0}%",
_ => Stat
};
}
}