public override bool trigger() { var selectedItem = ItemPack.shared.findItem <MMX.HumanItem>(itemId); var selectedItemCount = selectedItem != null ? selectedItem.count : 0; return(comparisonOperator.comparison(selectedItemCount, count)); }
public override bool trigger() { return(comparisonOperator.comparison(VariableManager.shared[conditionKey], conditionValue)); }