From 7c144a329c71d62bda885596f081fe1f51361826 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Wed, 24 Apr 2019 15:37:35 -0700 Subject: [PATCH] Fixes armorclass showing as modified when original game does not in this case --- core/src/com/riiablo/CharData.java | 4 +++- core/src/com/riiablo/item/Stat.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/com/riiablo/CharData.java b/core/src/com/riiablo/CharData.java index 6e77cec0..e507d9f7 100644 --- a/core/src/com/riiablo/CharData.java +++ b/core/src/com/riiablo/CharData.java @@ -228,7 +228,9 @@ public class CharData { // This appears to be hard-coded in the original client int dex = stats.get(Stat.dexterity).value(); - stats.aggregate().get(Stat.armorclass).add(dex / 4); + Stat armorclass = stats.get(Stat.armorclass); + armorclass.add(dex / 4); + armorclass.modified = false; skills.clear(); skills.putAll(defaultSkills); diff --git a/core/src/com/riiablo/item/Stat.java b/core/src/com/riiablo/item/Stat.java index 2a8cd302..294f85e9 100644 --- a/core/src/com/riiablo/item/Stat.java +++ b/core/src/com/riiablo/item/Stat.java @@ -487,7 +487,7 @@ public class Stat implements Comparable, Pool.Poolable { public int id; public int param; public ItemStatCost.Entry entry; - boolean modified; + public boolean modified; int hash; int val;