protected sealed override void PrepareProtoItem() { var lightConfig = new ItemLightConfig(); var fuelConfig = new ItemFuelConfig(); this.PrepareProtoItemLight(lightConfig, fuelConfig); this.ItemLightConfig = lightConfig.ToReadOnly(); this.ItemFuelConfig = fuelConfig.ToReadOnly(); }
protected sealed override void PrepareProtoWeapon( out IEnumerable <IProtoItemAmmo> compatibleAmmoProtos, ref DamageDescription overrideDamageDescription) { compatibleAmmoProtos = null; var lightConfig = new ItemLightConfig() { IsLightEnabled = false }; this.PrepareProtoWeaponEnergy(ref overrideDamageDescription, lightConfig); this.ItemLightConfig = lightConfig.ToReadOnly(); }
protected sealed override void PrepareProtoItemEquipmentHead() { var lightConfig = new ItemLightConfig(); var fuelConfig = new ItemFuelConfig(); this.PrepareProtoItemEquipmentHeadWithLight(lightConfig, fuelConfig); this.ItemLightConfig = lightConfig.ToReadOnly(); this.ItemFuelConfig = fuelConfig.ToReadOnly(); if (IsClient) { ClientEquipmentHeadWithLightInputToggle.Init(); } }