Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
e873459
feat: add the Vashar Gate galaxy gate
Timerk Oct 21, 2026
949507a
docs: describe the Vashar Gate
Timerk Oct 21, 2026
6fe41e7
test: count the gate arena in the server export check
Timerk Oct 21, 2026
7712603
feat: add x4 shots and an LF-4 chance to Vashar Gate victories
Timerk Oct 21, 2026
bc59c6a
feat: add Blender models for the Vashar aliens
Timerk Oct 21, 2026
ef04f4f
docs: note the Vashar alien models
Timerk Oct 21, 2026
ff77297
feat: add detail to the Vashar alien models
Timerk Oct 21, 2026
0429245
chore: add a Vashar option to the alien preview renderer
Timerk Oct 21, 2026
7aff121
feat: darken the Vashar alien hulls
Timerk Oct 21, 2026
ce5d0f9
feat: give the Vashar aliens a hard metallic finish
Timerk Oct 21, 2026
6c990cc
feat: add a wave countdown and keep gate aliens on the attack
Timerk Oct 21, 2026
ad3fb09
test: expect no protected zone at the gate arena exit
Timerk Oct 21, 2026
a194b13
feat: add the Korrath Gate
Timerk Oct 22, 2026
3a39ce0
docs: describe the Korrath Gate
Timerk Oct 22, 2026
3a63f88
feat: add the Sylith Gate
Timerk Oct 22, 2026
fa431fb
docs: describe the Sylith Gate
Timerk Oct 22, 2026
f0a8ff1
fix: keep mothership escorts available and out-ranged
Timerk Oct 22, 2026
1f5e84f
Merge feat/galaxy-gates into feat/korrath-gate
Timerk Oct 22, 2026
5c69699
fix: bump the network schema for the Korrath Gate
Timerk Oct 22, 2026
065857e
Merge feat/korrath-gate into feat/sylith-gate
Timerk Oct 22, 2026
f3999aa
fix: tune the Sylith Gate after review
Timerk Oct 22, 2026
14f7793
feat: replace Korrath placeholders with authored Blender models
Timerk Oct 22, 2026
e7d6f81
fix: address gate review findings
Timerk Oct 22, 2026
dd57464
Merge feat/galaxy-gates into feat/korrath-gate
Timerk Oct 22, 2026
18bf4a4
Merge feat/korrath-gate into feat/sylith-gate
Timerk Oct 22, 2026
4451de9
fix: close remaining gate run loopholes
Timerk Oct 22, 2026
c2a811c
Merge feat/galaxy-gates into feat/korrath-gate
Timerk Oct 22, 2026
cac0650
Merge feat/korrath-gate into feat/sylith-gate
Timerk Oct 22, 2026
651e5bb
fix: distinguish story protocols and mark only gate-part loot
Timerk Nov 17, 2026
bb73532
fix: migrate single-gate pilot saves on load and provisioning
Timerk Nov 17, 2026
985c100
fix: integrate Vashar gate markers with per-gate loot
Timerk Nov 17, 2026
040ab68
chore: sync Sylith Gate with Korrath compatibility fixes
Timerk Nov 17, 2026
6ff7c17
test: wait for gate reward delivery before checking inventory
Timerk Nov 17, 2026
c5ccecf
ci: allow cold Windows validation and preview builds to finish
Timerk Nov 17, 2026
9962ed5
ci: integrate the Windows job timeout from the Vashar branch
Timerk Nov 17, 2026
93bec64
ci: integrate the Windows job timeout from the Korrath branch
Timerk Nov 17, 2026
9a53760
fix: keep gate parts that a full stock cannot hold
xxxxxxxxxxxxx Nov 25, 2026
dbe97cf
fix: accept whole-valued float gate counters in pilots.py
xxxxxxxxxxxxx Nov 25, 2026
23d78e7
fix: clear arena loot when a gate run closes
xxxxxxxxxxxxx Nov 25, 2026
8e6da6c
Merge feat/galaxy-gates into feat/korrath-gate
xxxxxxxxxxxxx Nov 25, 2026
2d96d2a
fix: keep the selected gate tab highlighted
xxxxxxxxxxxxx Nov 25, 2026
2e788a5
Merge feat/korrath-gate into feat/sylith-gate
xxxxxxxxxxxxx Nov 25, 2026
8e7dca5
fix: derive alien preview gate filters from gate definitions
xxxxxxxxxxxxx Nov 25, 2026
d7f01e0
fix: frame placeholder-model aliens in previews
xxxxxxxxxxxxx Nov 25, 2026
00d6c1d
fix: name gate alien previews after the selected gate
Timerk Nov 25, 2026
61cc678
Merge commit 'b1680b8^' into HEAD
Timerk Nov 25, 2026
bd97a96
Merge main after #138 squash
Timerk Nov 25, 2026
019b763
Merge remote-tracking branch 'origin/feat/korrath-gate' into HEAD
Timerk Nov 25, 2026
e2b59e5
Merge remote-tracking branch 'origin/main' into HEAD
Timerk Nov 25, 2026
ffec5e8
Merge remote-tracking branch 'origin/feat/korrath-gate' into HEAD
Timerk Nov 25, 2026
cbed80b
Merge main after #141 squash
Timerk Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions GAME_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,33 @@ construction views and Godot captures live in `korrath-review/README.md` in the
art archive. Fine details and hidden surfaces interpret the concepts for game
geometry. All values remain provisional until playtested.

