Changed craft times for all items,buildings, researches and added research that can change game stats/effects.
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user