v1.4.0: fixed cursed rings of force still heavily buffing melee attacks
This commit is contained in:
@@ -68,6 +68,8 @@ public class RingOfForce extends Ring {
|
|||||||
|
|
||||||
//same as equivalent tier weapon
|
//same as equivalent tier weapon
|
||||||
private static int min(int lvl, float tier){
|
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(
|
return Math.max( 0, Math.round(
|
||||||
tier + //base
|
tier + //base
|
||||||
lvl //level scaling
|
lvl //level scaling
|
||||||
@@ -76,6 +78,8 @@ public class RingOfForce extends Ring {
|
|||||||
|
|
||||||
//same as equivalent tier weapon
|
//same as equivalent tier weapon
|
||||||
private static int max(int lvl, float tier){
|
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(
|
return Math.max( 0, Math.round(
|
||||||
5*(tier+1) + //base
|
5*(tier+1) + //base
|
||||||
lvl*(tier+1) //level scaling
|
lvl*(tier+1) //level scaling
|
||||||
|
|||||||
Reference in New Issue
Block a user