Add FollowersPerSecond modifications to various unlocks; adjust values for game progression
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"type": "ModifyStat",
|
||||
"targetStat": "FollowersPerSecond",
|
||||
"op": "Add",
|
||||
"value": 0.1
|
||||
"value": 0.1
|
||||
},
|
||||
{
|
||||
"type": "DestroySelf"
|
||||
|
@@ -19,6 +19,12 @@
|
||||
"unlock_space_age"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "ModifyStat",
|
||||
"targetStat": "FollowersPerSecond",
|
||||
"op": "Add",
|
||||
"value": 0.75
|
||||
},
|
||||
{ "type": "DestroySelf" }
|
||||
],
|
||||
"advancesToAge": "The Industrial Age"
|
||||
|
@@ -18,6 +18,12 @@
|
||||
"unlock_age_of_industry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "ModifyStat",
|
||||
"targetStat": "FollowersPerSecond",
|
||||
"op": "Add",
|
||||
"value": 0.5
|
||||
},
|
||||
{ "type": "DestroySelf" }
|
||||
],
|
||||
"advancesToAge": "The Settlement Age"
|
||||
|
@@ -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" }
|
||||
],
|
||||
|
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
using ParasiticGod.Scripts;
|
||||
using ParasiticGod.Scripts.Core.Effects;
|
||||
using ParasiticGod.Scripts.Singletons;
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Godot;
|
||||
using ParasiticGod.Scripts.Singletons;
|
||||
|
||||
namespace ParasiticGod.Scripts.Core;
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user