UNKNOWN ability

This commit is contained in:
Kalle
2022-09-03 10:52:08 +03:00
parent 6db1136ac2
commit b94a1beb6f
5 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import type { Ability as AbilityType } from "~/modules/in-game-lists";
import type { AbilityWithUnknown } from "~/modules/in-game-lists/types";
import { abilityImageUrl } from "~/utils/urls";
import { Image } from "./Image";
@@ -12,7 +12,7 @@ export function Ability({
ability,
size,
}: {
ability: AbilityType;
ability: AbilityWithUnknown;
size: keyof typeof sizeMap;
}) {
const sizeNumber = sizeMap[size];

View File

@@ -7,4 +7,7 @@ export type ModeShort = typeof modes[number]["short"];
export type Stage = typeof stages[number];
export type Ability = typeof abilityCodes[number]["name"];
export type AbilityWithUnknown =
| typeof abilityCodes[number]["name"]
| "UNKNOWN";
export type AbilityType = typeof abilityCodes[number]["type"];

View File

@@ -1,5 +1,6 @@
import type { Badge } from "~/db/types";
import type { Ability, ModeShort } from "~/modules/in-game-lists";
import type { ModeShort } from "~/modules/in-game-lists";
import type { AbilityWithUnknown } from "~/modules/in-game-lists/types";
export const SENDOU_INK_DISCORD_URL = "https://discord.gg/sendou";
export const SENDOU_TWITTER_URL = "https://twitter.com/sendouc";
@@ -51,7 +52,7 @@ export const gearImageUrl = (
) => `/img/gear/${gearType}/${gearSplId}`;
export const weaponImageUrl = (weaponSplId: number) =>
`/img/weapons/${weaponSplId}`;
export const abilityImageUrl = (ability: Ability) =>
export const abilityImageUrl = (ability: AbilityWithUnknown) =>
`/img/abilities/${ability}`;
export const modeImageUrl = (mode: ModeShort) => `/img/modes/${mode}`;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB