コード例 #1
0
 public AmmoPackEffect(AmmoPack ammo)
 {
     ammoPack = ammo;
 }
コード例 #2
0
        /// <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];
        }