Item flags refactored

This commit is contained in:
MagicBot committed 2024-03-22 13:03:47 -04:00
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();