Add NotificationManager and NotificationLabel for age advancement notifications; refactor scripts into Components directory

This commit is contained in:
2025-08-23 04:54:45 +02:00
parent 5719c3f920
commit 9cf707945b
26 changed files with 96 additions and 68 deletions

View File

@@ -14,6 +14,7 @@ public partial class MiracleDefinition : Resource
[Export] public double FaithCost { get; set; }
[Export] public long FollowersRequired { get; set; }
[Export] public double ProductionRequired { get; set; }
public string AdvancesToAge { get; set; }
[Export] public Array<Effect> Effects { get; set; }
}

View File

@@ -6,6 +6,7 @@ namespace ParasiticGod.Scripts.Core;
public class EffectDto
{
public string Type { get; set; }
// --- For "AddResource" Effect ---
public Stat TargetResource { get; set; }
public double Value { get; set; }
@@ -19,11 +20,11 @@ public class EffectDto
public double FromAmount { get; set; }
public Stat ToResource { get; set; }
public double ToAmount { get; set; }
// --- For "ModifyStat" Effect ---
public Stat TargetStat { get; set; }
public ModifyStatEffect.Operation Op { get; set; }
public List<string> MiraclesToUnlock { get; set; }
}
@@ -34,5 +35,6 @@ public class MiracleDto
public long FollowersRequired { get; set; }
public double ProductionRequired { get; set; }
public bool UnlockedByDefault { get; set; }
public string AdvancesToAge { get; set; }
public List<EffectDto> Effects { get; set; }
}

View File

@@ -70,6 +70,7 @@ public static class MiracleLoader
FaithCost = miracleDto.FaithCost,
FollowersRequired = miracleDto.FollowersRequired,
ProductionRequired = miracleDto.ProductionRequired,
AdvancesToAge = miracleDto.AdvancesToAge,
Effects = []
};