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

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

View File

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

View File

@@ -9,6 +9,12 @@
"type": "UnlockMiracle", "type": "UnlockMiracle",
"miraclesToUnlock": ["global_network", "orbital_calculations"] "miraclesToUnlock": ["global_network", "orbital_calculations"]
}, },
{
"type": "ModifyStat",
"targetStat": "FollowersPerSecond",
"op": "Add",
"value": 1.0
},
{ "type": "DestroySelf" } { "type": "DestroySelf" }
], ],
"advancesToAge": "The Space Age" "advancesToAge": "The Space Age"

View File

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

View File

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

View File

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