Fixes armorclass showing as modified when original game does not in this case

This commit is contained in:
Collin Smith 2019-04-24 15:37:35 -07:00
parent e3c07e0934
commit 7c144a329c
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -487,7 +487,7 @@ public class Stat implements Comparable<Stat>, Pool.Poolable {
public int id;
public int param;
public ItemStatCost.Entry entry;
boolean modified;
public boolean modified;
int hash;
int val;