-
Notifications
You must be signed in to change notification settings - Fork 6
Wand Cap and Core Refactor #18
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
Conversation
…ce the LP cost for the blood cores' regen and cause the Weakness 3 effect when used as a weapon just like the Alchemical Caps.
Blood Wood Cores already match the .startsWith("blood") for the Weakness check and have their own logic for blood iron caps, so nothing needs to be changed to support them.
Clean up c-style array declarations Use enhanced for loops Rename ignored exception variables and remove redundant returns
Nikolay-Sitnikov
left a comment
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 might also want to put the ItemWandCasting into a variable in these functions, but that's up to you.
src/main/java/fox/spiteful/forbidden/items/wands/BloodStaffUpdate.java
Outdated
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/BloodStaffUpdate.java
Outdated
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/BloodWandUpdate.java
Outdated
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/CreativeWandUpdate.java
Outdated
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/ManaStaffUpdate.java
Outdated
Show resolved
Hide resolved
Nikolay-Sitnikov
left a comment
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.
Whoops, chose wrong option while filing the review.
…w superclass Cache max vis checks Unroll some if blocks Replace Throwable with Exception Fix position rounding for tainted rod Use ternary operators where relevant Replace repeated profane contract requests with a local variable
src/main/java/fox/spiteful/forbidden/items/wands/ProfaneWandUpdate.java
Outdated
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/InfernalWandUpdate.java
Outdated
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/InfernalWandUpdate.java
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/CreativeWandUpdate.java
Show resolved
Hide resolved
src/main/java/fox/spiteful/forbidden/items/wands/ManaStaffUpdate.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Nikolay S. <nicksitnikov@gmail.com>
Some still check against the name, notably blood_iron from Blood Arsenal and ones that check if the name *starts with* a certain phrase, like .startsWith("blood") to match multiple different cores.
Nikolay-Sitnikov
left a comment
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.
Other than one code design question, all is good.
|
|
||
| @Override | ||
| protected int regenTimer() { | ||
| return 40; |
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 regenTimer should be a field that is set in the base constructor, instead of being an overrideable method?
Blood Iron Caps now reduce the LP cost for the blood cores' regen and cause the Weakness 3 effect when used as a weapon, just like the Alchemical Caps.
Blood Wood Cores already match the .startsWith("blood") for the Weakness check and have their own logic for Blood Iron Caps, so nothing needs to be changed to support them.
Also cleaned up all of the wand update classes.