Skip to content

Commit

Permalink
Added eidon config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Smakhtin committed Nov 8, 2024
1 parent 9a664d5 commit 79e76ac
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dotphin",
"dotphins",
"EDCON",
"eidon",
"engie",
"flowbite",
"fortnite",
Expand Down
28 changes: 26 additions & 2 deletions apps/api/src/routes/dotphin/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -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];
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routes/dotphin/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 79e76ac

Please sign in to comment.