Add physical hub portals and shared housing entrances
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user