Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
 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);
     }
 }