public override ConstructionDef GetConstructionDefinition(GameEntityManager usedMgr) { var def = CreateDefinitionCopy(ConstructionID.Cabinet, usedMgr); def.Name = "book shelve"; def.Components[0].ID = CustomItems.GetItemIdForType <BookShelveItemProvider>(); return(def); }
public override CraftableItem GetCraftableItem(GameEntityManager usedMgr) { var craftableCabinet = usedMgr.WorkshopDef(WorkshopID.Carpenter).CraftableItems.Single(ci => ci.ItemID == ItemID.Cabinet); var craftableBookshelve = CopyCraftableItem(craftableCabinet); craftableBookshelve.ItemID = CustomItems.GetItemIdForType <BookShelveItemProvider>(); return(craftableBookshelve); }