enefel 2.9.1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +7 -0
- package/2025/newSkills.ts +769 -0
- package/2025/raceMigration.ts +66 -0
- package/2025/rawTeamsData.ts +1726 -0
- package/2025/skillMigration.ts +155 -0
- package/avatarsSeason.ts +61 -0
- package/career.ts +64 -8
- package/career2025.ts +2752 -0
- package/dice.ts +40 -8
- package/dist/2025/newSkills.d.ts +10 -0
- package/dist/2025/newSkills.js +663 -0
- package/dist/2025/raceMigration.d.ts +10 -0
- package/dist/2025/raceMigration.js +53 -0
- package/dist/2025/rawTeamsData.d.ts +12 -0
- package/dist/2025/rawTeamsData.js +1699 -0
- package/dist/2025/skillMigration.d.ts +31 -0
- package/dist/2025/skillMigration.js +95 -0
- package/dist/avatarsSeason.d.ts +22 -0
- package/dist/avatarsSeason.js +54 -0
- package/dist/career.d.ts +13 -4
- package/dist/career.js +36 -7
- package/dist/career2025.d.ts +192 -0
- package/dist/career2025.js +2611 -0
- package/dist/dice.d.ts +10 -2
- package/dist/dice.js +31 -8
- package/dist/index.d.ts +17 -2
- package/dist/index.js +44 -5
- package/dist/move.d.ts +6 -2
- package/dist/move.js +35 -0
- package/dist/package-lock.json +913 -7
- package/dist/package.json +6 -2
- package/dist/pitch.d.ts +10 -1
- package/dist/pitch.js +16 -0
- package/dist/player.d.ts +8 -4
- package/dist/player.js +104 -20
- package/dist/position.d.ts +4 -0
- package/dist/position.js +17 -1
- package/dist/race.d.ts +23 -12
- package/dist/race.js +210 -2
- package/dist/skill.d.ts +26 -3
- package/dist/skill.js +199 -81
- package/dist/skills/hitAndRun.d.ts +10 -0
- package/dist/skills/hitAndRun.js +12 -0
- package/dist/skills/safePairOfHands.d.ts +28 -0
- package/dist/skills/safePairOfHands.js +18 -0
- package/dist/skills/sidestep.d.ts +21 -0
- package/dist/skills/sidestep.js +20 -0
- package/dist/status.d.ts +4 -1
- package/dist/status.js +14 -4
- package/dist/store.d.ts +3 -0
- package/dist/store.js +3 -0
- package/dist/teams/career_v2025.d.ts +246 -0
- package/dist/teams/career_v2025.js +3512 -0
- package/dist/teams/convert-csv-to-career.d.ts +1 -0
- package/dist/teams/convert-csv-to-career.js +1085 -0
- package/dist/types/models.d.ts +4 -0
- package/index.ts +57 -4
- package/jest.config.js +3 -0
- package/move.ts +50 -2
- package/npm-login.sh +0 -0
- package/package.json +6 -2
- package/pitch.ts +22 -0
- package/player.ts +105 -22
- package/position.ts +16 -0
- package/race.ts +227 -13
- package/skill.ts +217 -83
- package/skills/hitAndRun.ts +14 -0
- package/skills/safePairOfHands.ts +33 -0
- package/skills/sidestep.ts +25 -0
- package/status.ts +15 -3
- package/store.ts +3 -0
- package/teams/README.md +53 -0
- package/teams/clean-stats.js +54 -0
- package/teams/convert-csv-to-career.ts +1209 -0
- package/teams/players_clean.csv +107 -0
- package/teams/players_next.csv +21 -0
- package/types/models.ts +4 -0
package/dice.ts
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AVATAR_RARITY } from "./career";
|
|
2
|
+
|
|
3
|
+
export type DiceSkin = {
|
|
4
|
+
id: string;
|
|
5
|
+
color: string;
|
|
6
|
+
background: string;
|
|
7
|
+
price: number;
|
|
8
|
+
season?: number;
|
|
9
|
+
rarity?: AVATAR_RARITY;
|
|
6
10
|
};
|
|
7
11
|
|
|
8
|
-
const
|
|
9
|
-
|
|
12
|
+
const DICE_LIST: DiceSkin[] = [
|
|
13
|
+
{ id: "default", color: "#000000", background: "#ffffff", price: 0 },
|
|
14
|
+
{
|
|
15
|
+
id: "s17-blood-debug",
|
|
16
|
+
color: "#ffffff",
|
|
17
|
+
background: "#cc0000",
|
|
18
|
+
price: 30,
|
|
19
|
+
season: 17,
|
|
20
|
+
rarity: AVATAR_RARITY.COMMUN,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "s19-blood",
|
|
24
|
+
color: "#ffffff",
|
|
25
|
+
background: "#cc0000",
|
|
26
|
+
price: 30,
|
|
27
|
+
season: 19,
|
|
28
|
+
rarity: AVATAR_RARITY.COMMUN,
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const getDiceById = (id: string | null | undefined): DiceSkin => {
|
|
33
|
+
if (!id) return DICE_LIST[0];
|
|
34
|
+
return DICE_LIST.find((d) => d.id === id) ?? DICE_LIST[0];
|
|
10
35
|
};
|
|
11
36
|
|
|
12
|
-
|
|
37
|
+
// kept for backwards compatibility
|
|
38
|
+
const getPlayerDice = () => DICE_LIST[0];
|
|
39
|
+
|
|
40
|
+
export { DICE_LIST, getDiceById, getPlayerDice };
|
|
41
|
+
|
|
42
|
+
// TODO: when RARE or UNIQUE dice are added, add access conditions:
|
|
43
|
+
// - StoreDice.tsx: filter dice based on player eligibility before displaying
|
|
44
|
+
// - BuyService.js: enforce the same check server-side before allowing purchase
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type SkillFamily = "Agility" | "Devious" | "General" | "Mutation" | "Passing" | "Strength" | "Traits";
|
|
2
|
+
export type SkillMode = "Active" | "Passive";
|
|
3
|
+
export type NewSkill = {
|
|
4
|
+
name: string;
|
|
5
|
+
family: SkillFamily;
|
|
6
|
+
mode: SkillMode;
|
|
7
|
+
summary: string;
|
|
8
|
+
elite?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const newSkills: NewSkill[];
|