Commit graph Aetheria/tests/Aetheria.Shared.Tests/RunGoalTests.cs
Author SHA1 Message Date
a0a650db7a Boss_carries_exactly: the open slot's brand is one the antagonist's outfitter can choose, not any product of the design
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 18:56:36 +02:00
6463e79317 Boss fixtures: ordinary hulls only as the copied "like" hull; refusal tests copy a design by its runtime type
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 18:47:21 +02:00
fc992f5abe Boss tests store Loadouts through the cache batch at Loadouts.KeyOf (the cache has no keyed Upsert)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 18:40:09 +02:00
e385e7ce0e Boss tests: fixed Loadout bosses, refusals, loadout-commit tests; "Lucent" is "Lucent Media" (builds not yet checked)
RunGoalTests rewritten for Loadouts.BossOf (the three h1 failures were the fixture name "Lucent" against the shipped
"Lucent Media"). LoadoutCommitCommandTests covers the command, its refusals and the maker's boss end to end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 18:32:37 +02:00
bfcde46c0f Delete GenerateBossLoadout, ShipLoadout and the boss fallback tests (does not build: ZoneGenerator and Program still call them until the next commit)
Boss gear is never drawn (ruling boss-gear-is-a-loadout). GenerateShipLoadout gets its single body back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 18:22:15 +02:00
095baf2fb5 RunGoalTests: product Design refs are CraftedItemData refs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 17:57:23 +02:00
1b5e989182 Derive a faction's boss hull from HullData.Boss and its products
HullData.Boss (key 33) is the flag; LoadoutGenerator.BossHullsOf is the one
owner of which Ship hulls are a faction's boss (the Boss hulls among the
designs of its products). AvailableProducts' candidate filter drops Boss
hulls, so one is never stock, traffic, a generated fit or a fallback boss.
GenerateShipLoadout splits into the draw and ShipLoadout(product).
Galaxy.PlaceFactionsMain and AetherDb factions/loadout read the derivation.
Derivation tests replace the two deleted BossHull tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 17:54:50 +02:00
4ab2ba15c7 Delete Faction.BossHull and its readers
Key 10 is retired (shipped values left in place). GenerateBossLoadout is
its fallback alone; the factions command no longer reads a named boss; the
two BossHull tests go (the named-but-unsold case cannot exist under a
product-first derivation). Galaxy.PlaceFactionsMain, the Exit_open test and
the derivation arrive in the next commit; this commit does not build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 17:49:46 +02:00
Meta Vens
84337de569 ZoneGenerator.Place owns every generated distance, fold and belt width
PlanetSafetyRadius, ChildDistanceMinimum/Maximum, ExpandSolar's distance series
and the window filters are deleted. Place (ported from replace.py, root window
from rootReach per root-window-floor) lays children inside-out, folds the
lightest family while the outermost overflows, stretches to the window, merges
rings that cannot keep their heavy member outside its Roche margin and sets
belt half widths. Stations pick well-bearing, sibling-clear off-ring bodies;
the tutorial entrance falls back to an orbit round a root node; turrets stop a
side when within the base body's extent. GenerateZone/GenerateArena take
PlanetSettings. Not yet built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 04:55:57 +02:00
Meta Vens
f9ece91638 Boss gate test: the main galaxy places no boss in the shipped catalog, so give it one off the exit
Fixes the previous commit's Exit_open_only_in_the_exit_zone, which asserted bosses the main galaxy does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:39:05 +02:00
Meta Vens
dca660e448 Boss gate: TryWin is the one way to win; equal-gap tie-break and two exit pins tested
Win() becomes TryWin(), which checks RunGoal.ExitOpen itself; the call site no longer reads it.
Pins: first-of-equal-gaps, exit-zone-only, no ship hull on offer. Not yet built or run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:18:52 +02:00
Meta Vens
3098ff69a5 Layout-aim tests: lookalike-hull lie, asymmetric two-mount Wing hull, Entity assertions without formatting, docked stance through IsHostileTo
UnderALookalikeLieNoGearIsLocated: claimed and true hulls of one type and size with a reactor mount of equal type, position and shape. AMountAimReadsThePositionAxesInOrder and TwoMountsOfOneTypeAreTwoRows use a Wing hull off the diagonal with two Sensors mounts. Assert.Same and DoesNotContain over Entities become ReferenceEquals asserts. The docked-stance test reads IsHostileTo on a hostile-by-default subject instead of _iffOverrides. Test-only; no production change. Not yet built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 01:39:37 +02:00
Meta Vens
e16288bfcf Pirates record: the demo tests read the shipped faction; tests pin its eight emoji-named products
Deletes the AddPirates stand-in and its 21 calls. DemoTerminus_missing_cast_refused removes the shipped record from its scratch
copy first. LoadoutGenerator.HasHome is public so the catalog test asks production's own home rule. These tests are red on
a catalog without the Pirates: the catalog commit (pirates-faction apply) follows separately.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 14:50:48 +02:00
Meta Vens
bd46f942bf Boss-gate tests: RunSave.Capture gained a credits parameter on master
Adapted the two boss-gate/demo-galaxy Capture call sites to pass 0 credits,
the value master's other tests pass when credits are not under test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 14:09:22 +02:00
Meta Vens
2a5fc00bcd Boss gate tests: the no-boss exit zone is unpacked with the items that generated it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 06:49:39 +02:00
Meta Vens
c8d40eaf74 Boss gate: the exit gate fails closed; it opens only for a boss that spawned and then died
ZonePack.BossSpawned records the spawn, since a dead boss leaves no entity. RunGoal.ExitOpen requires it, so an exit zone
without a boss stays sealed, and ZoneGenerator logs that configuration by field and code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 06:41:33 +02:00
Meta Vens
cb56557b4d Boss gate tests: the gate geometry test places the exit zone away from the origin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 04:38:36 +02:00
Meta Vens
90768de10e Boss gate tests: the exit gate's position is pinned against a sweep of every direction
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 03:54:04 +02:00
Meta Vens
bb2f49f358 Boss gate tests: the unsold BossHull case builds its own unsold hull, as the catalog has none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 01:24:29 +02:00
Meta Vens
db4617d832 Boss gate: a boss zone spawns its faction's boss, and RunGoal derives whether the exit gate is open
EntityPack.Boss (key 21) carries Entity.IsBoss through save and Continue. GenerateZone adds one boss
per BossZones entry before the ambient return, flying the faction's BossHull or, with the gap logged,
its most expensive available ship hull. RunGoal (ServerShared) is the one owner of boss life and exit
state, derived from Zone.Entities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 01:13:08 +02:00