private static void ConfigureBreakDown(ModToolComponent modToolComponent) { BreakDownItem breakDownItem = ModComponentUtils.ComponentUtils.GetOrCreateComponent <BreakDownItem>(modToolComponent); breakDownItem.m_BreakDownTimeModifier = modToolComponent.BreakDownTimeMultiplier; string templateName = GetTemplateToolName(modToolComponent); if (templateName != null) { AlternativeToolManager.AddToList(modToolComponent, templateName); } }
private static void ConfigureForceLock(ModToolComponent modToolComponent) { if (!modToolComponent.ForceLocks) { return; } ForceLockItem forceLockItem = ModComponentUtils.ComponentUtils.GetOrCreateComponent <ForceLockItem>(modToolComponent); forceLockItem.m_ForceLockAudio = ModComponentUtils.ModUtils.DefaultIfEmpty(modToolComponent.ForceLockAudio, "PLAY_LOCKERPRYOPEN1"); forceLockItem.m_LocalizedProgressText = new LocalizedString() { m_LocalizationID = "GAMEPLAY_Forcing" }; AlternativeToolManager.AddToList(modToolComponent, "GEAR_Prybar"); }