Skip to content

Commit

Permalink
Do not print the damage chart note once for each weapon.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 07703b0dde7de268a544996ceae51f6fdc8e2b6a
  • Loading branch information
cpojer committed Nov 1, 2024
1 parent 6c33c33 commit 22ca9d4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions hera/card/UnitCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,26 @@ export default memo(function UnitCard({
unit={unit}
vector={vector}
/>
{!process.env.IS_DEMO && (
<p className={lightColorStyle}>
<fbt desc="Explanation for damage information">
Note: Cover, status effects and unit defense affect the inflicted
damage. See the{' '}
<fbt:param name="link">
{App.canQuit ? (
<InlineLink to={damageChartRoute}>
<fbt desc="Damage chart link name">Damage Chart</fbt>
</InlineLink>
) : (
<InlineLink href={damageChartRoute} target="blank">
<fbt desc="Damage chart link name">Damage Chart</fbt>
</InlineLink>
)}
</fbt:param>{' '}
for more information.
</fbt>
</p>
)}
<UnitMovement
biome={biome}
movementType={info.movementType}
Expand Down Expand Up @@ -515,26 +535,6 @@ const Weapon = memo(function WeaponAttack({
) : null;
})}
</Stack>
{!process.env.IS_DEMO && (
<p className={lightColorStyle}>
<fbt desc="Explanation for damage information">
Note: Cover, status effects and unit defense affect the inflicted
damage. See the{' '}
<fbt:param name="link">
{App.canQuit ? (
<InlineLink to={damageChartRoute}>
<fbt desc="Damage chart link name">Damage Chart</fbt>
</InlineLink>
) : (
<InlineLink href={damageChartRoute} target="blank">
<fbt desc="Damage chart link name">Damage Chart</fbt>
</InlineLink>
)}
</fbt:param>{' '}
for more information.
</fbt>
</p>
)}
</Stack>
</Tick>
);
Expand Down

0 comments on commit 22ca9d4

Please sign in to comment.