Browse Source

More accurate than BakedInStats

combat-2
MagicBot 8 months ago
parent
commit
a8ba5ae62b
  1. 7
      src/engine/objects/Item.java

7
src/engine/objects/Item.java

@ -76,8 +76,7 @@ public class Item extends AbstractWorldObject {
this.numberOfItems = 1; this.numberOfItems = 1;
this.flags.addAll(this.template.item_flags); this.flags.addAll(this.template.item_flags);
loadEnchantments(); loadTemplateEnchantments();
applyBakedInStats();
} }
/** /**
@ -975,7 +974,7 @@ public class Item extends AbstractWorldObject {
return this.magicValue; return this.magicValue;
} }
private void applyBakedInStats() { private void loadTemplateEnchantments() {
EffectsBase effect; EffectsBase effect;
@ -1059,7 +1058,7 @@ public class Item extends AbstractWorldObject {
@Override @Override
public void runAfterLoad() { public void runAfterLoad() {
loadEnchantments(); loadEnchantments();
applyBakedInStats(); loadTemplateEnchantments();
} }

Loading…
Cancel
Save