Ejemplo n.º 1
0
        public bool ResistantTo(DamageType damageType)
        {
            if (DamageResistances.Contains(damageType))
            {
                Console.WriteLine($"Resistance to {damageType}");
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        // Methods for altering data structure.
        #region
        public static void Clear(bool isNew = false)
        {
            Title = "";

            STR = 10;
            DEX = 10;
            CON = 10;
            INT = 10;
            WIS = 10;
            CHA = 10;

            Speed = "";
            AC    = "";
            HP    = "";
            CR    = Help.FindCRByIndex(0);

            CreatureAlign = "";
            CreatureName  = "";
            CreatureSize  = "";
            CreatureType  = "";

            output.Clear();
            output = new List <string>();

            DamageImmunities.Clear();
            DamageResistances.Clear();
            DamageVulnerability.Clear();
            ConditionImmunities.Clear();
            SavingThrowBonuses.Clear();
            SkillBonuses.Clear();

            if (isNew)
            {
                _Abilities.Clear();
                _Actions.Clear();
                _Legendaries.Clear();
                _Reactions.Clear();
                _advancedSpellData.Clear();
                _advancedSpells.Clear();
            }

            _Languages.Clear();
            _Senses.Clear();
        }
Ejemplo n.º 3
0
        // Methods for altering data structure.
        #region
        public static void Clear(bool isNew = false)
        {
            Title = "";

            STR = 0;
            DEX = 0;
            CON = 0;
            INT = 0;
            WIS = 0;
            CHA = 0;

            Speed = "";
            AC    = "";
            HP    = "";
            CR    = Help.ChallengeRatings[0];

            CreatureAlign = "";
            CreatureName  = "";
            CreatureSize  = "";
            CreatureType  = "";

            output.Clear();
            output = new List <string>();

            DamageImmunities.Clear();
            DamageResistances.Clear();
            DamageVulnerability.Clear();
            ConditionImmunities.Clear();
            SavingThrowBonuses.Clear();
            SkillBonuses.Clear();

            if (isNew)
            {
                _Abilities.Clear();
                _Attacks.Clear();
                _Legendaries.Clear();
            }

            _Languages.Clear();
            _Senses.Clear();
        }
Ejemplo n.º 4
0
 public static void AddDamageResistance(string resistance)
 {
     DamageResistances.Add(resistance);
 }