Exemplo n.º 1
0
 public static void Add <T>(string id, ProjectileGraphicsEffect effect = ProjectileGraphicsEffect.Normal) where T : Buff
 {
     All[id] = new BuffInfo {
         Buff   = typeof(T),
         Effect = effect
     };
 }
Exemplo n.º 2
0
        public static Color GetColor(this ProjectileGraphicsEffect effect)
        {
            switch (effect)
            {
            case ProjectileGraphicsEffect.Poison: return(ProjectileColor.Green);

            case ProjectileGraphicsEffect.Charming: return(ProjectileColor.Pink);

            case ProjectileGraphicsEffect.Freezing: return(ProjectileColor.Cyan);

            case ProjectileGraphicsEffect.Slowing: return(ProjectileColor.Brown);

            case ProjectileGraphicsEffect.Burning: return(ProjectileColor.Orange);

            case ProjectileGraphicsEffect.BrokenArmor: return(ProjectileColor.Gray);

            default: return(ProjectileColor.Yellow);
            }
        }