v2.2.0: stacking healing effects is now a bit more generous
This commit is contained in:
+4
-5
@@ -72,11 +72,10 @@ public class Healing extends Buff {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setHeal(int amount, float percentPerTick, int flatPerTick){
|
public void setHeal(int amount, float percentPerTick, int flatPerTick){
|
||||||
if (amount > healingLeft) {
|
//multiple sources of healing do not overlap, but do combine the best of their properties
|
||||||
healingLeft = amount;
|
healingLeft = Math.max(healingLeft, amount);
|
||||||
percentHealPerTick = percentPerTick;
|
percentHealPerTick = Math.max(percentHealPerTick, percentPerTick);
|
||||||
flatHealPerTick = flatPerTick;
|
flatHealPerTick = Math.max(flatHealPerTick, flatPerTick);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void increaseHeal( int amount ){
|
public void increaseHeal( int amount ){
|
||||||
|
|||||||
Reference in New Issue
Block a user