Browse Source

damage calculated as int

combat-2
FatBoy-DOTC 8 months ago
parent
commit
1b384a6d11
  1. 6
      src/engine/objects/AbstractCharacter.java

6
src/engine/objects/AbstractCharacter.java

@ -687,7 +687,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
} }
float skillPercentage, masteryPercentage; float skillPercentage, masteryPercentage;
float mastDam; float mastDam;
float min, max; int min, max;
float speed = 20f; float speed = 20f;
boolean strBased = false; boolean strBased = false;
@ -740,8 +740,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
// mastDam = CharacterSkill.getQuickMastery(this, wb.getMastery()); // mastDam = CharacterSkill.getQuickMastery(this, wb.getMastery());
else else
mastDam = masteryPercentage; mastDam = masteryPercentage;
min = (float) wb.item_weapon_damage.values().toArray()[0]; min = (int)wb.item_weapon_damage.values().toArray()[0];
max = (float) wb.item_weapon_damage.values().toArray()[1]; max = (int)wb.item_weapon_damage.values().toArray()[1];
strBased = wb.item_primary_attr.equals(AttributeType.Strength); strBased = wb.item_primary_attr.equals(AttributeType.Strength);
// //

Loading…
Cancel
Save