add game tracker with owned pokemon data and call of duty mastery
All checks were successful
Test and deploy staging / staging (push) Successful in 18s
All checks were successful
Test and deploy staging / staging (push) Successful in 18s
Fold catchemall into /projects/game-tracker (old URL redirects) and add Call of Duty tracking for Black Ops through WWII. - Pokémon catalog is now owned: locations, encounters and per-game evolution methods are built from the pinned PokéAPI snapshot and seeded. - Pokémon you can evolve or breed in a game count as obtainable; mythicals without another route are marked event-only. - Detail dialog with evolution chain and where to find it, location pages with admin notes and pictures, and admin corrections that survive reseeds. - Call of Duty weapons, milestones and Steam achievements per game, with derived Diamond / Dark Matter / Solar / Black Sky / Chrome tiers. - New migration (db:migrate:game-tracker), seeds (db:seed, db:seed:cod) and deploy preflight checks for them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// How a Pokémon can be obtained in a game. Missing rows mean no source record;
|
||||
// they do not prove absence. Unknown rows establish presence, not availability.
|
||||
// New values go at the end: the client receives availability as an index.
|
||||
// Shared between the db schema and the client, which receives availability as
|
||||
// an index into this array to keep the page payload small.
|
||||
export const availabilityValues = [
|
||||
@@ -7,7 +8,26 @@ export const availabilityValues = [
|
||||
'trade_only',
|
||||
'transfer_only',
|
||||
'event_only',
|
||||
'unknown'
|
||||
'unknown',
|
||||
'evolve',
|
||||
'breed'
|
||||
] as const;
|
||||
|
||||
export type Availability = (typeof availabilityValues)[number];
|
||||
|
||||
export const availabilityLabels: Record<Availability, string> = {
|
||||
catchable: 'catch it',
|
||||
trade_only: 'trade only',
|
||||
transfer_only: 'transfer only',
|
||||
event_only: 'event only',
|
||||
unknown: 'not confirmed',
|
||||
evolve: 'evolve it',
|
||||
breed: 'breed it'
|
||||
};
|
||||
|
||||
// Obtainable inside the game itself, so it counts toward progress and can be ticked.
|
||||
export const obtainableAvailability: ReadonlySet<Availability> = new Set([
|
||||
'catchable',
|
||||
'evolve',
|
||||
'breed'
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user