Added increase to robotcount when completing research, added value modifiers for robot types.

This commit is contained in:
2026-05-09 15:46:16 +02:00
parent 78d1014067
commit aee2ee7f3d
7 changed files with 135 additions and 20 deletions
+11
View File
@@ -3,6 +3,14 @@ using System.Collections.Generic;
public class RobotStats
{
public readonly Dictionary<string, RobotTypeStats> RobotTypes = new()
{
["stone_robot"] = new RobotTypeStats(0.75f, 0.60f, 0.80f, 0.80f, 1.40f, -0.10f),
["copper_robot"] = new RobotTypeStats(1.00f, 1.00f, 1.00f, 1.00f, 1.00f, 0.00f),
["tin_robot"] = new RobotTypeStats(1.00f, 1.00f, 1.00f, 1.00f, 1.00f, 0.00f),
["bronze_robot"] = new RobotTypeStats(1.15f, 1.10f, 0.90f, 1.10f, 0.80f, 0.05f),
["iron_robot"] = new RobotTypeStats(1.35f, 1.25f, 1.15f, 1.20f, 0.65f, 0.10f)
};
private const float BaseMinimumEfficiency = 0.35f;
private float speedBonus = 0f;
@@ -76,6 +84,9 @@ public class RobotStats
case "robot_minimum_efficiency_bonus":
minimumEfficiencyBonus += effect.Value;
break;
case "robot_count_increase":
GameData.maxRobotCount += (int)effect.Value;
break;
}
}
}