public SurpriseBox GetRandomSurpriseBox() { foreach (SurpriseBox surpriseBox in surpriseboxes) { if (Essential.GetRandomNumber(1, surpriseBox.Probability) == surpriseBox.Probability) { return(surpriseBox); } } return(new SurpriseBox(9943, 1, "", "")); //Essential.GetGame().GetItemManager().GetItemById(9943); // gibt ein Standartitem zurück.. }