No bridge text even though a bridge is assigned

Back
Bug Resolved Minor opened by pascal ·
Summary

Class Design tab still shows the "No bridge (required for ships of 500 tons or more)" warning in the bottom-right panel even when the class has a bridge assigned (always, engine 0.1.0-alpha). Source: ShipClassCalculator.GetDesignWarnings is_bridge stat lookup on the component stats dict.

Description

Under the class design tab, having a class with a bridge selected still has the "No bridge (required for ships of 500 tons or more)" text show in the bottom right panel even though the class has a bridge assigned.

Steps to reproduce
  1. Open Class Design, select a a class with a bridge, observe "No bridge (required for ships of 500 tons or more)" text appearing.

Expected: "No bridge (required for ships of 500 tons or more)" should not be displayed.

Frequency: Always

Activity 7

  • Issue opened by pascal
  • Triage by pascal
  • Status open → triaged by pascal
  • Triage by pascal
  • Status triaged → in_progress by pascal
  • P
    pascal

    Fixed on branch fix/prot1-bridge-warning, commit fe520114f — bridge detection now accepts is_bridge (legacy), command_rating (JSON-seeded designs), or ComponentType command_control. Regression tests added; ShipClassCalculatorTests 97/97, related ClassDesign fixtures 255/255.

  • Status in_progress → resolved by pascal

Sign in to join the discussion.