damage

package
v0.0.0-...-54e4572 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Damage

type Damage struct {
	DiceCount  int
	DiceSize   int
	Bonus      int
	DamageType Type
}

func (*Damage) Deal

func (d *Damage) Deal() int

type Type

type Type string
const (
	TypeAcid        Type = "acid"
	TypeCold        Type = "cold"
	TypeFire        Type = "fire"
	TypeForce       Type = "force"
	TypeLightning   Type = "lightning"
	TypeNecrotic    Type = "necrotic"
	TypePoison      Type = "poison"
	TypePsychic     Type = "psychic"
	TypeRadiant     Type = "radiant"
	TypeThunder     Type = "thunder"
	TypeBludgeoning Type = "bludgeoning"
	TypePiercing    Type = "piercing"
	TypeSlashing    Type = "slashing"
	TypeNone        Type = "none"
)

Jump to

Keyboard shortcuts

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