public AmmoPackEffect(AmmoPack ammo) { ammoPack = ammo; }
/// <summary> /// Generates an ammo pack /// </summary> /// <returns></returns> public Item generateAmmoPack() { String itemHash = generateRandomHash(); //Create the Item items[itemHash] = new AmmoPack(itemHash); //Place thhe item in the Location itemToInventory[items[itemHash]] = "trash"; inventoryToItems["trash"].Add(items[itemHash]); return items[itemHash]; }