Skip to content

Commit

Permalink
feat: update base helpers and add classes, races and specs helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed Oct 6, 2024
1 parent b12cc66 commit 3b87efe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Injectable } from '@nestjs/common';
import { Optional } from '@toxictoast/azkaban-base-types';
import {
WarcraftClassesHelper,
WarcraftRacesHelper,
WarcraftSpecsHelper,
} from '@toxictoast/azkaban-base-helpers';

@Injectable()
export class CharacterService {
Expand All @@ -12,15 +17,15 @@ export class CharacterService {
}

private toRaceString(raceId: number): string {
return 'RACE_' + raceId;
return WarcraftRacesHelper(raceId);
}

private toClassString(classId: number): string {
return 'CLASS_' + classId;
return WarcraftClassesHelper(classId);
}

private toSpecString(specId: number): string {
return 'SPEC_' + specId;
return WarcraftSpecsHelper(specId);
}

// TODO: Add Character DAO & Implementation
Expand Down
24 changes: 19 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@reduxjs/toolkit": "^2.2.7",
"@tailwindcss/forms": "^0.5.8",
"@toxictoast/azkaban-base-domain": "^0.0.2",
"@toxictoast/azkaban-base-helpers": "^0.0.13",
"@toxictoast/azkaban-base-helpers": "^0.0.14",
"@toxictoast/azkaban-base-types": "^0.0.1",
"@toxictoast/azkaban-broker-rabbitmq": "^0.0.44",
"@toxictoast/azkaban-sdk": "^0.0.16",
Expand Down

0 comments on commit 3b87efe

Please sign in to comment.