Documentation ¶
Index ¶
Constants ¶
View Source
const SrDieSides = 6
View Source
const WodDieSides = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRoller ¶
type BaseRoller struct {
// contains filtered or unexported fields
}
func NewBaseRoller ¶
func NewBaseRoller() (*BaseRoller, error)
NewBaseRoller creates basic roller with default rng
func NewTestBaseRoller ¶ added in v1.4.0
func NewTestBaseRoller(seed1, seed2 uint64) *BaseRoller
NewTestBaseRoller creates basic roller with pinned seed for predictable results for testing
type SrGlitchStatus ¶
type SrGlitchStatus int
const ( SrNoGlitch SrGlitchStatus = iota SrGlitch SrCritGlitch )
func GetGlitchStatus ¶
func GetGlitchStatus(roll ThresholdRoll) SrGlitchStatus
type ThresholdParameters ¶
type ThresholdParameters struct {
// contains filtered or unexported fields
}
func GetSrParams ¶
func GetSrParams() ThresholdParameters
func NewGetWodRollParams ¶ added in v1.2.0
func NewGetWodRollParams(isNineAgain, isEightAgain bool) ThresholdParameters
type ThresholdRoll ¶
type ThresholdRoll struct {
// contains filtered or unexported fields
}
func (*ThresholdRoll) String ¶ added in v1.4.0
func (t *ThresholdRoll) String() (string, error)
func (*ThresholdRoll) Value ¶
func (t *ThresholdRoll) Value() int
type ThresholdRoller ¶
type ThresholdRoller struct {
// contains filtered or unexported fields
}
func NewThresholdRoller ¶
func NewThresholdRoller() (*ThresholdRoller, error)
func (*ThresholdRoller) DoThresholdRoll ¶
func (t *ThresholdRoller) DoThresholdRoll(count, sides int, params ThresholdParameters) (ThresholdRoll, error)
Click to show internal directories.
Click to hide internal directories.