Unify XP progression and enable ability ranks

This commit is contained in:
dingo
2026-09-10 06:08:49 -04:00
parent 906a07ff66
commit ac695b3270
17 changed files with 313 additions and 43 deletions
+6
View File
@@ -19,6 +19,7 @@ type Recipe struct {
}
type Balance struct {
XPCurve *XPCurve `yaml:"xpCurve"`
Housing *HousingRules `yaml:"housing"`
Building *BuildingContent `yaml:"building"`
Powers *PowerContent `yaml:"powers"`
@@ -84,6 +85,11 @@ func Parse(data []byte) (Balance, error) {
return b, b.Validate()
}
func (b Balance) Validate() error {
if b.XPCurve != nil {
if e := b.XPCurve.Validate(); e != nil {
return e
}
}
if b.Housing != nil {
if e := b.Housing.Validate(); e != nil {
return e