public CharacterData() { Lines = Consts.GameParameters.Defaults.PageLength; Armor = new ArmorRating(Consts.GameParameters.Defaults.ArmorRating); Position = Consts.GameParameters.Defaults.Position; Health = Consts.GameParameters.Defaults.Health; MaxHealth = Consts.GameParameters.Defaults.Health; Mana = Consts.GameParameters.Defaults.Mana; MaxMana = Consts.GameParameters.Defaults.Mana; Move = Consts.GameParameters.Defaults.Movement; MaxMove = Consts.GameParameters.Defaults.Movement; PermanentStats = new Stats(); ModifiedStats = new Stats(); Logon = DateTime.Now; Damage = new DiceRoll(); Affects = new List <AffectData>(); Equipment = new EquipSlots(); Inventory = new List <ObjectData>(); // Set default stats //for (int i = 0; i < PermanentStats.Length; i++) //{ // PermanentStats[i] = Consts.GameParameters.Defaults.Stats; // ModifiedStats[i] = 0; //} }
public MobPrototypeData() { Actions = new ActionFlag(); AffectedBy = new AffectedByFlag(); Health = new DiceRoll(); Mana = new DiceRoll(); Damage = new DiceRoll(); ArmorRating = new ArmorRating(); Offense = new OffensiveFlag(); Immunity = new ImmunityFlag(); Resistance = new ResistanceFlag(); Vulnerability = new VulnerabilityFlag(); }
public override bool Equals(object obj) { ArmorRating otherObj = (ArmorRating)obj; return(otherObj.Bash.Equals(Bash) && otherObj.Exotic.Equals(Exotic) && otherObj.Pierce.Equals(Pierce) && otherObj.Slash.Equals(Slash)); }