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

@@ -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);