Documentation ¶
Index ¶
- type HealthCtrl
- func (h *HealthCtrl) AddDamageReduction(f func() (float64, bool))
- func (h *HealthCtrl) AddIncHealBonus(f func(healedCharIndex int) float64)
- func (h *HealthCtrl) Drain(di core.DrainInfo)
- func (h *HealthCtrl) Heal(hi core.HealInfo)
- func (h *HealthCtrl) HealIndex(hi *core.HealInfo, index int)
- func (h *HealthCtrl) HurtChar(dmg float64, ele core.EleType)
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)
Click to show internal directories.
Click to hide internal directories.