forked from MagicBane/Server
Value logic update
This commit is contained in:
@@ -1152,11 +1152,8 @@ public class Item extends AbstractWorldObject {
|
||||
*/
|
||||
public int getValue() {
|
||||
|
||||
if (this.value == 0)
|
||||
if (this.flags.contains(ItemFlags.Identified)) {
|
||||
return this.magicValue;
|
||||
} else
|
||||
return this.template.item_value;
|
||||
if (this.flags.contains(ItemFlags.Identified))
|
||||
return this.magicValue;
|
||||
|
||||
return this.value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user