Skip to content

Commit 11e394e

Browse files
committed
v1.4.0: fixed cursed rings of force still heavily buffing melee attacks
1 parent f8f5dcd commit 11e394e

File tree

1 file changed

+4
-0
lines changed
  • core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/rings

1 file changed

+4
-0
lines changed

core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/rings/RingOfForce.java

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public static int damageRoll( Hero hero ){
6868

6969
//same as equivalent tier weapon
7070
private static int min(int lvl, float tier){
71+
if (lvl <= 0) tier = 1; //tier is forced to 1 if cursed
72+
7173
return Math.max( 0, Math.round(
7274
tier + //base
7375
lvl //level scaling
@@ -76,6 +78,8 @@ private static int min(int lvl, float tier){
7678

7779
//same as equivalent tier weapon
7880
private static int max(int lvl, float tier){
81+
if (lvl <= 0) tier = 1; //tier is forced to 1 if cursed
82+
7983
return Math.max( 0, Math.round(
8084
5*(tier+1) + //base
8185
lvl*(tier+1) //level scaling

0 commit comments

Comments
 (0)