Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Linq;
- using System.Collections;
- public class SpellDefinition
- {
- #region Public fields
- public string Name;
- public string Type;
- public int Cost;
- public string Icon;
- public float Recharge;
- public string Delay;
- public string Description;
- #endregion
- #region Static members
- public static SpellDefinition[] AllSpells = new SpellDefinition[]
- {
- 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." },
- 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." },
- 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" },
- 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." },
- 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" },
- 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" },
- 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" },
- 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" },
- };
- internal static SpellDefinition FindByName( string Name )
- {
- return AllSpells.FirstOrDefault( spell => spell.Name == Name );
- }
- internal static SpellDefinition FindAllByName
- {
- foreach (SpellDefinition spell in AllSpells)
- {
- return spell;
- }
- }
- #endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment