Skip to content

Commit

Permalink
- fix death dialog
Browse files Browse the repository at this point in the history
- fix "You Coward! on attack
- cleanup files
  • Loading branch information
starknetdev committed Oct 10, 2023
1 parent 15107e2 commit b7b546e
Show file tree
Hide file tree
Showing 29 changed files with 18 additions and 106,390 deletions.
1 change: 1 addition & 0 deletions ui/src/app/components/ArcadeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export const ArcadeDialog = () => {
<PixelatedImage
src={"/scenes/intro/arcade-account.png"}
pixelSize={5}
pulsate={true}
/>
<h3 className="text-lg sm:text-3xl loading-ellipsis absolute top-2/3 sm:top-1/2 flex items-center justify-center w-full">
{isSettingPermissions
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/components/CountDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useEffect, useRef } from "react";
import { useCountUp } from "react-countup";
import { useState } from "react";
import { penaltyTime } from "../lib/constants";
import { convertTime } from "../lib/utils";

export const HealthCountDown = ({ health }: any) => {
const countUpRef = useRef(null);
Expand Down
16 changes: 0 additions & 16 deletions ui/src/app/components/GameData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export type Dict<T> = { [key: number]: T };
export type DictString<T> = { [key: string]: T };

export class GameData {
CONTRACTS: DictString<string>;
BEASTS: Dict<string>;
BEAST_TIERS: Dict<number>;
BEAST_TYPES: Dict<string>;
Expand Down Expand Up @@ -34,21 +33,6 @@ export class GameData {
QUERY_KEYS: DictString<string>;

constructor() {
this.CONTRACTS = {
goerliAdventurer:
"0x035d755a23ec72df90819f584d9a1849bbc21fa77f96d25e03f1736883895248",
goerliBeast:
"0x000f4dbfe5d15792aa91025e42ee1d74c22bdeb1eef0b9bc19a37216377290c1",
goerliLoot:
"0x065669e15c8f1a7f17b7062e4eb1b709b922b931b93c59577f1848a85c30ab1f",
devnetAdventurer:
"0x005160ffc8910638190fbe80296932ce90be9091f622b30b299ed81c7be7d359",
devnetBeast:
"0x061533cb6f21d230aeef9ac2aecf0c70679d1d50d9d61f11bd6a6113cf3d7d85",
devnetLoot:
"0x040583a9197a52f289a5f6f03981ace0b3dfcc7496137fa292ec67796be22766",
};

this.BEASTS = {
1: "Warlock",
2: "Typhon",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/components/TopUpDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface TopUpDialogProps {
}

export const TopUpDialog = ({ token }: TopUpDialogProps) => {
const { account: walletAccount, address, connector } = useAccount();
const { account: walletAccount, address } = useAccount();
const { connect, available } = useConnectors();
const showTopUpDialog = useUIStore((state) => state.showTopUpDialog);
const topUpAccount = useUIStore((state) => state.topUpAccount);
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/components/actions/DiscoveryDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
GiSandsOfTimeIcon,
TwoCoinIcon,
HealthPotionIcon,
GiStarsStackIcon,
} from "../icons/Icons";
import { Discovery } from "@/app/types";

Expand Down
101 changes: 0 additions & 101 deletions ui/src/app/components/actions/KillAdventurer.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion ui/src/app/components/adventurer/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Adventurer, NullAdventurer, NullItem } from "../../types";
import { HeartIcon, CoinIcon, QuestionMarkIcon } from "../icons/Icons";
import { ItemDisplay } from "./ItemDisplay";
import LevelBar from "./LevelBar";
import { getRealmNameById, getKeyFromValue } from "../../lib/utils";
import { getKeyFromValue } from "../../lib/utils";
import { useQueriesStore } from "../../hooks/useQueryStore";
import useUIStore from "../../hooks/useUIStore";
import { Item } from "@/app/types";
Expand Down
59 changes: 0 additions & 59 deletions ui/src/app/components/adventurer/TopInfo.tsx

This file was deleted.

6 changes: 4 additions & 2 deletions ui/src/app/components/animations/PixelatedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ interface PixelatedImageProps {
pixelSize: number;
setImageLoading?: (imageLoaded: boolean) => void;
fill?: boolean;
pulsate?: boolean;
}

const PixelatedImage: React.FC<PixelatedImageProps> = ({
src,
pixelSize,
setImageLoading,
fill,
pulsate,
}) => {
const canvasRef = useRef<HTMLCanvasElement>(null);
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
Expand Down Expand Up @@ -84,7 +86,7 @@ const PixelatedImage: React.FC<PixelatedImageProps> = ({
}

setTimeout(() => {
setImageLoading && setImageLoading(true);
setImageLoading && setImageLoading(false);
}, maxTimeout);
};
};
Expand All @@ -93,7 +95,7 @@ const PixelatedImage: React.FC<PixelatedImageProps> = ({

return (
<canvas
className="absolute animate-pulse"
className={`absolute ${pulsate ? "animate-pulse" : ""}`}
ref={canvasRef}
width={dimensions.width}
height={dimensions.height}
Expand Down
58 changes: 0 additions & 58 deletions ui/src/app/components/archived/ANSIGenerator.tsx

This file was deleted.

Loading

1 comment on commit b7b546e

@vercel
Copy link

@vercel vercel bot commented on b7b546e Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.