package kore;

public class Configuration {
    
    public final int agentTimeout;
    public final int startingKore;
    public final int size;
    public final int spawnCost;
    public final int convertCost;
    public final double regenRate;
    public final int maxRegenCellKore;
    public final int randomSeed;

    public Configuration(String rawConfiguration) {
        this.agentTimeout = KoreJson.getIntFromJson(rawConfiguration, "agentTimeout");
        this.startingKore = KoreJson.getIntFromJson(rawConfiguration, "startingKore");
        this.size = KoreJson.getIntFromJson(rawConfiguration, "size");
        this.spawnCost = KoreJson.getIntFromJson(rawConfiguration, "spawnCost");
        this.convertCost = KoreJson.getIntFromJson(rawConfiguration, "convertCost");
        this.regenRate = KoreJson.getDoubleFromJson(rawConfiguration, "regenRate");
        this.maxRegenCellKore = KoreJson.getIntFromJson(rawConfiguration, "maxRegenCellKore");
        this.randomSeed = KoreJson.getIntFromJson(rawConfiguration, "randomSeed");
    }
}
@@ -156,19 +156,22 @@
 c final 
-int
+double
  spawnCo
@@ -642,35 +642,38 @@
 t = KoreJson.get
-Int
+Double
 FromJson(rawConf
@@ -1051,8 +1051,9 @@
 %0A    %7D%0A%7D
+%0A

Fix java config to treat spawn cost as a double #186