public Equipment DoMeleeWeaponBreakCheck() { LegacyLogic.Instance.WorldManager.HintManager.TriggerHint(EHintType.BREAKING_ITEMS); MeleeWeapon randomItem = m_equipment.GetRandomItem <MeleeWeapon>(); 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); }