fix: autotool now finally chooses swords

This commit is contained in:
əlemi 2023-02-20 02:29:15 +01:00
parent ae65fb2593
commit 2c7dbb310a
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -31,6 +31,6 @@ public class Inventory implements ICommons {
.get(Attributes.ATTACK_SPEED);
if (speed_attrs.isEmpty()) return damage;
double speed = Math.abs(speed_attrs.iterator().next().getAmount());
return damage * speed;
return damage / (1. + speed);
}
}