Exemple #1
0
        public UseableDrugItem(BaseItem item)
        {
            //Generic copy
            UseableBaseItem.CopyItem(this, item);

            DrugItem drug = item as DrugItem;

            smokable = drug.smokable;
        }
        public UseableWalletItem(BaseItem item)
        {
            //Generic copy
            UseableBaseItem.CopyItem(this, item);

            //Wallet copy
            WalletItem wallet = item as WalletItem;

            maxMoneyContained = wallet.maxMoneyContained;
            minMoneyContained = wallet.minMoneyContained;
        }
        public UseableContainerItem(BaseItem item)
        {
            //Copy Generic stuff first
            UseableBaseItem.CopyItem(this, item);

            ContainerItem copyFrom = item as ContainerItem;

            //Container specific data
            inventoryCapacity            = copyFrom.inventoryCapacity;
            inventory                    = copyFrom.inventory;
            containerInventoryTypeFilter = copyFrom.containerInventoryTypeFilter;
            singleItemAllowed            = copyFrom.singleItemAllowed;
        }
Exemple #4
0
 public UseableCleaningItem(BaseItem item)
 {
     UseableBaseItem.CopyItem(this, item);
 }
Exemple #5
0
 public UseableFoodItem(BaseItem item)
 {
     UseableBaseItem.CopyItem(this, item);
 }