From 79e76aca247fafc73c8347da1a9342fbb22518ce Mon Sep 17 00:00:00 2001 From: Vadim Smakhtin Date: Fri, 8 Nov 2024 11:40:35 +0100 Subject: [PATCH] Added eidon config --- .vscode/settings.json | 1 + apps/api/src/routes/dotphin/config.ts | 28 +++++++++++++++++++++++++-- apps/api/src/routes/dotphin/types.ts | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 45ea3d992..a3e90c018 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,6 +17,7 @@ "dotphin", "dotphins", "EDCON", + "eidon", "engie", "flowbite", "fortnite", diff --git a/apps/api/src/routes/dotphin/config.ts b/apps/api/src/routes/dotphin/config.ts index b6a33bb69..2748862df 100644 --- a/apps/api/src/routes/dotphin/config.ts +++ b/apps/api/src/routes/dotphin/config.ts @@ -3,7 +3,7 @@ import { CollectionConfig } from '../claims/config'; //TODO: Move to shared import { DOTphinLevel } from './types'; import { getRandomInt } from '$lib/utils'; -export const MAX_DOTPHIN_LEVEL = 3; +export const MAX_DOTPHIN_LEVEL = 4; const baseAttributes = [ { trait_type: 'level', value: '1' }, @@ -29,7 +29,7 @@ const orboImages = { ], }; -export const levelNames: DOTphinLevel[] = ['orbo', 'nix', 'naia']; +export const levelNames: DOTphinLevel[] = ['orbo', 'nix', 'naia', 'eidon']; export function getLevelName(level: number): string { return levelNames[level - 1]; @@ -104,6 +104,30 @@ export const evolutionImages: DOTphinEvolutions = { ], }, }, + eidon: { + dotphin: { + air: `${cdnFolder}/dotphin-eidon/dotphins/dotphin-eidon-air.png`, + earth: `${cdnFolder}/dotphin-eidon/dotphins/dotphin-eidon-earth.png`, + water: `${cdnFolder}/dotphin-eidon/dotphins/dotphin-eidon-water.png`, + }, + elements: { + air: [ + `${cdnFolder}/dotphin-eidon/elements/air/element-eidon-air-01.png`, + `${cdnFolder}/dotphin-eidon/elements/air/element-eidon-air-02.png`, + `${cdnFolder}/dotphin-eidon/elements/air/element-eidon-air-03.png`, + ], + earth: [ + `${cdnFolder}/dotphin-eidon/elements/earth/element-eidon-earth-01.png`, + `${cdnFolder}/dotphin-eidon/elements/earth/element-eidon-earth-02.png`, + `${cdnFolder}/dotphin-eidon/elements/earth/element-eidon-earth-03.png`, + ], + water: [ + `${cdnFolder}/dotphin-eidon/elements/water/element-eidon-water-01.png`, + `${cdnFolder}/dotphin-eidon/elements/water/element-eidon-water-02.png`, + `${cdnFolder}/dotphin-eidon/elements/water/element-eidon-water-03.png`, + ], + }, + }, }; export function getDotphinCollectionConfig( diff --git a/apps/api/src/routes/dotphin/types.ts b/apps/api/src/routes/dotphin/types.ts index 15521ddf7..da0537795 100644 --- a/apps/api/src/routes/dotphin/types.ts +++ b/apps/api/src/routes/dotphin/types.ts @@ -13,4 +13,4 @@ export type EvolutionQueueMessage = { export type DOTphinElement = 'air' | 'earth' | 'water'; -export type DOTphinLevel = 'orbo' | 'nix' | 'naia'; +export type DOTphinLevel = 'orbo' | 'nix' | 'naia' | 'eidon';