View Source ExRPG.RuleSystems.Abilities.Assignment (ExRPG v0.2.1)
This module handles the different ways of assigning ability scores
Link to this section Summary
Functions
Applies a method special to the rolled values
Returns the default assignment method for the defined assignment methods
Generates an ability score using the Assignment.RollingMethod
Link to this section Functions
Applies a method special to the rolled values
examples
Examples
iex> Assignment.apply_method_special!([4, 3, 2, 1], "drop_lowest")
[2, 3, 4]
Returns the default assignment method for the defined assignment methods
examples
Examples
iex> Assignment.default_assignment()
Generates an ability score using the Assignment.RollingMethod
examples
Examples
iex> %Assignment.RollingMethod{dice: "3d6"}
[3, 4, 2]