Move goal weights into BehaviorDef so a pack can rebalance decisions without a fork.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-20 00:27:52 +03:00
co-authored by Cursor
parent fcbc5bb22c
commit e1a0f06017
10 changed files with 293 additions and 50 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ public sealed class CatalogLoader
var resolved = ResolveInheritance(defs);
ApplyPatches(resolved, patches);
var catalog = Materialize(order, resolved, localesRu, localesEn);
ResolveReferences(catalog);
ResolveReferences(catalog, log);
return catalog;
}
@@ -398,7 +398,7 @@ public sealed class CatalogLoader
en);
}
private static void ResolveReferences(DefCatalog catalog)
private static void ResolveReferences(DefCatalog catalog, IContentLog log)
{
foreach (var thing in catalog.Things.Values)
{
@@ -488,7 +488,7 @@ public sealed class CatalogLoader
}
}
PeopleDefValidator.Validate(catalog);
PeopleDefValidator.Validate(catalog, log);
}
private sealed record RawDef(string PackId, DefKind Kind, string DefName, JsonObject Json, string Source);