-
-
Notifications
You must be signed in to change notification settings - Fork 164
feat(trainer): add trainer support #3653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
previously, this column only showed a few characters and was not readable
| export class SelectTrainerComponent extends SelectComponent<Trainer> { | ||
| protected override readonly entityTable = TRAINER_TABLE; | ||
| protected override readonly entityIdField = TRAINER_ID; | ||
| readonly customStartingId = 1000000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could set it as protected
| } | ||
| }, | ||
| "resolutions": { | ||
| "ora": "5.4.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? are you sure that it should not be under overrides?
|
|
||
| export class Trainer extends TableRow { | ||
| Id: number = 0; | ||
| Type: number = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is 2? do we have a real type for this Type field? let's use a const enum?
Requires:
fix(Core/Creature): port TC handling of Trainers azerothcore-wotlk#23040
Closes npc_trainer align AC #3644
This is missing tests, and the PR is incompatible with the below (the other needs to be updated if either is merged)