|
1 | 1 | import { DICTIONARY, ScrabbleMods } from '@/ps/games/scrabble/constants'; |
2 | 2 |
|
| 3 | +import type { BaseModEntry } from '@/ps/games/mods'; |
3 | 4 | import type { LetterMetadata, WordScore } from '@/ps/games/scrabble/types'; |
4 | 5 |
|
5 | 6 | export const ScrabbleModData: Record< |
6 | 7 | ScrabbleMods, |
7 | | - { name: string; dict: DICTIONARY; aliases?: string[]; points?: LetterMetadata; counts?: LetterMetadata } |
| 8 | + BaseModEntry & { dict: DICTIONARY; points?: LetterMetadata; counts?: LetterMetadata } |
8 | 9 | > = { |
9 | 10 | [ScrabbleMods.CSW19]: { |
| 11 | + id: ScrabbleMods.CSW19, |
10 | 12 | name: 'CSW19', |
| 13 | + desc: 'Base Scrabble with the CSW19 dictionary.', |
11 | 14 | dict: DICTIONARY.CSW19, |
12 | 15 | }, |
13 | 16 | [ScrabbleMods.CSW21]: { |
| 17 | + id: ScrabbleMods.CSW21, |
14 | 18 | name: 'CSW21', |
| 19 | + desc: 'Base Scrabble with the CSW21 dictionary.', |
15 | 20 | dict: DICTIONARY.CSW21, |
16 | 21 | }, |
17 | 22 | [ScrabbleMods.CSW24]: { |
| 23 | + id: ScrabbleMods.CSW24, |
18 | 24 | name: 'CSW24', |
| 25 | + desc: 'Base Scrabble with the CSW24 dictionary.', |
19 | 26 | dict: DICTIONARY.CSW24, |
20 | 27 | aliases: ['current'], |
21 | 28 | }, |
22 | 29 | [ScrabbleMods.ODS8]: { |
| 30 | + id: ScrabbleMods.ODS8, |
23 | 31 | name: 'ODS8', |
| 32 | + desc: 'French variant of Scrabble.', |
24 | 33 | dict: DICTIONARY.ODS8, |
25 | 34 | counts: { |
26 | 35 | A: 9, |
@@ -83,16 +92,22 @@ export const ScrabbleModData: Record< |
83 | 92 | aliases: ['ods', 'french', 'francais', 'franais'], |
84 | 93 | }, |
85 | 94 | [ScrabbleMods.CLABBERS]: { |
| 95 | + id: ScrabbleMods.CLABBERS, |
86 | 96 | name: 'Clabbers', |
| 97 | + desc: 'Scrabble, but all anagrams are valid, too!', |
87 | 98 | dict: DICTIONARY.CLABBERS, |
88 | 99 | }, |
89 | 100 | [ScrabbleMods.POKEMON]: { |
| 101 | + id: ScrabbleMods.POKEMON, |
90 | 102 | name: 'Pokémon', |
| 103 | + desc: 'Scrabble but Pokéwords are allowed (with bonus scoring)!', |
91 | 104 | dict: DICTIONARY.CSW24, |
92 | 105 | aliases: ['pokemod', 'pokmon', 'pkmn', 'mons'], |
93 | 106 | }, |
94 | 107 | [ScrabbleMods.CRAZYMONS]: { |
| 108 | + id: ScrabbleMods.CRAZYMONS, |
95 | 109 | name: 'CRAZYMONS', |
| 110 | + desc: 'PokéScrabble, but INsANe BONuSEs!', |
96 | 111 | dict: DICTIONARY.CSW24, |
97 | 112 | aliases: ['crazy'], |
98 | 113 | }, |
|
0 commit comments