Add NotificationManager and NotificationLabel for age advancement notifications; refactor scripts into Components directory
This commit is contained in:
@@ -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; }
|
||||
}
|
@@ -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; }
|
||||
}
|
@@ -70,6 +70,7 @@ public static class MiracleLoader
|
||||
FaithCost = miracleDto.FaithCost,
|
||||
FollowersRequired = miracleDto.FollowersRequired,
|
||||
ProductionRequired = miracleDto.ProductionRequired,
|
||||
AdvancesToAge = miracleDto.AdvancesToAge,
|
||||
Effects = []
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user