|
|
@ -30,7 +30,6 @@ import org.pmw.tinylog.Logger; |
|
|
|
import java.sql.ResultSet; |
|
|
|
import java.sql.ResultSet; |
|
|
|
import java.sql.SQLException; |
|
|
|
import java.sql.SQLException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.concurrent.locks.ReentrantLock; |
|
|
|
import java.util.concurrent.locks.ReentrantLock; |
|
|
@ -270,7 +269,7 @@ public class Item extends AbstractWorldObject { |
|
|
|
writer.putInt(36); //Magical, blue name
|
|
|
|
writer.putInt(36); //Magical, blue name
|
|
|
|
else |
|
|
|
else |
|
|
|
writer.putInt(40); //Magical, unidentified
|
|
|
|
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
|
|
|
|
writer.putInt(36); //Magical, blue name
|
|
|
|
else |
|
|
|
else |
|
|
|
writer.putInt(4); //Non-Magical, grey name
|
|
|
|
writer.putInt(4); //Non-Magical, grey name
|
|
|
@ -1064,12 +1063,6 @@ public class Item extends AbstractWorldObject { |
|
|
|
this.magicValue = this.template.item_value + calcMagicValue(); |
|
|
|
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() { |
|
|
|
public void clearEnchantments() { |
|
|
|
|
|
|
|
|
|
|
|
//Clear permanent enchantment out of database
|
|
|
|
//Clear permanent enchantment out of database
|
|
|
|