From 1b384a6d118a591b6c22c72db36cc6e5f75683e9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 27 Mar 2024 18:10:58 -0500 Subject: [PATCH] damage calculated as int --- src/engine/objects/AbstractCharacter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 360e2f4a..3b69f13e 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -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 { // 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); //