Item flags refactored
This commit is contained in:
1 parent
f01fb6f848
commit
eca71fa685
7 files changed
+45
-46
No files matched your search
@@ -145,7 +145,7 @@ public class BuyFromNPCMsgHandler extends AbstractClientMsgHandler {
|
||||
//TODO CHnage this if we ever put NPc city npcs in buildings.
|
||||
int cost = buy.template.item_value;
|
||||
|
||||
if (buy.isID() || buy.isCustomValue())
|
||||
if (buy.flags.contains(Enum.ItemFlags.Identified) || buy.isCustomValue())
|
||||
cost = buy.getMagicValue();
|
||||
|
||||
float bargain = sourcePlayer.getBargain();
|
||||
|
||||
Reference in new issue
Block a user