Ejemplo n.º 1
0
        public static CustomChest ToCustomChest(this Item item)
        {
            var customChest = CustomChestFactory.Create(item.ParentSheetIndex);

            customChest.name  = item.Name;
            customChest.Stack = item.Stack;
            return(customChest);
        }
Ejemplo n.º 2
0
        public static CustomChest ToCustomChest(this Chest chest, ChestType chestType)
        {
            var customChest = CustomChestFactory.Create(chestType);

            customChest.items.AddRange(chest.items);
            customChest.playerChoiceColor.Value = chest.playerChoiceColor.Value;
            customChest.name  = chest.name;
            customChest.Stack = chest.Stack;
            return(customChest);
        }