Struct PluginArmorProfile
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
A piece of armor's per-damage-type protection modifiers as the server's appraisal response reported them, from the ArmorProfile blob. Null until the item has been successfully appraised, or if it never carries an ArmorProfile blob (i.e. it is not armor). Fields after ArmorLevel are in the blob's own wire order and stay float to match it exactly.
public readonly record struct PluginArmorProfile : IEquatable<PluginArmorProfile>
- Implements
- Inherited Members
Constructors
PluginArmorProfile(int, float, float, float, float, float, float, float, float)
A piece of armor's per-damage-type protection modifiers as the server's appraisal response reported them, from the ArmorProfile blob. Null until the item has been successfully appraised, or if it never carries an ArmorProfile blob (i.e. it is not armor). Fields after ArmorLevel are in the blob's own wire order and stay float to match it exactly.
public PluginArmorProfile(int ArmorLevel, float SlashMod, float PierceMod, float BludgeonMod, float ColdMod, float FireMod, float AcidMod, float NetherMod, float ElectricMod)
Parameters
ArmorLevelintThe flat armor value, which comes from the item's own property table rather than the profile blob.
SlashModfloatMultiplier on incoming slashing damage: 1.2 means the wearer takes twenty percent more of it, 0.8 twenty percent less.
PierceModfloatMultiplier on incoming piercing damage.
BludgeonModfloatMultiplier on incoming bludgeoning damage.
ColdModfloatMultiplier on incoming cold damage.
FireModfloatMultiplier on incoming fire damage.
AcidModfloatMultiplier on incoming acid damage.
NetherModfloatMultiplier on incoming nether damage.
ElectricModfloatMultiplier on incoming lightning damage.
Properties
AcidMod
Multiplier on incoming acid damage.
public float AcidMod { get; init; }
Property Value
ArmorLevel
The flat armor value, which comes from the item's own property table rather than the profile blob.
public int ArmorLevel { get; init; }
Property Value
BludgeonMod
Multiplier on incoming bludgeoning damage.
public float BludgeonMod { get; init; }
Property Value
ColdMod
Multiplier on incoming cold damage.
public float ColdMod { get; init; }
Property Value
ElectricMod
Multiplier on incoming lightning damage.
public float ElectricMod { get; init; }
Property Value
FireMod
Multiplier on incoming fire damage.
public float FireMod { get; init; }
Property Value
NetherMod
Multiplier on incoming nether damage.
public float NetherMod { get; init; }
Property Value
PierceMod
Multiplier on incoming piercing damage.
public float PierceMod { get; init; }
Property Value
SlashMod
Multiplier on incoming slashing damage: 1.2 means the wearer takes twenty percent more of it, 0.8 twenty percent less.
public float SlashMod { get; init; }