statmods

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatMods

type StatMods map[string]int

Statmods are a simple map of "name" to "modifier"

func (StatMods) Add

func (s StatMods) Add(statName string, statVal int)

func (StatMods) Get

func (s StatMods) Get(statName ...string) int

type StatName

type StatName string
var (
	// specific skills
	Tame     StatName = `tame`
	Picklock StatName = `picklock`

	// Not an exhaustive list, but ideally keep track of
	RacialBonusPrefix StatName = `racial-bonus-`

	// any statnames/prefixes here
	Casting        StatName = `casting`        // also used for `casting-` prefix followed by spell School
	CastingPrefix  StatName = `casting-`       // followed by spell School
	XPScale        StatName = `xpscale`        // Used for scaling xp after kills
	HealthRecovery StatName = `healthrecovery` // Augments HP recovery speed
	ManaRecovery   StatName = `manarecovery`   // Augments MP recovery speed

	// Stat based
	Strength   StatName = `strength`
	Speed      StatName = `speed`
	Smarts     StatName = `smarts`
	Vitality   StatName = `vitality`
	Mysticism  StatName = `mysticism`
	Perception StatName = `perception`
	HealthMax  StatName = `healthmax`
	ManaMax    StatName = `manamax`
)

Jump to

Keyboard shortcuts

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