Floor values are set for max health, combat regen, health regen, melee damage, and projectile damage when changing them now.

This commit is contained in:
luisc committed 2021-12-04 12:46:53 -06:00
1 parent cd5b4c0633
commit 3c1bc30e44
6 files changed
+16 -12

No files matched your search

@@ -712,7 +712,7 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
* @param strength The ranged strength
*/
public void setRangedStrength(float strength){
npc.stats.pDamage = strength;
npc.stats.pDamage = (float)(Math.floor(strength));
}
/**
@@ -897,7 +897,7 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
* @param regen The combat health regen per second
*/
public void setCombatRegen(float regen){
npc.stats.combatRegen = regen;
npc.stats.combatRegen = (float)(Math.floor(regen));
}
/**
@@ -911,7 +911,7 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
* @param regen The health regen per second when not in combat
*/
public void setHealthRegen(float regen){
npc.stats.healthRegen = regen;
npc.stats.healthRegen = (float)(Math.floor(regen));
}
@Override