character

package
v0.0.0-...-86508f1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrimeRequisite

func PrimeRequisite(class string, STR, INT, WIS, DEX, CON, CHA int) int

Types

type Character

type Character struct {
	Class        string
	Level        int
	Title        string
	Alignment    string
	STR          int
	INT          int
	WIS          int
	DEX          int
	CON          int
	CHA          int
	SaveDeath    int
	SaveWands    int
	SaveParalyze int
	SaveBreath   int
	SaveSpells   int
	HitDie       int
	HitPoints    int
	Gold         int
	Inventory    []string
	Abilities    []string
	ArmorClass   int
}

func NewCharClass

func NewCharClass(class string) *Character

func NewRandomChar

func NewRandomChar() *Character

func (*Character) Initiative

func (c *Character) Initiative() int

func (*Character) NextLevel

func (c *Character) NextLevel() int

func (*Character) SetAC

func (c *Character) SetAC() int

Jump to

Keyboard shortcuts

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