Item flags refactored

This commit is contained in:
2024-03-22 13:03:47 -04:00
parent f01fb6f848
commit eca71fa685
7 changed files with 45 additions and 46 deletions
@@ -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();