Example #1
0
        public static int GetHueShift(SchoolOfMagic schoolOfMagic)
        {
            switch (schoolOfMagic)
            {
            case SchoolOfMagic.None:
                return(0);

            case SchoolOfMagic.Abjuration:
                return(191);

            case SchoolOfMagic.Illusion:
                return(238);

            case SchoolOfMagic.Conjuration:
                return(277);

            case SchoolOfMagic.Enchantment:
                return(331);

            case SchoolOfMagic.Necromancy:
                return(7);

            case SchoolOfMagic.Evocation:
                return(137);

            case SchoolOfMagic.Transmutation:
                return(101);

            case SchoolOfMagic.Divination:
                return(52);
            }
            return(0);
        }
Example #2
0
 public Spell(string name           = "",
              int level             = 0,
              string castingTime    = "",
              string range          = "",
              string components     = "",
              string duration       = "",
              AttackType attackType = default,
              DamageAndEffectType damageAndEffectType = default,
              SchoolOfMagic schoolOfMagic             = default,
              string description    = "",
              string additionalInfo = "",
              List <string> listOfClassesSpellIsIn = null,
              List <string> spellTags = null)
 {
     AccessorName           = CreateAccessorName(name);
     Name                   = name;
     Level                  = Math.Clamp(level, 0, 9);
     CastingTime            = castingTime;
     Range                  = range;
     Components             = components;
     Duration               = duration;
     AttackType             = attackType;
     DamageAndEffectType    = damageAndEffectType;
     SchoolOfMagic          = schoolOfMagic;
     Description            = description;
     AdditionalInfo         = additionalInfo;
     ListOfClassesSpellIsIn = listOfClassesSpellIsIn ?? new List <string>();
     SpellTags              = spellTags ?? new List <string>();
 }
Example #3
0
 public ActiveSpellData(string name, int spellSlotLevel, int spellLevel, int playerLevel, string castingTimeStr, string rangeStr, string componentsStr, string durationStr, SchoolOfMagic schoolOfMagic, bool requiresConcentration, bool morePowerfulAtHigherLevels, bool powerComesFromCasterLevel)
 {
     this.name                       = name;
     this.spellSlotLevel             = spellSlotLevel;
     this.spellLevel                 = spellLevel;
     this.playerLevel                = playerLevel;
     this.description                = "";
     this.castingTimeStr             = castingTimeStr;
     this.rangeStr                   = rangeStr;
     this.componentsStr              = componentsStr;
     this.durationStr                = durationStr;
     this.schoolOfMagic              = schoolOfMagic;
     this.requiresConcentration      = requiresConcentration;
     this.morePowerfulAtHigherLevels = morePowerfulAtHigherLevels;
     this.powerComesFromCasterLevel  = powerComesFromCasterLevel;
 }