#### Galaxy gates: the Sylith Gate

The third gate continues the hidden alien relay thread in M4. The **Sylith** are
a phase-shifting choir that speaks through alien relays; the occupiers route
Sylith gate cores through the Frontier relay network. The gate leads into the
*Sylith Hollow*, where the Ascendant, a relay-ark, gathers the choir.

- **Parts:** 28. *Relay Intercept* (Commander Vance) guarantees a part for each
contributed M4 kill; 12 parts complete it for +6 parts, 50,000 CR and 4 RP.
Random drops come only from M4 (Ravager 10%, Overlord 14%).
- **Waves:** nine, with Wisps (fast) and Veilcasters (heavy). The final wave adds
the nearly stationary Ascendant, which launches two Wisps every 25 s.

| Type | Hull / shield | Damage / interval | Credit pool |
| --- | --- | --- | --- |
| Wisp | 14,000 / 9,000 | 7,000 / 0.7 s | 6,000 |
| Veilcaster | 70,000 / 40,000 | 24,000 / 0.85 s | 30,000 |
| Ascendant | 1,000,000 / 500,000 | 50,000 / 0.5 s, 270 m | 600,000 |

- **Rewards:** 500,000 CR, 15 research points and 40,000 x4 shots per
participant, with a 35% chance of an LF-4 laser.
- Shared gate rules apply, including the escort reserve in boss waves (pool:
14 Wisps, 5 Veilcasters). The arena is map 6 with a cold teal nebula backdrop,
and its portal sits beyond Outpost 01 toward the defense ring wreck. Network
schema 23 adds the Sylith arena and aliens. Sylith aliens use colored
placeholder models; art is deferred. All values are provisional.

#### First campaign implementation scope

