Mendenbarr

Findall

May 4th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Linq;
  3. using System.Collections;
  4.  
  5. public class SpellDefinition
  6. {
  7.  
  8. #region Public fields
  9.  
  10. public string Name;
  11. public string Type;
  12. public int Cost;
  13. public string Icon;
  14. public float Recharge;
  15. public string Delay;
  16. public string Description;
  17.  
  18. #endregion
  19.  
  20. #region Static members
  21.  
  22. public static SpellDefinition[] AllSpells = new SpellDefinition[]
  23. {
  24.  
  25. new SpellDefinition { Name = "Festering Strike", Icon = "FeS", Cost = 0, Delay = "Y", Recharge = 0, Type = "Frost/Blood", Description = "An instant attack that deals 200% weapon damage plus 540 and increases the duration of your Blood Plague, Frost Fever, and Chains of Ice effects on the target by up to 6 sec." },
  26. new SpellDefinition { Name = "Death Coil", Icon = "DC", Cost = 32, Delay = "Y", Recharge = 0, Type = "Runic", Description = "Fire a blast of unholy energy, causing [(1133 + 0.514 * Attack power) * 1] Shadow damage to an enemy target or healing [(1133 + 0.514 * Attack power) * 3.5] damage on a friendly Undead target." },
  27. new SpellDefinition { Name = "Greater Flare", Icon = "spell-1", Cost = 15, Delay = "Y", Recharge = 4f, Type = "Fire", Description = "Blast of fire deals [color #00FF00]25[/color] damage to target" },
  28. new SpellDefinition { Name = "Scourge Strike", Icon = "SS", Cost = 0, Delay = "Y", Recharge = 0, Type = "Unholy", Description = "An unholy strike that deals 135% of weapon damage as Physical damage plus 597. In addition, for each of your diseases on your target, you deal an additional 25% of the Physical damage done as Shadow damage." },
  29. new SpellDefinition { Name = "Aura of Attunement", Icon = "spell-9", Cost = 25, Delay = "Y", Recharge = 10f, Type = "Spirit", Description = "Your next 2 spells are [color #00ff00]15%[/color] more effective" },
  30. new SpellDefinition { Name = "Enhanced Strike", Icon = "spell-3", Cost = 5, Delay = "Y", Recharge = 6f, Type = "Spirit", Description = "Attacks with a bladed weapon deal [color #00ff00]15%[/color] more damage for [color #00FF00]5[/color] seconds" },
  31. new SpellDefinition { Name = "Flame Blade", Icon = "spell-7", Cost = 15, Delay = "Y", Recharge = 20f, Type = "Fire", Description = "Attacks with a bladed weapon deal [color #ff0000]+5 Fire Damage[/color] for [color #00FF00]5[/color] seconds" },
  32. new SpellDefinition { Name = "Chilling Wind", Icon = "spell-6", Cost = 15, Delay = "Y", Recharge = 10f, Type = "Air", Description = "Attacks dealing fire damage against you and all adjacent party members are reduced by [color #00FF00]10%[/color] for [color #00FF00]2[/color] seconds" },
  33. };
  34.  
  35. internal static SpellDefinition FindByName( string Name )
  36. {
  37. return AllSpells.FirstOrDefault( spell => spell.Name == Name );
  38. }
  39. internal static SpellDefinition FindAllByName
  40. {
  41. foreach (SpellDefinition spell in AllSpells)
  42. {
  43. return spell;
  44. }
  45. }
  46.  
  47. #endregion
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment