Esempio n. 1
0
 public MDRRace()
 {
     MinStats     = new MDRStats();
     MaxStats     = new MDRStats();
     DefaultStats = new MDRStats();
     Resistance   = new MDRResistance();
 }
Esempio n. 2
0
 public MDRMonster()
 {
     Stats        = new MDRStats();
     Abilities    = new MonsterAbilities();
     SpellClasses = new BitArray(32);
     Resistance   = new MDRResistance();
     KnownSpells  = new List <MDRSpell>();
 }
Esempio n. 3
0
 /** Creates a new item */
 public MDRItem()
 {
     guildsMask = new BitArray(32);
     StatsReq   = new MDRStats();
     StatsMod   = new MDRStats();
     Abilities  = new ItemAbilities();
     Resistance = new MDRResistance();
 }
Esempio n. 4
0
        public static MDRStats operator -(MDRStats s1, MDRStats s2)
        {
            MDRStats result = new MDRStats();

            for (int lp = 0; lp < 6; lp++)
            {
                result[lp] = s1[lp] - s2[lp];
            }
            return(result);
        }
Esempio n. 5
0
 /** Creates a new spell. */
 public MDRSpell()
 {
     RequiredStats = new MDRStats();
 }