Beispiel #1
0
 public MDRRace()
 {
     MinStats     = new MDRStats();
     MaxStats     = new MDRStats();
     DefaultStats = new MDRStats();
     Resistance   = new MDRResistance();
 }
Beispiel #2
0
 /** Combines the other resistance table with this.  The highest value will be chosen */
 public void Combine(MDRResistance other)
 {
     for (int lp = 0; lp < Count; lp++)
     {
         this[lp] = Math.Max(other[lp], this[lp]);
     }
 }
Beispiel #3
0
 public MDRMonster()
 {
     Stats        = new MDRStats();
     Abilities    = new MonsterAbilities();
     SpellClasses = new BitArray(32);
     Resistance   = new MDRResistance();
     KnownSpells  = new List <MDRSpell>();
 }
Beispiel #4
0
 /** Creates a new item */
 public MDRItem()
 {
     guildsMask = new BitArray(32);
     StatsReq   = new MDRStats();
     StatsMod   = new MDRStats();
     Abilities  = new ItemAbilities();
     Resistance = new MDRResistance();
 }