Table of Contents

Class Weapon

Namespace
GuildWars2.Items
Assembly
GW2SDK.dll

Information about a weapon item. This type is the base type for all weapon. Cast objects of this type to a more specific type to access more properties.

[JsonConverter(typeof(WeaponJsonConverter))]
public record Weapon : Item, IEquatable<Item>, ICombatEquipment, IUpgradable, IEquatable<Weapon>
Inheritance
Weapon
Implements
Derived
Inherited Members

Properties

AttributeAdjustment

The Attribute Adjustment factor. To calculate the final item stats of the item, multiply this value with an attribute's multiplier, then add the result to the attribute's base value.

AttributeCombinationId

The ID of the item's attribute combination, used for items with fixed stats. This property is not used for items with selectable stats.

Attributes

The effective stats of the item.

Buff

The effect which is applied to the player when the item is equipped.

DamageType

The type of damage dealt by the weapon. It is a purely visual effect and does not affect the damage calculation.

DefaultSkinId

The default skin ID for the weapon. This skin can be unlocked in the wardrobe by binding the item.

Defense

The defense rating of the weapon (shields only). Defense adds together with Toughness to give the Armor attribute, which reduces incoming strike damage.

InfusionSlotCount

The number of infusion slots available on the weapon.

InfusionSlots

The infusion slots of the weapon (only available on ascended and legendary items).

MaxPower

The maximum power used to calculate strike damage. Strike damage is calculated based a random number between MinPower and MaxPower.

MinPower

The minimum power used to calculate strike damage. Strike damage is calculated based a random number between MinPower and MaxPower.

SecondarySuffixItemId

The ID of the upgrade component in the second upgrade slot (two-handed weapons only), if any.

StatChoices

The IDs of the attribute combinations that can be chosen for the item. This property is only used for items with selectable stats.

SuffixItemId

The ID of the upgrade component in the upgrade slot, if any.

TwoHanded

Indicates whether the weapon is two-handed and can have a secondary suffix item.

UpgradeSlotCount

The number of upgrade slots available on the weapon.

UpgradeSlots

The upgrade slots of the weapon.