public static void AddOnHitEffect(int index, ModHitEffect HitEffect) { if (ModItemDictionary.ContainsKey(index)) { ModItemDictionary[index] += HitEffect; } else { throw new Exception("ModItemManager ERROR : int does not exist in ModItemDictionary"); } }
static private void DefaultOnHitEffect(int index, ModHitEffect HitEffect) { if (m_DefaultModItemDictionary.ContainsKey(index)) { m_DefaultModItemDictionary[index] += HitEffect; } else { throw new Exception("ModItemManager ERROR : int does not exist in m_DefaultModItemDictionary\nBtw you shouldn't mess with this boi ! Index : " + index); } }