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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user