All Effect Data Loaded From Parser
This commit is contained in:
1 parent
f0efd0c477
commit
3d96e6504e
72 files changed
+584
-535
No files matched your search
@@ -20,6 +20,7 @@ import engine.net.AbstractNetMsg;
|
||||
import engine.net.client.msg.ModifyHealthKillMsg;
|
||||
import engine.net.client.msg.ModifyHealthMsg;
|
||||
import engine.objects.*;
|
||||
import engine.wpak.data.EffectModifier;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
@@ -41,6 +42,10 @@ public class HealthEffectModifier extends AbstractEffectModifier {
|
||||
}
|
||||
}
|
||||
|
||||
public HealthEffectModifier(EffectModifier rs) {
|
||||
super(rs);
|
||||
}
|
||||
|
||||
public static float getMinDamage(float baseMin, float intelligence, float spirit, float focus) {
|
||||
float min = baseMin * (((float) Math.pow(intelligence, 0.75f) * 0.0311f) + (0.02f * (int) focus) + ((float) Math.pow(spirit, 0.75f) * 0.0416f));
|
||||
return (float) ((int) (min + 0.5f)); //round to nearest whole number
|
||||
|
||||
Reference in new issue
Block a user