Checkpoint stats equipment and control catalog implementation
This commit is contained in:
@@ -36,6 +36,7 @@ type Balance struct {
|
||||
AttackCooldown float64 `yaml:"attackCooldown"`
|
||||
PlayerDamage float64 `yaml:"playerDamage"`
|
||||
CriticalMultiplier float64 `yaml:"criticalMultiplier"`
|
||||
MaxYieldPerAction int64 `yaml:"maxYieldPerAction"`
|
||||
SpearDamage float64 `yaml:"spearDamage"`
|
||||
GatherRange float64 `yaml:"gatherRange"`
|
||||
GatherCooldown float64 `yaml:"gatherCooldown"`
|
||||
@@ -106,6 +107,7 @@ func (b Balance) Validate() error {
|
||||
if b.TickHz > 60 || b.SnapshotHz > b.TickHz || b.TickHz%b.SnapshotHz != 0 || b.TerrainResolution > 64 || b.ResourcesPerChunk > 128 || b.MaxPlayers > 2000 || b.WorldRadius < b.ChunkSize*2 {
|
||||
return fmt.Errorf("invalid capacity, terrain, or tick configuration")
|
||||
}
|
||||
if b.MaxYieldPerAction > 1000 || b.CriticalMultiplier > 100 { return fmt.Errorf("invalid yield or critical damage tuning") }
|
||||
known := map[string]bool{"knife": true, "axe": true, "flint_and_steel": true, "fishing_pole": true, "wood": true, "ore": true, "herb": true, "spear": true, "bandage": true}
|
||||
check := func(items map[string]int64) error {
|
||||
if len(items) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user