Add FollowersPerSecond modifications to various unlocks; adjust values for game progression

This commit is contained in:
2025-08-23 22:59:22 +02:00
parent e7247ee715
commit 7e8ccb061a
7 changed files with 23 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
"type": "ModifyStat",
"targetStat": "FollowersPerSecond",
"op": "Add",
"value": 0.1
"value": 0.1
},
{
"type": "DestroySelf"

View File

@@ -19,6 +19,12 @@
"unlock_space_age"
]
},
{
"type": "ModifyStat",
"targetStat": "FollowersPerSecond",
"op": "Add",
"value": 0.75
},
{ "type": "DestroySelf" }
],
"advancesToAge": "The Industrial Age"

View File

@@ -18,6 +18,12 @@
"unlock_age_of_industry"
]
},
{
"type": "ModifyStat",
"targetStat": "FollowersPerSecond",
"op": "Add",
"value": 0.5
},
{ "type": "DestroySelf" }
],
"advancesToAge": "The Settlement Age"

View File

@@ -7,7 +7,13 @@
"effects": [
{
"type": "UnlockMiracle",
"miraclesToUnlock": [ "global_network", "orbital_calculations" ]
"miraclesToUnlock": ["global_network", "orbital_calculations"]
},
{
"type": "ModifyStat",
"targetStat": "FollowersPerSecond",
"op": "Add",
"value": 1.0
},
{ "type": "DestroySelf" }
],

View File

@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using Godot;
using ParasiticGod.Scripts;
using ParasiticGod.Scripts.Core.Effects;
using ParasiticGod.Scripts.Singletons;

View File

@@ -1,5 +1,6 @@
using System;
using System.Linq;
using Godot;
using ParasiticGod.Scripts.Singletons;
namespace ParasiticGod.Scripts.Core;

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using ParasiticGod.Scripts.Core.Effects;
using static System.Double;
namespace ParasiticGod.Scripts.Core;
@@ -30,7 +31,7 @@ public class GameState
public double Get(Stat stat) => _stats[stat].Value;
public void Set(Stat stat, double value) => _stats[stat].Set(value);
public void Set(Stat stat, double value) => _stats[stat].Set(Math.Clamp(value, 0, MaxValue));
public void Modify(Stat stat, double delta) => _stats[stat].Set(Get(stat) + delta);