Begin with the pilot prologue and the clearance operation that establishes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ equip it, **Quests** to accept hunting contracts, or **Cargo trade** to sell sav
resources. **Skylab** manages persistent collectors, refining, upgrades, robots
and shipments to ship cargo; see [Skylab rules and balance](docs/skylab.md).
**Settings** and **Connection** are also available. **Galaxy Gates** shows your
parts and operations for the Vashar and Korrath gates; see
parts and operations for the Vashar, Korrath and Sylith gates; see
[Galaxy gates](GAME_PLAN.md#galaxy-gates-the-vashar-gate). Choose the amber **START** button on Overview
to spawn at Outpost 01 with your selected ship and fitting. Esc or Back returns to
the overview; these actions do not launch. Docked ships are hidden from other
Expand Down
7 changes: 7 additions & 0 deletions scripts/alien.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const VISUAL_SCALE := {
"Husk": 1.3,
"Bulwark": 2.4,
"Siegebreaker": 9.0,
"Wisp": 1.1,
"Veilcaster": 2.6,
"Ascendant": 11.0,
}
const TYPES := {
"Scout": {"hull": 1000.0, "shield": 500.0, "damage": 1500.0, "interval": 0.85, "range": 205.0, "speed": 29.0, "detection": 230.0, "leash": 210.0, "reward": 300, "respawn": 10.0, "scale": Vector3(0.7, 0.7, 0.85), "color": Color("ffc875")},
Expand All @@ -59,6 +62,10 @@ const TYPES := {
"Husk": {"hull": 8000.0, "shield": 4000.0, "damage": 4000.0, "interval": 0.8, "range": 230.0, "speed": 34.0, "detection": 2400.0, "leash": 5000.0, "reward": 3000, "respawn": 0.0, "scale": Vector3(0.9, 0.7, 1.2), "color": Color("ff8a3d")},
"Bulwark": {"hull": 36000.0, "shield": 18000.0, "damage": 14000.0, "interval": 0.85, "range": 260.0, "speed": 15.0, "detection": 2400.0, "leash": 5000.0, "reward": 15000, "respawn": 0.0, "scale": Vector3(1.4, 1.2, 1.3), "color": Color("d0562a")},
"Siegebreaker": {"hull": 500000.0, "shield": 250000.0, "damage": 30000.0, "interval": 0.5, "range": 270.0, "speed": 3.0, "detection": 2400.0, "leash": 5000.0, "reward": 300000, "respawn": 0.0, "scale": Vector3(1.6, 0.8, 1.6), "color": Color("ffb35c"), "radius": 22.0},
# Sylith Gate arena only, with placeholder models until authored art exists.
"Wisp": {"hull": 14000.0, "shield": 9000.0, "damage": 7000.0, "interval": 0.7, "range": 240.0, "speed": 40.0, "detection": 2400.0, "leash": 5000.0, "reward": 6000, "respawn": 0.0, "scale": Vector3(0.8, 0.5, 1.3), "color": Color("4fe3d2")},
"Veilcaster": {"hull": 70000.0, "shield": 40000.0, "damage": 24000.0, "interval": 0.85, "range": 270.0, "speed": 14.0, "detection": 2400.0, "leash": 5000.0, "reward": 30000, "respawn": 0.0, "scale": Vector3(1.1, 1.6, 1.1), "color": Color("2fa8c9")},
"Ascendant": {"hull": 1000000.0, "shield": 500000.0, "damage": 50000.0, "interval": 0.5, "range": 270.0, "speed": 2.0, "detection": 2400.0, "leash": 5000.0, "reward": 600000, "respawn": 0.0, "scale": Vector3(1.0, 1.8, 1.0), "color": Color("a6fff2"), "radius": 26.0},
}

var alien_id: int = 0
Expand Down
3 changes: 3 additions & 0 deletions scripts/cargo_resources.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const LOOT := {
"Husk": {"duranium": Vector2i(6, 10), "xenomit": Vector2i(2, 4), "promerium": Vector2i(2, 4)},
"Bulwark": {"xenomit": Vector2i(6, 10), "promerium": Vector2i(10, 14), "seprom": Vector2i(4, 6)},
"Siegebreaker": {"xenomit": Vector2i(30, 40), "promerium": Vector2i(40, 50), "seprom": Vector2i(25, 35)},
"Wisp": {"xenomit": Vector2i(4, 6), "promerium": Vector2i(4, 8), "seprom": Vector2i(1, 3)},
"Veilcaster": {"xenomit": Vector2i(10, 14), "promerium": Vector2i(14, 20), "seprom": Vector2i(8, 12)},
"Ascendant": {"xenomit": Vector2i(40, 60), "promerium": Vector2i(60, 80), "seprom": Vector2i(40, 50)},
"Heavy": {"prometium": Vector2i(18, 24), "endurium": Vector2i(12, 18), "terbium": Vector2i(8, 12), "prometid": Vector2i(6, 10), "duranium": Vector2i(4, 6), "xenomit": Vector2i(1, 3), "promerium": Vector2i(2, 4), "seprom": Vector2i(1, 2)},
}

Expand Down
7 changes: 5 additions & 2 deletions scripts/contract_preview.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class_name ContractPreview
extends SubViewportContainer
## Isolated preview sharing the textured encounter model.

const PLACEHOLDER_DIAMETER := 10.0
var viewport: SubViewport
var model: Node3D
var camera: Camera3D
Expand Down Expand Up @@ -43,8 +44,10 @@ func show_kind(kind: String) -> void:
if kind == selected_kind:
return
selected_kind = kind
var diameter := float(Alien.VISUAL_DIAMETERS[kind]) * float(Alien.VISUAL_SCALE[kind])
var framing := float({"Scout": 5.5, "Sentinel": 7.0, "Heavy": 10.0}.get(kind, float(Alien.VISUAL_DIAMETERS[kind]) * 0.75))
# Placeholder-model aliens have no measured diameter; frame them like a mid-size hull.
var measured := float(Alien.VISUAL_DIAMETERS.get(kind, PLACEHOLDER_DIAMETER))
var diameter := measured * float(Alien.VISUAL_SCALE[kind])
var framing := float({"Scout": 5.5, "Sentinel": 7.0, "Heavy": 10.0}.get(kind, measured * 0.75))
camera.size = framing * float(Alien.VISUAL_SCALE[kind])
camera.position = Vector3(8, 7, -10).normalized() * maxf(15.0, diameter * 1.5)
camera.look_at(Vector3.ZERO)
Expand Down
2 changes: 1 addition & 1 deletion scripts/equipment.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const MODELS := {
"mp-1": {"name": "MP-1", "kind": "laser", "price": 40000, "damage": 70.0, "shield": 0.0, "speed": 0.0},
"lf-2": {"name": "LF-2", "kind": "laser", "price": 5000 * URIDIUM_TO_CREDITS, "damage": 140.0, "shield": 0.0, "speed": 0.0},
"lf-3": {"name": "LF-3", "kind": "laser", "price": 10000 * URIDIUM_TO_CREDITS, "damage": 175.0, "npc_bonus": 0.15, "shield": 0.0, "speed": 0.0},
"lf-4": {"name": "LF-4", "kind": "laser", "price": 0, "unavailable": "Unavailable in the shop. Vashar Gate victories can award one.", "damage": 200.0, "shield": 0.0, "speed": 0.0},
"lf-4": {"name": "LF-4", "kind": "laser", "price": 0, "unavailable": "Unavailable in the shop. Vashar and Sylith Gate victories can award one.", "damage": 200.0, "shield": 0.0, "speed": 0.0},
"shield": {"name": "SG3N-A01", "kind": "generator", "price": 8000, "damage": 0.0, "shield": 1000.0, "absorption": 0.4, "speed": 0.0},
"sg3n-a02": {"name": "SG3N-A02", "kind": "generator", "price": 16000, "damage": 0.0, "shield": 2000.0, "absorption": 0.5, "speed": 0.0},
"fs-01": {"name": "FS-01", "kind": "generator", "price": 256000, "damage": 0.0, "shield": 3200.0, "absorption": 0.7, "regen_bonus": 0.0625, "speed": 0.0},
Expand Down
2 changes: 1 addition & 1 deletion scripts/flight_session.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const MAX_PLAYERS: int = 10
const COMMAND_TIMEOUT: float = 0.5
const CONNECT_TIMEOUT: float = 10.0
# Bump when packet contents or shared physics change without an RPC signature change.
const NETWORK_SCHEMA: int = 22
const NETWORK_SCHEMA: int = 23
const BUILD_MISMATCH := "Client and server builds are incompatible. Use the matching client and server from the same release or PR preview."

var sector: Sector
Expand Down
29 changes: 28 additions & 1 deletion scripts/galaxy_gates.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ESCORTS := 2
const SIGNAL_STATES := ["available", "active", "done"]
# Display and lookup order. Each gate has its own arena map, entry portal near
# Outpost 01, parts, operation, alien pool, waves and rewards.
const ORDER := ["vashar", "korrath"]
const ORDER := ["vashar", "korrath", "sylith"]
const GATES := {
"vashar": {
"name": "Vashar Gate", "faction": "Vashar", "arena": "Vashar Rift", "map": 4, "glow": Color("c86bff"),
Expand Down Expand Up @@ -77,6 +77,33 @@ const GATES := {
{"Siegebreaker": 1, "Husk": 4, "Bulwark": 2},
],
},
"sylith": {
"name": "Sylith Gate", "faction": "Sylith", "arena": "Sylith Hollow", "map": 6, "glow": Color("4fe3d2"),
"portal": Vector3(250, -50, 400), "parts_required": 28, "lives": 3,
"summary": "The Sylith are a phase-shifting choir that speaks through alien relays. The occupiers are routing Sylith gate cores through the Frontier relay network. Assemble the gate, enter the hollow where their choir gathers and silence the Ascendant before the Sylith can cross over.",
"part_chance": {"Ravager": 0.1, "Overlord": 0.14},
"signal": {
"title": "Relay Intercept", "contact": "vance", "map": 3, "required": 12, "parts": 6, "credits": 50000, "research": 4,
"objective": "Recover Sylith gate cores from aliens in M4 / Frontier",
"briefing": "Vance here. Sato finally cracked the Frontier relay traffic. The aliens are not just talking to each other; they are routing gate cores for a third ally, the Sylith. Command wants those cores before they reach a gate. Hunt the relay escorts in M4 and bring the cores home.",
"done": "Good hunting, pilot. The escorts were carrying a full manifest; we pulled the remaining cores from their drop point and added them to your stock. Build that gate and take the fight to the Sylith.",
},
"reward": {"credits": 500000, "research": 15, "x4": 40000, "item": "lf-4", "item_chance": 0.35},
"boss": "Ascendant", "boss_title": "SYLITH ASCENDANT", "escort": "Wisp",
"victory": "The Sylith Ascendant is silenced. Their choir falls quiet for now.",
"pool": {"Wisp": 14, "Veilcaster": 5, "Ascendant": 1},
"waves": [
{"Wisp": 5},
{"Wisp": 8},
{"Wisp": 5, "Veilcaster": 1},
{"Wisp": 8, "Veilcaster": 2},
{"Veilcaster": 3},
{"Wisp": 8, "Veilcaster": 2},
{"Wisp": 8, "Veilcaster": 3},
{"Wisp": 8, "Veilcaster": 4},
{"Ascendant": 1, "Wisp": 6, "Veilcaster": 2},
],
},
}


Expand Down
8 changes: 8 additions & 0 deletions scripts/sector_backdrop.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const THEMES := [
{"planet": Vector3(-1700, 900, -3600), "radius": 1500.0, "ocean": Color("1a0f24"), "land": Color("3b2346"), "atmosphere": Color("b04cff"), "water": 0.0, "clouds": 0.0, "mining": 1.0, "cool": Color("3a1752"), "warm": Color("b0367f"), "light": Color("c86bff")},
# Korrath Bastion: a scorched forge world behind the siege fleet.
{"planet": Vector3(1900, 1000, -3500), "radius": 1600.0, "ocean": Color("2a1208"), "land": Color("5a2a14"), "atmosphere": Color("ff7a2e"), "water": 0.0, "clouds": 0.02, "mining": 1.0, "cool": Color("3d1a10"), "warm": Color("c2541f"), "light": Color("ff9a52")},
# Sylith Hollow: a cold teal nebula around a pale mineral world.
{"planet": Vector3(-1800, 1100, -3600), "radius": 1450.0, "ocean": Color("0d2a33"), "land": Color("3e6b70"), "atmosphere": Color("5ff0e0"), "water": 0.3, "clouds": 0.3, "mining": 0.6, "cool": Color("0f3540"), "warm": Color("2a8f8a"), "light": Color("8ff5e8")},
]


Expand Down Expand Up @@ -127,6 +129,12 @@ static func build(parent: Node3D, map: int) -> Node3D:
carrier(root, wreck, Vector3(0.15, -1.3, 0.22))
human_relay(root, Vector3(-1450, -280, -1500), 1.5)
human_ring(root, Vector3(-1800, 500, 1800), 330.0, Vector3(0.3, -0.7, 0.4), false)
elif map == 6:
# Choir relays ring the hollow; no human structures.
alien_relay(root, Vector3(1500, 300, -2300), 1.8)
alien_relay(root, Vector3(-1600, -200, 2000), 1.2)
alien_relay(root, Vector3(1900, -260, 1500), 0.8)
planet_collectors(root, planet_position, radius, 3)
elif map == 5:
# Siege staging: heavy alien relays and extraction collars around the forge world.
planet_collectors(root, planet_position, radius, 5)
Expand Down
6 changes: 5 additions & 1 deletion scripts/sector_maps.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const MAPS := {
5: {"name": "KG / Korrath Bastion", "color": Color("ff8a3d"), "instance": true,
"aliens": ["Husk", "Husk", "Husk", "Husk", "Husk", "Husk", "Husk", "Husk", "Husk", "Husk", "Bulwark", "Bulwark", "Bulwark", "Bulwark", "Bulwark", "Siegebreaker"],
"description": "Korrath Gate / siege bastion / waves end with the Siegebreaker"},
6: {"name": "SG / Sylith Hollow", "color": Color("4fe3d2"), "instance": true,
"aliens": ["Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Wisp", "Veilcaster", "Veilcaster", "Veilcaster", "Veilcaster", "Veilcaster", "Ascendant"],
"description": "Sylith Gate / choir hollow / waves end with the Ascendant"},
}
const GATES := {
0: {1: Vector3(0, 120, -900)},
Expand All @@ -29,9 +32,10 @@ const GATES := {
# Galaxy gate endpoints: each gate's portal near Outpost 01 (see GalaxyGates
# "portal") and every arena's return gate.
const SPECIAL_GATES := {
0: {4: Vector3(320, 40, -300), 5: Vector3(-340, -30, -330)},
0: {4: Vector3(320, 40, -300), 5: Vector3(-340, -30, -330), 6: Vector3(250, -50, 400)},
4: {0: Vector3(0, 0, 700)},
5: {0: Vector3(0, 0, 700)},
6: {0: Vector3(0, 0, 700)},
}
# Replicated from the server's gate run: the arena map whose Outpost 01 portal is
# open, or -1. Only one gate run is open at a time.
Expand Down
29 changes: 25 additions & 4 deletions tests/alien_assets_test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,19 @@ func run() -> void:
check(alien.alive and alien.visible and alien.collision_layer == 2,
kind + " respawn restores visibility and collision")
alien.free()
check(sizes.size() == Alien.TYPES.size() and sizes[0] < sizes[1] and sizes[1] < sizes[2],
# Gate aliens without authored art use colored placeholder models.
var placeholders: Array = Alien.TYPES.keys().filter(func(kind: String): return not Alien.VISUAL_DIAMETERS.has(kind))
check(sizes.size() == Alien.TYPES.size() - placeholders.size() and sizes[0] < sizes[1] and sizes[1] < sizes[2],
"Scout, Sentinel and Heavy retain increasing visual size")
check(Alien.VISUAL_DIAMETERS.size() == Alien.TYPES.size(),
check(Alien.VISUAL_DIAMETERS.size() == Alien.TYPES.size() - placeholders.size(),
"Every authored encounter type has an imported model and a mesh-free server diameter")
check_gate_models("vashar")
check_gate_models("korrath")
# Gates with authored art get full model checks; the rest use placeholders.
for gate_id: String in GalaxyGates.ORDER:
var faction: Array = GalaxyGates.info(gate_id)["pool"].keys()
if faction.all(func(kind: String): return kind in placeholders):
check_placeholders(faction)
else:
check_gate_models(gate_id)
# Gate rosters are their own faction progressions, checked separately.
var roster: Array = Alien.TYPES.keys().filter(func(kind: String): return not kind in GalaxyGates.arena_kinds())
roster.sort_custom(func(a: String, b: String): return Alien.TYPES[a]["hull"] < Alien.TYPES[b]["hull"])
Expand Down Expand Up @@ -183,3 +190,17 @@ func check_gate_models(gate_id: String) -> void:
previous = diameter
print("ALIEN_SIZE %s diameter=%.2f m" % [kind, diameter])
alien.free()


func check_placeholders(kinds: Array) -> void:
var previous := 0.0
for kind: String in kinds:
var alien := Alien.new()
alien.kind = kind
root.add_child(alien)
var diameter := SectorVisuals.destruction_size(alien)
check(not alien.model.find_children("*", "MeshInstance3D", true, false).is_empty(), kind + " has a placeholder model")
check(diameter > previous, kind + " placeholder is larger than the previous tier of its faction")
check(is_equal_approx((alien.get_child(0) as CollisionShape3D).shape.radius, float(Alien.TYPES[kind].get("radius", 2.2))), kind + " uses its configured collider")
previous = diameter
alien.free()
Loading
Loading