public static Item GetItem() { var random = new Random(); atkitem tmp = itemlist[random.Next(itemlist.Count)]; Item item = new ATKItem("ATK", tmp.value, tmp.name); return(item); }
public static Item GetItem() { Random random = new Random(); if (random.Next(1) < 0) { return(ATKItem.GetItem()); } else { return(DefItem.GetItem()); } }