Add physical hub portals and shared housing entrances

This commit is contained in:
dingo
2026-09-11 05:31:18 -04:00
parent 9b01ee38e3
commit ca571577ad
22 changed files with 366 additions and 37 deletions
+6
View File
@@ -19,6 +19,7 @@ type Recipe struct {
}
type Balance struct {
Entrances *EntranceRules `yaml:"entrances"`
Inventory *InventoryRules `yaml:"inventory"`
XPCurve *XPCurve `yaml:"xpCurve"`
Housing *HousingRules `yaml:"housing"`
@@ -86,6 +87,11 @@ func Parse(data []byte) (Balance, error) {
return b, b.Validate()
}
func (b Balance) Validate() error {
if b.Entrances != nil {
if e := b.Entrances.Validate(); e != nil {
return e
}
}
if b.Inventory != nil {
if e := b.Inventory.Validate(); e != nil {
return e