Package refuses an agent-built hull unless its product is by the language's maker
Language files carry their Faction record key (eighth element of the lang echo); Build records the maker it judged (aetheria.hull_maker); Package compares it with ship_cc.product_makers before writing anything (ruling hull-faction-is-product-maker, finding hull-names-its-own-faction). _art_takes_over is shared with _retire_hull_source. Unit tests untested at this commit until the Yggdrasil run; bpy smokes not run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
adaa8b8865
commit
7f35c79ecc
10 changed files with 194 additions and 39 deletions
|
|
@ -22,6 +22,7 @@ public sealed class ShipSchemaPinTests
|
|||
[InlineData("SCHEMATIC_LINES_SLOT", typeof(ShipAuthoring), nameof(ShipAuthoring.SchematicLines))]
|
||||
[InlineData("HULL_SHAPE_SLOT", typeof(HullData), nameof(HullData.Shape))]
|
||||
[InlineData("HULL_HARDPOINTS_SLOT", typeof(HullData), nameof(HullData.Hardpoints))]
|
||||
[InlineData("PRODUCT_MANUFACTURER_SLOT", typeof(FactionProductData), nameof(FactionProductData.Manufacturer))]
|
||||
public void PythonSlotConstantsAreTheKeysOfTheMembersTheyNameInTheirComments(string constant, Type owner, string member)
|
||||
{
|
||||
Assert.Equal(KeyOf(owner, member), Integer(constant));
|
||||
|
|
|
|||
Loading…
Reference in a new issue