public ConditionalItem(ItemId pri, ItemId sec = ItemId.Unknown, ItemCondition cond = ItemCondition.TAKE_PRIMARY) { primary = AutoShopper.getData((int)pri); secondary = (sec == ItemId.Unknown) ? null : AutoShopper.getData((int)sec); condition = cond; }
public ConditionalItem(int pri, int sec = -1, ItemCondition cond = ItemCondition.TAKE_PRIMARY) { primary = AutoShopper.getData(pri); secondary = (sec == -1)?null:AutoShopper.getData(sec); condition = cond; }