protected CbCore(CbItem packItem) : base(packItem.ID, $"{packItem.ID}PreFab", TechType.None) { if (packItem.CBModelData != null) { this.CustomModelData = packItem.CBModelData; } this.UsingIonCellSkins = packItem.CBModelData?.UseIonModelsAsBase ?? false; this.Sprite = packItem.CustomIcon; this.EnhanceGameObject = packItem.EnhanceGameObject; this.AddToFabricator = packItem.AddToFabricator; }
protected CbCore(CbItem packItem) : base(packItem.ID, $"{packItem.ID}PreFab", TechType.None) { this.UsingIonCellSkins = packItem.CustomSkin == null; if (packItem.CustomIcon != null) { this.Sprite = packItem.CustomIcon; } if (packItem.CustomSkin != null) { this.CustomSkin = packItem.CustomSkin; } this.ExcludeFromChargers = packItem.ExcludeFromChargers; this.EnhanceGameObject = packItem.EnhanceGameObject; }
public CustomItem(CbItem packItem, ItemTypes itemType) : base(packItem) { this.PackItem = packItem; this.ItemType = itemType; }