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

Loading…
Cancel
Save