health

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCtrl

type HealthCtrl struct {
	// contains filtered or unexported fields
}

func NewCtrl

func NewCtrl(c *core.Core) *HealthCtrl

func (*HealthCtrl) AddDamageReduction

func (h *HealthCtrl) AddDamageReduction(f func() (float64, bool))

func (*HealthCtrl) AddIncHealBonus

func (h *HealthCtrl) AddIncHealBonus(f func(healedCharIndex int) float64)

func (*HealthCtrl) Drain added in v0.5.19

func (h *HealthCtrl) Drain(di core.DrainInfo)

func (*HealthCtrl) Heal added in v0.5.11

func (h *HealthCtrl) Heal(hi core.HealInfo)

func (*HealthCtrl) HealIndex

func (h *HealthCtrl) HealIndex(hi *core.HealInfo, index int)

func (*HealthCtrl) HurtChar

func (h *HealthCtrl) HurtChar(dmg float64, ele core.EleType)

Jump to

Keyboard shortcuts

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