New source found from dndbeyond.com

This commit is contained in:
2025-07-09 01:00:11 -07:00
parent b7f7f4a655
commit 151590af7a
18 changed files with 150 additions and 45 deletions
@@ -385,7 +385,7 @@ class VehiclePane extends React.PureComponent<Props, State> {
return null;
}
if (!vehicle.isSpelljammer()) {
if (!vehicle.isSpelljammer() && !vehicle.isElementalAirship()) {
const primaryComponent = vehicle.getPrimaryComponent();
if (primaryComponent === null) {
return null;
@@ -442,6 +442,7 @@ class VehiclePane extends React.PureComponent<Props, State> {
}
return (
<VehicleHealthAdjuster
key={`${componentName}${componentNumber}`}
hitPointInfo={componentHitPointInfo}
onSave={(diff) => this.handleHealthAdjusterSave(diff, component)}
heading={`Hit Points (${componentName}${componentNumber})`}
@@ -507,7 +508,8 @@ class VehiclePane extends React.PureComponent<Props, State> {
const primaryComponentManageType = vehicle.getPrimaryComponentManageType();
const enableConditionTracking = vehicle.getEnableConditionTracking();
const enableFuelTracking = vehicle.getEnableFuelTracking();
const shouldCoalesce = vehicle.isSpelljammer();
const shouldCoalesce =
vehicle.isSpelljammer() || vehicle.isElementalAirship();
return (
<React.Fragment>
@@ -550,7 +552,6 @@ class VehiclePane extends React.PureComponent<Props, State> {
renderVehicleName = (): React.ReactNode => {
const { vehicle } = this.state;
const { theme } = this.props;
if (!vehicle) {
return null; //TODO could render a default empty state