View Source ExRPG.RuleSystems.Abilities (ExRPG v0.2.1)

Link to this section Summary

Functions

Generates ability scores, assigned to abilities

Generates scores to be assigned to abilities

Link to this section Functions

Generates ability scores, assigned to abilities

examples

Examples

iex> ExRPG.RuleSystems.Abilities.gen_scores(%ExRPG.RuleSystems.Abilities)
%{
  charisma: [4, 3, 1],
  constitution: [5, 6, 3],
  dexterity: [5, 3, 1],
  intellegence: [4, 3, 3],
  strength: [4, 1, 5],
  wisdom: [1, 5, 6]
}
Link to this function

gen_scores_unassigned(abilities)

View Source

Generates scores to be assigned to abilities

examples

Examples

iex> ExRPG.RuleSystems.Abilities.gen_scores_unassigned(%Abilities{})
[[1, 6, 6], [3, 3, 2], [3, 6, 3], [4, 2, 1], [6, 5, 1], [6, 4, 6]]