-
Notifications
You must be signed in to change notification settings - Fork 6
Generify talisman code #351
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
|
Todo: generify the code a bit more into a InventoryEffectItem for core |
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.
looks good otherwise but not tested ingame, it's more of a refactor and I assume you have
src/main/java/io/github/pylonmc/pylon/base/content/tools/base/Talisman.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/tools/HealthTalisman.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/tools/base/Talisman.java
Outdated
Show resolved
Hide resolved
|
Whats with all the extra commits |
Master must've gotten merged into this pr but not the base, not at pc rn so can't fix |
|
Ight, will review after that then |
|
Needs rebase or smth; diff is messed up |
done |
| public abstract int getLevel(); | ||
|
|
||
| /** | ||
| * Get the generic key of the talisman, should be the same between all talismans of the same type, ie all health talisman levels have the same return value for this. |
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.
| * Get the generic key of the talisman, should be the same between all talismans of the same type, ie all health talisman levels have the same return value for this. | |
| * Get the generic key of the talisman, should be the same between all talismans of the same type, e.x. all health talisman levels have the same return value for this. |
Nit
In preparation for #336