Srd.Content.Weapons (srd_5e v0.2.0)

Copy Markdown View Source

SRD weapons, looked up by slug.

Summary

Functions

Every weapon.

Look up a weapon by slug, raising if there is none.

Look up a weapon by slug, returning nil if there is none.

Functions

all()

@spec all() :: [Srd.Content.Weapon.t()]

Every weapon.

fetch!(slug)

@spec fetch!(String.t()) :: Srd.Content.Weapon.t()

Look up a weapon by slug, raising if there is none.

get(slug)

@spec get(String.t()) :: Srd.Content.Weapon.t() | nil

Look up a weapon by slug, returning nil if there is none.