Fixed Heroic, obsidiorite #2

Closed
Jotunn wants to merge 1 commits from Jotunn/TAIGA-Obsidiorite-Heroic-Fixes:master into master
First-time contributor
No description provided.
Owner

Hi!

Good to see you got here in the end :)

Just some questions (see review below).

Hi! Good to see you got here in the end :) Just some questions (see review below).
anonfunc added the
changes requested
label 2019-10-13 22:48:05 +02:00
anonfunc self-assigned this 2019-10-13 22:51:02 +02:00
anonfunc requested changes 2019-10-13 22:53:08 +02:00
anonfunc left a comment
Owner

Is META-INF/MANIFEST.MF required? Did I missing something in forge?

Is META-INF/MANIFEST.MF required? Did I missing something in forge?
@@ -33,2 +26,4 @@
} else return super.damage(tool, player, target, damage, newDamage * 0.9f, isCritical);
}
private int noLessThanOne(int input){
Owner

You don't need that, just use Math.max(durabilitymax - durability - 1, 1).

You don't need that, just use ```Math.max(durabilitymax - durability - 1, 1)```.
Owner

On second thought, maybe that whole logic is flawed. durabilitymax - durability should always be >= 0, right? So just changing that to Math.max(durabilitymax - durability, 1) would do it, if I'm not mistaken.

We need to be careful here to not change behaviour accidentally, since this part was written by Zkaface, so I'm not quite sure about the mechanics.

On second thought, maybe that whole logic is flawed. ```durabilitymax - durability``` should always be >= 0, right? So just changing that to ```Math.max(durabilitymax - durability, 1)``` would do it, if I'm not mistaken. We need to be careful here to not change behaviour accidentally, since this part was written by Zkaface, so I'm not quite sure about the mechanics.
Owner

Closing this as stale.

Closing this as stale.
anonfunc closed this pull request 2024-06-16 13:10:49 +02:00

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TAIGA/TAIGA#2
No description provided.