public Weapon(ItemTemplate template, ItemRarity rarity) : base(template, rarity) { Type = template.Type; ItemDice = _weaponBaseDamageValues[rarity]; Range = template.Range; MultiSlot = template.MultiSlot; //todo determine aoe by properties //Example gas property = cloud aoe if (template.Properties != null && template.Properties.Contains("aoe")) { AOE = AOEStore.GetAOEByType(AoeType.Blast); AOEType = AoeType.Blast; } IsRanged = Range > 1; }
/// <summary> /// Initializes a new instance of the <see cref="Gravity"/> class. /// </summary> /// <param name="areaOfEffect">The area of effect.</param> public Gravity(IAreaOfEffect areaOfEffect) : base(areaOfEffect) { Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="Buoyancy"/> class. /// </summary> /// <param name="areaOfEffect">The area of effect.</param> public Buoyancy(IAreaOfEffect areaOfEffect) : base(areaOfEffect) { Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="Damping"/> class. /// </summary> /// <param name="areaOfEffect">The area of effect.</param> public Damping(IAreaOfEffect areaOfEffect) : base(areaOfEffect) { Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="Explosion"/> class. /// </summary> /// <param name="areaOfEffect">The area of effect.</param> public Explosion(IAreaOfEffect areaOfEffect) : base(areaOfEffect) { Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="ForceField"/> class. /// </summary> /// <param name="areaOfEffect">The area of effect.</param> protected ForceField(IAreaOfEffect areaOfEffect) { AreaOfEffect = areaOfEffect; }