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

Loading…
Cancel
Save