|
|
@ -157,18 +157,6 @@ public class Item extends AbstractWorldObject { |
|
|
|
for (String itemFlag : flagString.split(";")) |
|
|
|
for (String itemFlag : flagString.split(";")) |
|
|
|
this.flags.add(Enum.ItemFlags.valueOf(itemFlag)); |
|
|
|
this.flags.add(Enum.ItemFlags.valueOf(itemFlag)); |
|
|
|
|
|
|
|
|
|
|
|
// Backfill support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int oldFlags = rs.getInt("old_flags"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (oldFlags != 0) |
|
|
|
|
|
|
|
this.flags.add(ItemFlags.Identified); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Empty flags should default to template
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.flags.isEmpty()) |
|
|
|
|
|
|
|
this.flags.addAll(this.template.item_flags); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dateToUpgrade = rs.getLong("item_dateToUpgrade"); |
|
|
|
this.dateToUpgrade = rs.getLong("item_dateToUpgrade"); |
|
|
|
this.value = rs.getInt("item_value"); |
|
|
|
this.value = rs.getInt("item_value"); |
|
|
|
|
|
|
|
|
|
|
|