v1.4.0: fixed cursed rings of force still heavily buffing melee attacks

This commit is contained in:
Evan Debenham
2022-09-29 14:36:09 -04:00
parent f8f5dcdda4
commit 11e394e65e

View File

@@ -68,6 +68,8 @@ public class RingOfForce extends Ring {
//same as equivalent tier weapon
private static int min(int lvl, float tier){
if (lvl <= 0) tier = 1; //tier is forced to 1 if cursed
return Math.max( 0, Math.round(
tier + //base
lvl //level scaling
@@ -76,6 +78,8 @@ public class RingOfForce extends Ring {
//same as equivalent tier weapon
private static int max(int lvl, float tier){
if (lvl <= 0) tier = 1; //tier is forced to 1 if cursed
return Math.max( 0, Math.round(
5*(tier+1) + //base
lvl*(tier+1) //level scaling