public static CustomChest ToCustomChest(this Item item) { var customChest = CustomChestFactory.Create(item.ParentSheetIndex); customChest.name = item.Name; customChest.Stack = item.Stack; return(customChest); }
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); }