-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: use product in battle #90
Conversation
|
||
switch (product) { | ||
case EProduct.HERB: | ||
attacker.healthPoints += 10; |
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.
Perhaps scale with product level? 🤔
…ain code logix without selected item before starting fight
src/user/schemas/userPvp.schema.ts
Outdated
getters: true, | ||
}, | ||
}) | ||
export class ActiveEffect { |
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.
is this schema still needed?
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.
no it was just an easy way to use the schema instead of using an interface when copying the user pvp object into the pvp battle fixed now
No description provided.