cata

package
v0.0.142 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DTRDelay = time.Millisecond * 0

Should be used in all places where copy spells are delayed to have it consistent

View Source
var ItemSetAgonyAndTorment = core.NewItemSet(core.ItemSet{
	Name: "Agony and Torment",
	Bonuses: map[int32]core.ApplyEffect{
		2: func(agent core.Agent) {
			character := agent.GetCharacter()

			procAura := character.NewTemporaryStatsAura(
				"Agony and Torment Proc",
				core.ActionID{SpellID: 95762},
				stats.Stats{stats.HasteRating: 1000},
				time.Second*10,
			)

			icd := core.Cooldown{
				Timer:    character.NewTimer(),
				Duration: time.Second * 45,
			}
			procAura.Icd = &icd

			core.MakeProcTriggerAura(&character.Unit, core.ProcTrigger{
				Name:     "Agony and Torment Trigger",
				Callback: core.CallbackOnSpellHitDealt,
				ProcMask: core.ProcMaskMeleeOrRanged,
				ActionID: core.ActionID{SpellID: 95763},
				Handler: func(sim *core.Simulation, _ *core.Spell, _ *core.SpellResult) {

					if icd.IsReady(sim) && sim.Proc(.10, "Agony and Torment Proc") {
						icd.Use(sim)
						procAura.Activate(sim)
					}
				},
			})
		},
	},
})

Functions

func CastDTRSpell added in v0.0.118

func CastDTRSpell(sim *core.Simulation, spell *core.Spell, target *core.Unit)

func GetDRTSpellConfig added in v0.0.118

func GetDRTSpellConfig(spell *core.Spell) core.SpellConfig

func GetDragonwrathDoTSpell added in v0.0.118

func GetDragonwrathDoTSpell(unit *core.Unit) *core.Spell

func RegisterIgniteEffect added in v0.0.88

func RegisterIgniteEffect(unit *core.Unit, config IgniteConfig) *core.Spell

Types

type DragonwrathClassConfig added in v0.0.118

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

func CreateDTRClassConfig added in v0.0.118

func CreateDTRClassConfig(spec proto.Spec, procChance float64) *DragonwrathClassConfig

func (*DragonwrathClassConfig) AddSpell added in v0.0.118

type DragonwrathSpellConfig added in v0.0.118

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

func NewDragonwrathSpellConfig added in v0.0.118

func NewDragonwrathSpellConfig() DragonwrathSpellConfig

func (DragonwrathSpellConfig) IsAoESpell added in v0.0.118

func (config DragonwrathSpellConfig) IsAoESpell() DragonwrathSpellConfig

func (DragonwrathSpellConfig) ProcPerCast added in v0.0.118

func (config DragonwrathSpellConfig) ProcPerCast() DragonwrathSpellConfig

func (DragonwrathSpellConfig) SupressDoT added in v0.0.118

func (config DragonwrathSpellConfig) SupressDoT() DragonwrathSpellConfig

func (DragonwrathSpellConfig) SupressImpact added in v0.0.118

func (config DragonwrathSpellConfig) SupressImpact() DragonwrathSpellConfig

func (DragonwrathSpellConfig) SupressSpell added in v0.0.118

func (config DragonwrathSpellConfig) SupressSpell() DragonwrathSpellConfig

func (DragonwrathSpellConfig) TreatCastAsTick added in v0.0.118

func (config DragonwrathSpellConfig) TreatCastAsTick() DragonwrathSpellConfig

func (DragonwrathSpellConfig) TreatTickAsCast added in v0.0.118

func (config DragonwrathSpellConfig) TreatTickAsCast() DragonwrathSpellConfig

func (DragonwrathSpellConfig) WithCustomSpell added in v0.0.118

func (config DragonwrathSpellConfig) WithCustomSpell(handler SpellCopyHandler) DragonwrathSpellConfig

func (DragonwrathSpellConfig) WithSpellHandler added in v0.0.118

func (config DragonwrathSpellConfig) WithSpellHandler(handler SpellHandler) DragonwrathSpellConfig

type GurthalakAgent added in v0.0.119

type GurthalakAgent interface {
	GetTentacles() []*TentacleOfTheOldOnesPet
}

type IgniteConfig added in v0.0.88

type IgniteConfig struct {
	ActionID           core.ActionID
	DisableCastMetrics bool
	DotAuraLabel       string
	DotAuraTag         string
	ProcTrigger        core.ProcTrigger // Ignores the Handler field and creates a custom one, but uses all others.
	DamageCalculator   IgniteDamageCalculator
	IncludeAuraDelay   bool // "munching" and "free roll-over" interactions
}

type IgniteDamageCalculator added in v0.0.88

type IgniteDamageCalculator func(result *core.SpellResult) float64

Takes in the SpellResult for the triggering spell, and returns the damage per tick of a *fresh* Ignite triggered by that spell. Roll-over damage calculations for existing Ignites are handled internally.

type ItemVersion added in v0.0.100

type ItemVersion int32
const (
	ItemVersionLFR ItemVersion = iota
	ItemVersionNormal
	ItemVersionHeroic
)

type SpellCopyHandler added in v0.0.118

type SpellCopyHandler func(unit *core.Unit, spell *core.Spell)

type SpellHandler added in v0.0.118

type SpellHandler func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult)

type TentacleOfTheOldOnesPet added in v0.0.119

type TentacleOfTheOldOnesPet struct {
	core.Pet

	ProccedItemVersion ItemVersion
	// contains filtered or unexported fields
}

func NewTentacleOfTheOldOnesPet added in v0.0.119

func NewTentacleOfTheOldOnesPet(character *core.Character) *TentacleOfTheOldOnesPet

func (*TentacleOfTheOldOnesPet) ExecuteCustomRotation added in v0.0.119

func (pet *TentacleOfTheOldOnesPet) ExecuteCustomRotation(sim *core.Simulation)

func (*TentacleOfTheOldOnesPet) GetPet added in v0.0.119

func (pet *TentacleOfTheOldOnesPet) GetPet() *core.Pet

func (*TentacleOfTheOldOnesPet) Initialize added in v0.0.119

func (pet *TentacleOfTheOldOnesPet) Initialize()

func (*TentacleOfTheOldOnesPet) Reset added in v0.0.119

func (pet *TentacleOfTheOldOnesPet) Reset(sim *core.Simulation)

Jump to

Keyboard shortcuts

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