Srd.Content.Armor (srd_5e v0.2.0)

Copy Markdown View Source

An SRD armor.

Summary

Types

t()

An SRD armor

Types

category()

@type category() :: :light | :medium | :heavy | :shield

t()

@type t() :: %Srd.Content.Armor{
  base_ac: non_neg_integer(),
  category: category(),
  name: String.t(),
  slug: String.t(),
  stealth_disadvantage: boolean(),
  strength: non_neg_integer() | nil
}

An SRD armor:

  • :slug - stable identifier used for lookup
  • :name - display name
  • :category - light, medium, heavy, or shield
  • :base_ac - the base Armor Class (for a shield, the bonus it grants)
  • :strength - the minimum Strength score the armor requires, or nil
  • :stealth_disadvantage - whether wearing it gives disadvantage on Stealth