Table of Contents

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

ArmorLevel int

The flat armor value, which comes from the item's own property table rather than the profile blob.

SlashMod float

Multiplier on incoming slashing damage: 1.2 means the wearer takes twenty percent more of it, 0.8 twenty percent less.

PierceMod float

Multiplier on incoming piercing damage.

BludgeonMod float

Multiplier on incoming bludgeoning damage.

ColdMod float

Multiplier on incoming cold damage.

FireMod float

Multiplier on incoming fire damage.

AcidMod float

Multiplier on incoming acid damage.

NetherMod float

Multiplier on incoming nether damage.

ElectricMod float

Multiplier on incoming lightning damage.

Properties

AcidMod

Multiplier on incoming acid damage.

public float AcidMod { get; init; }

Property Value

float

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

int

BludgeonMod

Multiplier on incoming bludgeoning damage.

public float BludgeonMod { get; init; }

Property Value

float

ColdMod

Multiplier on incoming cold damage.

public float ColdMod { get; init; }

Property Value

float

ElectricMod

Multiplier on incoming lightning damage.

public float ElectricMod { get; init; }

Property Value

float

FireMod

Multiplier on incoming fire damage.

public float FireMod { get; init; }

Property Value

float

NetherMod

Multiplier on incoming nether damage.

public float NetherMod { get; init; }

Property Value

float

PierceMod

Multiplier on incoming piercing damage.

public float PierceMod { get; init; }

Property Value

float

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; }

Property Value

float