Skip to content

Commit

Permalink
Lune biome should also use yellow instead of red for attack outlines.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: b45aa0e0df043d760fd1d32f653a80ed525d6418
  • Loading branch information
cpojer committed May 9, 2024
1 parent 9b223e2 commit a6dc1e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions hera/Radius.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ const Item = memo(function Item({
itemStyle,
...borderStyles,
dim && dimStyle,
type === RadiusType.Attack && biome === Biome.Volcano
? volcanoAttackStyle
type === RadiusType.Attack &&
(biome === Biome.Volcano || biome === Biome.Luna)
? alternateAttackStyle
: colors[type],
isEscort && animateStyle,
)}
Expand Down Expand Up @@ -397,7 +398,7 @@ const colors: Record<RadiusType, string> = {
`,
};

const volcanoAttackStyle = css`
const alternateAttackStyle = css`
${vars.set('color', '255, 215, 0')}
`;

Expand Down
6 changes: 3 additions & 3 deletions hera/Unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ export default function UnitTile({
player === 0 && neutralStyle,
(maybeOutline || highlightOutline) && maybeOutlineStyle,
outline === 'attack'
? biome === Biome.Volcano
? volcanoAttackOutlineStyle
? biome === Biome.Volcano || biome === Biome.Luna
? alternateAttackOutlineStyle
: attackOutlineStyle
: outline === 'defense'
? defenseOutlineStyle
Expand Down Expand Up @@ -1037,7 +1037,7 @@ const brightStyle = css`
const attackOutlineStyle = css`
${vars.set('drop-shadow-color', 'rgb(210, 18, 24)')}
`;
const volcanoAttackOutlineStyle = css`
const alternateAttackOutlineStyle = css`
${vars.set('drop-shadow-color', 'rgb(255, 215, 0)')}
`;
const defenseOutlineStyle = css`
Expand Down

0 comments on commit a6dc1e2

Please sign in to comment.