New source found from dndbeyond.com
This commit is contained in:
+4
-4
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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">
|
||||
|
||||
+2
-2
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+8
-8
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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">
|
||||
|
||||
+2
-2
@@ -54,9 +54,9 @@ export default class VehicleBlockHeader extends React.PureComponent<Props> {
|
||||
}
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<>
|
||||
(<InlineSeparatedNodes nodes={metaTextSizeNodes} />)
|
||||
</React.Fragment>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
+6
-6
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user