public static void AddAbility(string key, SpecialAbility ability) { ability.key = key; Abilities.Add(key, ability); ability.Load(); if (!Main.dedServ) { ability.ShaderLoad(); } }
/* Activate ability function */ public static bool Activate(string key) { SpecialAbility ability = Abilities[key]; if (ability.CanBeUsed) { ability.SetUp(); ability.Start(); Active.Add(ability); return(true); } return(false); } /* End of 'Activate' function */