forked from MagicBane/Server
Refactor baked in stats
This commit is contained in:
@@ -30,7 +30,6 @@ import org.pmw.tinylog.Logger;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
@@ -270,7 +269,7 @@ public class Item extends AbstractWorldObject {
|
||||
writer.putInt(36); //Magical, blue name
|
||||
else
|
||||
writer.putInt(40); //Magical, unidentified
|
||||
else if (item.getItemBase().getBakedInStats().size() > 0)
|
||||
else if (item.template.item_user_power_action.size() > 0)
|
||||
writer.putInt(36); //Magical, blue name
|
||||
else
|
||||
writer.putInt(4); //Non-Magical, grey name
|
||||
@@ -1064,12 +1063,6 @@ public class Item extends AbstractWorldObject {
|
||||
this.magicValue = this.template.item_value + calcMagicValue();
|
||||
}
|
||||
|
||||
public HashMap<Integer, Integer> getBakedInStats() {
|
||||
if (this.getItemBase() != null)
|
||||
return this.getItemBase().getBakedInStats();
|
||||
return null;
|
||||
}
|
||||
|
||||
public void clearEnchantments() {
|
||||
|
||||
//Clear permanent enchantment out of database
|
||||
|
||||
Reference in New Issue
Block a user