public bool DoesMeetRequirement(UserDataViewModel userData) { if (userData.IsCurrencyRankExempt) { return(true); } UserInventoryViewModel inventory = this.GetInventory(); if (inventory == null) { return(false); } if (!inventory.Items.ContainsKey(this.ItemName)) { return(false); } return(userData.GetInventoryAmount(inventory, this.ItemName) >= this.Amount); }