Browse Source

damage calculated as int

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

5
src/engine/objects/AbstractCharacter.java

@ -740,8 +740,9 @@ 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 = (int)wb.item_weapon_damage.values().toArray()[0]; int[] damages = (int[])wb.item_weapon_damage.values().toArray()[0];
max = (int)wb.item_weapon_damage.values().toArray()[1]; min = damages[0];
max = damages[1];
strBased = wb.item_primary_attr.equals(AttributeType.Strength); strBased = wb.item_primary_attr.equals(AttributeType.Strength);
// //

Loading…
Cancel
Save