Skip to content

Commit

Permalink
sometimes i update the game
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed Aug 7, 2024
1 parent a89ac82 commit 41329b6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/combat/stance-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const stanceNameMap: { [x in HeroStance]?: string } = {
[HeroStance.Fire]: "Fireball",
[HeroStance.Ice]: "Blizzard",
[HeroStance.Lightning]: "Lightning Bolt",
[HeroStance.Blight]: "Wrathful",
};

const stanceDescriptions: { [x in HeroStance]: string } = {
Expand All @@ -23,6 +24,9 @@ const stanceDescriptions: { [x in HeroStance]: string } = {
[HeroStance.Fire]: "Converts 20% of magic damage into Fire damage.",
[HeroStance.Ice]: "Converts 20% of magic damage into Ice damage.",
[HeroStance.Lightning]: "Converts 20% of magic damage into Lightning damage.",

[HeroStance.Sunder]: "Converts 50% of damage into Physical damage.",
[HeroStance.Blight]: "Changes base damage type of smite from Holy to Blight.",
};

export function StanceSelector(props: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function Footer(): JSX.Element {
<Typography variant="h1" sx={visuallyHidden}>
Logout
</Typography>
<LogoutButton />
<LogoutButton sx={visuallyHidden} />
</React.Fragment>
);
}
5 changes: 5 additions & 0 deletions src/components/login-or-signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export function LoginOrSignup(): JSX.Element {
</Typography>
</React.Fragment>
)}

<Typography>
This game is in no way monetized; there are no ads, tracking, cookies,
analytics, or transactions. I just like making games.
</Typography>
</Container>
);
}
5 changes: 4 additions & 1 deletion src/components/logout-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import { useRouter } from "next/router";
import NoSsr from "@mui/material/NoSsr";
import Button from "@mui/material/Button";

import { SxProps } from "@mui/material";

import { useToken } from "src/token";

export function LogoutButton(): JSX.Element | null {
export function LogoutButton({ sx }: { sx?: SxProps }): JSX.Element | null {
const router = useRouter();
const client = useApolloClient();

Expand All @@ -30,6 +32,7 @@ export function LogoutButton(): JSX.Element | null {
variant="contained"
disableElevation
onClick={handleLogout}
sx={sx}
>
Logout
</Button>
Expand Down
1 change: 1 addition & 0 deletions src/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default function Home(): JSX.Element {
This is a text-based RPG where you can fight monsters, level
up, and explore the world. The game is my passion project
and is actively being developed at almost all times.
Sometimes.
</Typography>

<Typography variant="h4" sx={visuallyHidden}>
Expand Down

0 comments on commit 41329b6

Please sign in to comment.