forked from MagicBane/Server
Unused method removed
This commit is contained in:
@@ -1019,19 +1019,6 @@ public class Item extends AbstractWorldObject {
|
|||||||
this.magicValue = this.template.item_value + calcMagicValue();
|
this.magicValue = this.template.item_value + calcMagicValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearEnchantments() {
|
|
||||||
|
|
||||||
//Clear permanent enchantment out of database
|
|
||||||
DbManager.EnchantmentQueries.CLEAR_ENCHANTMENTS((long) this.getObjectUUID());
|
|
||||||
|
|
||||||
for (String name : this.getEffects().keySet()) {
|
|
||||||
Effect eff = this.getEffects().get(name);
|
|
||||||
if (!eff.bakedInStat())
|
|
||||||
this.endEffect(name);
|
|
||||||
}
|
|
||||||
this.effectNames.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addPermanentEnchantment(String enchantID, int rank) {
|
public void addPermanentEnchantment(String enchantID, int rank) {
|
||||||
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(enchantID);
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(enchantID);
|
||||||
if (apa == null)
|
if (apa == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user