progression

package
v5.20.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Options holds all possible values.

Functions

This section is empty.

Types

type Option

type Option byte

Option controls how Thrust and Swing are calculated.

const (
	BasicSet Option = iota
	KnowingYourOwnStrength
	NoSchoolGrognardDamage
	ThrustEqualsSwingMinus2
	SwingEqualsThrustPlus2
	Tbone1
	Tbone1Clean
	Tbone2
	Tbone2Clean
	PhoenixFlameD3
)

Possible values.

const LastOption Option = PhoenixFlameD3

LastOption is the last valid value.

func ExtractOption

func ExtractOption(str string) Option

ExtractOption extracts the value from a string.

func (Option) AltString

func (enum Option) AltString() string

AltString returns the alternate string.

func (Option) EnsureValid

func (enum Option) EnsureValid() Option

EnsureValid ensures this is of a known value.

func (Option) Key

func (enum Option) Key() string

Key returns the key used in serialization.

func (Option) MarshalText

func (enum Option) MarshalText() (text []byte, err error)

MarshalText implements the encoding.TextMarshaler interface.

func (Option) String

func (enum Option) String() string

String implements fmt.Stringer.

func (Option) Swing

func (enum Option) Swing(strength int) *dice.Dice

Swing returns the swing damage for the given strength.

func (Option) Thrust

func (enum Option) Thrust(strength int) *dice.Dice

Thrust returns the thrust damage for the given strength.

func (*Option) UnmarshalText

func (enum *Option) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL