quality

package
v0.0.0-...-0bb4724 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unskilled = LaborQuality(Cheap)
	Skilled   = LaborQuality(Normal)
	Masterful = LaborQuality(Fine)
)

Variables

View Source
var LaborQualities []LaborQuality
View Source
var Qualities []Quality

Functions

This section is empty.

Types

type LaborQuality

type LaborQuality Quality

func (LaborQuality) CFAdjustment

func (q LaborQuality) CFAdjustment() fxp.Int

func (LaborQuality) DRMultiplier

func (q LaborQuality) DRMultiplier() fxp.Int

func (LaborQuality) EnsureValid

func (q LaborQuality) EnsureValid() LaborQuality

func (LaborQuality) HPMultiplier

func (q LaborQuality) HPMultiplier() fxp.Int

func (LaborQuality) HTAdjustment

func (q LaborQuality) HTAdjustment() fxp.Int

func (LaborQuality) Key

func (q LaborQuality) Key() string

func (LaborQuality) MarshalText

func (q LaborQuality) MarshalText() ([]byte, error)

func (LaborQuality) String

func (q LaborQuality) String() string

func (*LaborQuality) UnmarshalText

func (q *LaborQuality) UnmarshalText(text []byte) error

type Quality

type Quality byte
const (
	Cheap Quality = iota
	Normal
	Fine
)

func (Quality) CFAdjustment

func (q Quality) CFAdjustment() fxp.Int

func (Quality) DRMultiplier

func (q Quality) DRMultiplier() fxp.Int

func (Quality) EnsureValid

func (q Quality) EnsureValid() Quality

func (Quality) HPMultiplier

func (q Quality) HPMultiplier() fxp.Int

func (Quality) HTAdjustment

func (q Quality) HTAdjustment() fxp.Int

func (Quality) Key

func (q Quality) Key() string

func (Quality) MarshalText

func (q Quality) MarshalText() ([]byte, error)

func (Quality) String

func (q Quality) String() string

func (*Quality) UnmarshalText

func (q *Quality) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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