Skip to content

Commit

Permalink
feat: Added DinoRpg goals (except ES translations)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenoo committed Nov 4, 2023
1 parent 8528395 commit 3a924db
Show file tree
Hide file tree
Showing 6 changed files with 2,988 additions and 24 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,25 @@ npm i twinoid-goals
## Usage

```ts
import { TwinoidGoals } from 'twinoid-goals';
import { alphabounce } from 'twinoid-goals';

console.log(TwinoidGoals.alphabounce.totalPoints);
const unlockedGoals = alphabounce.getUnlocked('planets', 6);
```

## More examples

### xxx
### Get all goals for a specific game

```ts
import { alphabounce } from 'twinoid-goals';

const { goals } = alphabounce;
```

### Get all unlockable goals for an ID

```ts
import { alphabounce } from 'twinoid-goals';

const planets = alphabounce.get('planets');
```
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"standard-version": {
"scripts": {
"prerelease": "npm run build && git add dist"
}
}
}
12 changes: 6 additions & 6 deletions src/AlphaBounceGoals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const AlphaBounceGoals: Record<AlphaBounceGoalName, Goal> = {
de: 'Erkundete Planeten',
es: 'Planètes explorées',
},
rare: false,
rare: 0,
unlocks: [
{ count: 1, points: 10, icon: 'small_forum_read.gif' },
{ count: 2, points: 10 },
Expand Down Expand Up @@ -53,7 +53,7 @@ export const AlphaBounceGoals: Record<AlphaBounceGoalName, Goal> = {
de: 'Wieder auf der Erde',
es: 'Terre retrouvée',
},
rare: false,
rare: 0,
unlocks: [
{
count: 1,
Expand All @@ -76,7 +76,7 @@ export const AlphaBounceGoals: Record<AlphaBounceGoalName, Goal> = {
de: 'Erledigte Missionen',
es: 'missions accomplies',
},
rare: true,
rare: 1,
unlocks: [
{ count: 1, points: 10 },
{ count: 2, points: 10 },
Expand Down Expand Up @@ -126,7 +126,7 @@ export const AlphaBounceGoals: Record<AlphaBounceGoalName, Goal> = {
de: 'Fortschritt',
es: 'niveaux réussis',
},
rare: false,
rare: 0,
unlocks: [
{
count: 10,
Expand Down Expand Up @@ -188,7 +188,7 @@ export const AlphaBounceGoals: Record<AlphaBounceGoalName, Goal> = {
de: 'Dienstgrad ESCORP',
es: 'Grade ESCORP atteint',
},
rare: true,
rare: 1,
unlocks: [
{ count: 1, points: 5, icon: 'rank_1.gif' },
{ count: 2, points: 5, icon: 'rank_2.gif' },
Expand All @@ -212,7 +212,7 @@ export const AlphaBounceGoals: Record<AlphaBounceGoalName, Goal> = {
de: 'Dienstgrad FURI',
es: 'Grade FURI atteint',
},
rare: true,
rare: 1,
unlocks: [
{ count: 1, points: 5, icon: 'rank_furi_1.gif' },
{ count: 2, points: 5, icon: 'rank_furi_2.gif' },
Expand Down
Loading

0 comments on commit 3a924db

Please sign in to comment.