Complete player stats inventory and Control content editors

This commit is contained in:
dingo
2026-09-08 06:02:13 -04:00
parent 2df1f6ab38
commit b6ce3bc292
27 changed files with 960 additions and 267 deletions
+3 -1
View File
@@ -107,7 +107,9 @@ 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") }
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 {