mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Fixes armorclass showing as modified when original game does not in this case
This commit is contained in:
parent
e3c07e0934
commit
7c144a329c
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user