Documentation ¶
Index ¶
- Constants
- Variables
- func NewBloomAttack(char *character.CharWrapper, src combat.Target) combat.AttackInfo
- func NewBurgeonAttack(char *character.CharWrapper, src combat.Target) combat.AttackInfo
- func NewHyperbloomAttack(char *character.CharWrapper, src combat.Target) combat.AttackInfo
- type CrystallizeShield
- type DendroCore
- type Enemy
- type Reactable
- func (r *Reactable) ActiveAuraString() []string
- func (r *Reactable) AttachOrRefill(a *combat.AttackEvent) bool
- func (r *Reactable) AuraContains(e ...attributes.Element) bool
- func (r *Reactable) AuraCount() int
- func (r *Reactable) Init(self combat.Target, c *core.Core) *Reactable
- func (r *Reactable) React(a *combat.AttackEvent)
- func (r *Reactable) ShatterCheck(a *combat.AttackEvent) bool
- func (r *Reactable) Tick()
- func (r *Reactable) TryAddEC(a *combat.AttackEvent) bool
- func (r *Reactable) TryAggravate(a *combat.AttackEvent) bool
- func (r *Reactable) TryBloom(a *combat.AttackEvent) bool
- func (r *Reactable) TryBurning(a *combat.AttackEvent) bool
- func (r *Reactable) TryCrystallizeCryo(a *combat.AttackEvent) bool
- func (r *Reactable) TryCrystallizeElectro(a *combat.AttackEvent) bool
- func (r *Reactable) TryCrystallizeFrozen(a *combat.AttackEvent) bool
- func (r *Reactable) TryCrystallizeHydro(a *combat.AttackEvent) bool
- func (r *Reactable) TryCrystallizePyro(a *combat.AttackEvent) bool
- func (r *Reactable) TryFreeze(a *combat.AttackEvent) bool
- func (r *Reactable) TryFrozenSuperconduct(a *combat.AttackEvent) bool
- func (r *Reactable) TryMelt(a *combat.AttackEvent) bool
- func (r *Reactable) TryOverload(a *combat.AttackEvent) bool
- func (r *Reactable) TryQuicken(a *combat.AttackEvent) bool
- func (r *Reactable) TrySpread(a *combat.AttackEvent) bool
- func (r *Reactable) TrySuperconduct(a *combat.AttackEvent) bool
- func (r *Reactable) TrySwirlCryo(a *combat.AttackEvent) bool
- func (r *Reactable) TrySwirlElectro(a *combat.AttackEvent) bool
- func (r *Reactable) TrySwirlFrozen(a *combat.AttackEvent) bool
- func (r *Reactable) TrySwirlHydro(a *combat.AttackEvent) bool
- func (r *Reactable) TrySwirlPyro(a *combat.AttackEvent) bool
- func (r *Reactable) TryVaporize(a *combat.AttackEvent) bool
- type ReactableModifier
Constants ¶
View Source
const ( BloomMultiplier = 2 BurgeonMultiplier = 3 HyperbloomMultiplier = 3 )
View Source
const DendroCoreDelay = 20
View Source
const ZeroDur combat.Durability = 0.00000000001
Variables ¶
View Source
var ModifierString = []string{
"",
"electro",
"pyro",
"cryo",
"hydro",
"dendro (fuel)",
"",
"dendro",
"quicken",
"frozen",
"anemo",
"geo",
"burning",
"",
}
Functions ¶
func NewBloomAttack ¶ added in v1.2.0
func NewBloomAttack(char *character.CharWrapper, src combat.Target) combat.AttackInfo
func NewBurgeonAttack ¶ added in v1.2.0
func NewBurgeonAttack(char *character.CharWrapper, src combat.Target) combat.AttackInfo
func NewHyperbloomAttack ¶ added in v1.2.0
func NewHyperbloomAttack(char *character.CharWrapper, src combat.Target) combat.AttackInfo
Types ¶
type CrystallizeShield ¶
func NewCrystallizeShield ¶
func NewCrystallizeShield(typ attributes.Element, src int, lvl int, em float64, expiry int) *CrystallizeShield
func (*CrystallizeShield) OnDamage ¶
func (c *CrystallizeShield) OnDamage(dmg float64, ele attributes.Element, bonus float64) (float64, bool)
type DendroCore ¶ added in v1.2.0
func NewDendroCore ¶ added in v1.2.0
func NewDendroCore(c *core.Core, pos combat.Positional, a *combat.AttackEvent) *DendroCore
func (*DendroCore) ApplyDamage ¶ added in v1.2.0
func (s *DendroCore) ApplyDamage(*combat.AttackEvent, float64)
func (*DendroCore) Attack ¶ added in v1.2.0
func (s *DendroCore) Attack(atk *combat.AttackEvent, evt glog.Event) (float64, bool)
func (*DendroCore) HandleAttack ¶ added in v1.3.0
func (s *DendroCore) HandleAttack(atk *combat.AttackEvent) float64
func (*DendroCore) Tick ¶ added in v1.2.0
func (s *DendroCore) Tick()
type Reactable ¶
type Reactable struct { Durability [EndReactableModifier]combat.Durability DecayRate [EndReactableModifier]combat.Durability // contains filtered or unexported fields }
func (*Reactable) ActiveAuraString ¶
func (*Reactable) AttachOrRefill ¶ added in v1.2.0
func (r *Reactable) AttachOrRefill(a *combat.AttackEvent) bool
AttachOrRefill is called after the damage event if the attack has not reacted with anything and will either create a new modifier if non exist, or update according to the rules of each modifier
func (*Reactable) AuraContains ¶
func (r *Reactable) AuraContains(e ...attributes.Element) bool
AuraCountains returns true if any element e is active on the target
func (*Reactable) React ¶
func (r *Reactable) React(a *combat.AttackEvent)
func (*Reactable) ShatterCheck ¶
func (r *Reactable) ShatterCheck(a *combat.AttackEvent) bool
func (*Reactable) TryAddEC ¶ added in v1.3.0
func (r *Reactable) TryAddEC(a *combat.AttackEvent) bool
func (*Reactable) TryAggravate ¶ added in v1.3.0
func (r *Reactable) TryAggravate(a *combat.AttackEvent) bool
func (*Reactable) TryBloom ¶ added in v1.3.0
func (r *Reactable) TryBloom(a *combat.AttackEvent) bool
func (*Reactable) TryBurning ¶ added in v1.3.0
func (r *Reactable) TryBurning(a *combat.AttackEvent) bool
func (*Reactable) TryCrystallizeCryo ¶ added in v1.3.0
func (r *Reactable) TryCrystallizeCryo(a *combat.AttackEvent) bool
func (*Reactable) TryCrystallizeElectro ¶ added in v1.3.0
func (r *Reactable) TryCrystallizeElectro(a *combat.AttackEvent) bool
func (*Reactable) TryCrystallizeFrozen ¶ added in v1.3.0
func (r *Reactable) TryCrystallizeFrozen(a *combat.AttackEvent) bool
func (*Reactable) TryCrystallizeHydro ¶ added in v1.3.0
func (r *Reactable) TryCrystallizeHydro(a *combat.AttackEvent) bool
func (*Reactable) TryCrystallizePyro ¶ added in v1.3.0
func (r *Reactable) TryCrystallizePyro(a *combat.AttackEvent) bool
func (*Reactable) TryFreeze ¶ added in v1.3.0
func (r *Reactable) TryFreeze(a *combat.AttackEvent) bool
func (*Reactable) TryFrozenSuperconduct ¶ added in v1.3.0
func (r *Reactable) TryFrozenSuperconduct(a *combat.AttackEvent) bool
func (*Reactable) TryOverload ¶ added in v1.3.0
func (r *Reactable) TryOverload(a *combat.AttackEvent) bool
func (*Reactable) TryQuicken ¶ added in v1.3.0
func (r *Reactable) TryQuicken(a *combat.AttackEvent) bool
func (*Reactable) TrySpread ¶ added in v1.3.0
func (r *Reactable) TrySpread(a *combat.AttackEvent) bool
func (*Reactable) TrySuperconduct ¶ added in v1.3.0
func (r *Reactable) TrySuperconduct(a *combat.AttackEvent) bool
func (*Reactable) TrySwirlCryo ¶ added in v1.3.0
func (r *Reactable) TrySwirlCryo(a *combat.AttackEvent) bool
func (*Reactable) TrySwirlElectro ¶ added in v1.3.0
func (r *Reactable) TrySwirlElectro(a *combat.AttackEvent) bool
func (*Reactable) TrySwirlFrozen ¶ added in v1.3.0
func (r *Reactable) TrySwirlFrozen(a *combat.AttackEvent) bool
func (*Reactable) TrySwirlHydro ¶ added in v1.3.0
func (r *Reactable) TrySwirlHydro(a *combat.AttackEvent) bool
func (*Reactable) TrySwirlPyro ¶ added in v1.3.0
func (r *Reactable) TrySwirlPyro(a *combat.AttackEvent) bool
func (*Reactable) TryVaporize ¶ added in v1.3.0
func (r *Reactable) TryVaporize(a *combat.AttackEvent) bool
type ReactableModifier ¶ added in v1.2.0
type ReactableModifier int
const ( ModifierInvalid ReactableModifier = iota ModifierElectro ModifierPyro ModifierCryo ModifierHydro ModifierBurningFuel ModifierSpecialDecayDelim ModifierDendro ModifierQuicken ModifierFrozen ModifierAnemo ModifierGeo ModifierBurning EndReactableModifier )
func (ReactableModifier) Element ¶ added in v1.2.0
func (r ReactableModifier) Element() attributes.Element
func (ReactableModifier) MarshalJSON ¶ added in v1.2.2
func (r ReactableModifier) MarshalJSON() ([]byte, error)
func (ReactableModifier) String ¶ added in v1.2.0
func (r ReactableModifier) String() string
func (*ReactableModifier) UnmarshalJSON ¶ added in v1.2.2
func (r *ReactableModifier) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.