New source found from dndbeyond.com

This commit is contained in:
2026-07-08 01:00:09 -07:00
parent 9a983a6d7b
commit dcefa0d2f2
2865 changed files with 222467 additions and 49053 deletions
@@ -33,14 +33,14 @@ export default class VehicleBlockAction extends React.PureComponent<Props> {
ammunitionText.push(text);
});
actionText.push(
<React.Fragment>
<>
<span className="ct-vehicle-block__action-ammo-label">
Ammunition:{" "}
</span>
<span className="ct-vehicle-block__action-ammo-description">
{ammunitionText.join(", ")}.
</span>
</React.Fragment>
</>
);
}
@@ -48,13 +48,13 @@ export default class VehicleBlockAction extends React.PureComponent<Props> {
//All vehicle && component actions descriptions are currently formatted html,
//should use action props derivers to generate the content displayed in this description in the future
actionText.push(
<React.Fragment>
<>
<HtmlContent
className="ct-vehicle-block__action-description"
html={description}
withoutTooltips
/>
</React.Fragment>
</>
);
}
@@ -1,8 +1,8 @@
import React from "react";
import { PureComponent, PropsWithChildren } from "react";
import VehicleBlockSectionHeader from "../VehicleBlockSectionHeader";
export default class VehicleBlockActionStationsShell extends React.PureComponent<{}> {
export default class VehicleBlockActionStationsShell extends PureComponent<PropsWithChildren> {
render() {
return (
<div className="ct-vehicle-block__action-stations">
@@ -41,7 +41,7 @@ export default class VehicleBlockActionSummary extends React.PureComponent<Props
if (sourceId !== null) {
nodes.push(
<React.Fragment>
<>
{"("}
<Reference
isDarkMode={theme?.isDarkMode}
@@ -50,7 +50,7 @@ export default class VehicleBlockActionSummary extends React.PureComponent<Props
chapter={sourceChapterNumber}
/>
{")."}
</React.Fragment>
</>
);
}
@@ -24,32 +24,32 @@ export default class VehicleBlockActions extends React.PureComponent<Props> {
}
return (
<React.Fragment>
<>
{reactions.length > 0 && (
<React.Fragment>
<>
<VehicleBlockSectionHeader label="Reactions" />
{reactions.map((action) => (
<VehicleBlockAction action={action} key={action.key} />
))}
</React.Fragment>
</>
)}
{bonusActions.length > 0 && (
<React.Fragment>
<>
<VehicleBlockSectionHeader label="Bonus Actions" />
{bonusActions.map((action) => (
<VehicleBlockAction action={action} key={action.key} />
))}
</React.Fragment>
</>
)}
{special.length > 0 && (
<React.Fragment>
<>
<VehicleBlockSectionHeader label="Special Actions" />
{special.map((action) => (
<VehicleBlockAction action={action} key={action.key} />
))}
</React.Fragment>
</>
)}
</React.Fragment>
</>
);
}
}
@@ -1,6 +1,6 @@
import React from "react";
import { PureComponent, PropsWithChildren } from "react";
export default class VehicleBlockComponentsShell extends React.PureComponent {
export default class VehicleBlockComponentsShell extends PureComponent<PropsWithChildren> {
render() {
return (
<div className="ct-vehicle-block__components-block">
@@ -54,9 +54,9 @@ export default class VehicleBlockHeader extends React.PureComponent<Props> {
}
return (
<React.Fragment>
<>
(<InlineSeparatedNodes nodes={metaTextSizeNodes} />)
</React.Fragment>
</>
);
};
@@ -57,15 +57,15 @@ export default class VehicleBlockPrimaryAttributes extends React.PureComponent<P
let showFullHitPointInfo: boolean = !shouldCoalesce;
currentHpNode = (
<React.Fragment>
<>
{showFullHitPointInfo && (
<React.Fragment>
<>
<span className={classNames.join(" ")}>{remainingHp}</span>
<span className="ct-vehicle-block-component__hp-sep">/</span>
</React.Fragment>
</>
)}
<span className={classNames.join(" ")}>{hitPointInfo.totalHp}</span>
</React.Fragment>
</>
);
}
@@ -233,7 +233,7 @@ export default class VehicleBlockPrimaryAttributes extends React.PureComponent<P
Constants.VehicleConfigurationDisplayTypeEnum.ELEMENTAL_AIRSHIP;
return (
<React.Fragment>
<>
{armorClassInfo !== null && this.renderArmorClassAttribute()}
{hitPointInfo !== null && (
<VehicleBlockAttribute
@@ -300,7 +300,7 @@ export default class VehicleBlockPrimaryAttributes extends React.PureComponent<P
displayColon={isElementalAirship}
/>
)}
</React.Fragment>
</>
);
}
}
@@ -1,13 +1,13 @@
import React from "react";
import { PureComponent, PropsWithChildren } from "react";
import { Constants } from "@dndbeyond/character-rules-engine/es";
import { GD_VehicleBlockShellProps } from "../../../utils/Component";
import VehicleBlockShellCap from "../VehicleBlockShellCap";
interface Props extends GD_VehicleBlockShellProps {}
interface Props extends GD_VehicleBlockShellProps, PropsWithChildren {}
export default class VehicleBlockShell extends React.PureComponent<Props> {
export default class VehicleBlockShell extends PureComponent<Props> {
render() {
const { children, displayType } = this.props;