public Equipment DoArmorBreakCheck() { LegacyLogic.Instance.WorldManager.HintManager.TriggerHint(EHintType.BREAKING_ITEMS); Armor randomItem = m_equipment.GetRandomItem <Armor>(); if (randomItem != null && randomItem.BreakCheck()) { LegacyLogic.Instance.WorldManager.HintManager.TriggerHint(EHintType.BROKEN_ITEMS); ItemStatusEventArgs p_eventArgs = new ItemStatusEventArgs(randomItem, m_character); LegacyLogic.Instance.EventManager.InvokeEvent(this, EEventType.INVENTORY_ITEM_REPAIR_STATUS_CHANGED, p_eventArgs); m_character.CalculateCurrentAttributes(); return(randomItem); } return(null); }