death_knight

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HitCapRatio             = 17.0 / 8.0 // 2.125
	ExpertiseCapRatio       = 6.5 / 8.0  // 0.8125
	PetExpertiseRatingScale = ExpertiseCapRatio * (4 * core.ExpertisePerQuarterPercentReduction)
)
View Source
const (
	DDBC_MercilessCombat   int = 0
	DDBC_EbonPlaguebringer     = iota
	DDBC_RuneOfRazorice

	DDBC_Total
)

Damage Done By Caster setup

View Source
const (
	DeathKnightSpellFlagNone int64 = 0
	DeathKnightSpellIcyTouch int64 = 1 << iota
	DeathKnightSpellDeathCoil
	DeathKnightSpellDeathAndDecay
	DeathKnightSpellOutbreak
	DeathKnightSpellEmpowerRuneWeapon
	DeathKnightSpellUnholyFrenzy
	DeathKnightSpellDarkTransformation
	DeathKnightSpellSummonGargoyle
	DeathKnightSpellArmyOfTheDead
	DeathKnightSpellRaiseDead
	DeathKnightSpellBloodTap
	DeathKnightSpellObliterate
	DeathKnightSpellFrostStrike
	DeathKnightSpellRuneStrike
	DeathKnightSpellPlagueStrike
	DeathKnightSpellFesteringStrike
	DeathKnightSpellScourgeStrike
	DeathKnightSpellScourgeStrikeShadow
	DeathKnightSpellHeartStrike
	DeathKnightSpellDeathStrike
	DeathKnightSpellDeathStrikeHeal
	DeathKnightSpellFrostFever
	DeathKnightSpellBloodPlague
	DeathKnightSpellHowlingBlast
	DeathKnightSpellHornOfWinter
	DeathKnightSpellPillarOfFrost
	DeathKnightSpellPestilence
	DeathKnightSpellBloodBoil
	DeathKnightSpellRuneTap
	DeathKnightSpellVampiricBlood
	DeathKnightSpellIceboundFortitude
	DeathKnightSpellBoneShield
	DeathKnightSpellDancingRuneWeapon
	DeathKnightSpellDeathPact

	DeathKnightSpellKillingMachine     // Used to react to km procs
	DeathKnightSpellConvertToDeathRune // Used to react to death rune gains

	DeathKnightSpellLast
	DeathKnightSpellsAll = DeathKnightSpellLast<<1 - 1

	DeathKnightSpellDisease = DeathKnightSpellFrostFever | DeathKnightSpellBloodPlague
)
View Source
const (
	GhoulSpellNone int64 = 0
	GhoulSpellClaw int64 = 1 << iota

	GhoulSpellLast
	GhoulSpellsAll = DeathKnightSpellLast<<1 - 1
)

Variables

View Source
var BloodBoilActionID = core.ActionID{SpellID: 48721}
View Source
var DeathCoilActionID = core.ActionID{SpellID: 47541}
View Source
var DeathStrikeActionID = core.ActionID{SpellID: 49998}

TODO: Cleanup death strike the same way we did for plague strike

View Source
var FesteringStrikeActionID = core.ActionID{SpellID: 85948}
View Source
var HowlingBlastActionID = core.ActionID{SpellID: 49184}
View Source
var IcyTouchActionID = core.ActionID{SpellID: 45477}
View Source
var ItemSetMagmaPlatedBattlearmor = core.NewItemSet(core.ItemSet{
	Name: "Magma Plated Battlearmor",
	Bonuses: map[int32]core.ApplyEffect{
		2: func(agent core.Agent) {

			agent.GetCharacter().AddStaticMod(core.SpellModConfig{
				Kind:       core.SpellMod_DamageDone_Flat,
				ClassMask:  DeathKnightSpellDeathStrike,
				FloatValue: 0.05,
			})
		},
		4: func(agent core.Agent) {

		},
	},
})
View Source
var ItemSetMagmaPlatedBattlegear = core.NewItemSet(core.ItemSet{
	Name: "Magma Plated Battlegear",
	Bonuses: map[int32]core.ApplyEffect{
		2: func(agent core.Agent) {

			agent.GetCharacter().AddStaticMod(core.SpellModConfig{
				Kind:       core.SpellMod_BonusCrit_Percent,
				ClassMask:  DeathKnightSpellDeathCoil | DeathKnightSpellFrostStrike,
				FloatValue: 5,
			})
		},
		4: func(agent core.Agent) {

			character := agent.GetCharacter()

			apDep := make([]*stats.StatDependency, 3)
			for i := 1; i <= 3; i++ {
				apDep[i-1] = character.NewDynamicMultiplyStat(stats.AttackPower, 1.0+float64(i)*0.01)
			}

			aura := character.GetOrRegisterAura(core.Aura{
				Label:     "Death Eater",
				ActionID:  core.ActionID{SpellID: 90507},
				Duration:  time.Second * 30,
				MaxStacks: 3,
				OnStacksChange: func(aura *core.Aura, sim *core.Simulation, oldStacks, newStacks int32) {
					if oldStacks > 0 {
						character.DisableDynamicStatDep(sim, apDep[oldStacks-1])
					}
					if newStacks > 0 {
						character.EnableDynamicStatDep(sim, apDep[newStacks-1])
					}
				},
			})

			core.MakeProcTriggerAura(&agent.GetCharacter().Unit, core.ProcTrigger{
				Name:           "Magma Plated Battlegear",
				Callback:       core.CallbackOnCastComplete,
				ClassSpellMask: DeathKnightSpellConvertToDeathRune | DeathKnightSpellKillingMachine,
				ICD:            time.Millisecond * 10,
				Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
					aura.Activate(sim)
					aura.AddStack(sim)
				},
			})
		},
	},
})
View Source
var OutbreakActionID = core.ActionID{SpellID: 77575}
View Source
var PestilenceActionID = core.ActionID{SpellID: 50842}
View Source
var PlagueStrikeActionID = core.ActionID{SpellID: 45462}
View Source
var RuneStrikeActionID = core.ActionID{SpellID: 56815}
View Source
var RuneTapActionID = core.ActionID{SpellID: 48982}
View Source
var TalentTreeSizes = [3]int{20, 20, 20}

Functions

func CopySpellMultipliers

func CopySpellMultipliers(sourceSpell *core.Spell, targetSpell *core.Spell, target *core.Unit)

Types

type BloodwormPet

type BloodwormPet struct {
	core.Pet
	// contains filtered or unexported fields
}

func (*BloodwormPet) ExecuteCustomRotation

func (bloodworm *BloodwormPet) ExecuteCustomRotation(_ *core.Simulation)

func (*BloodwormPet) GetPet

func (bloodworm *BloodwormPet) GetPet() *core.Pet

func (*BloodwormPet) Initialize

func (bloodworm *BloodwormPet) Initialize()

func (*BloodwormPet) Reset

func (bloodworm *BloodwormPet) Reset(_ *core.Simulation)

type DeathKnight

type DeathKnight struct {
	core.Character
	Talents *proto.DeathKnightTalents

	ClassSpellScaling float64

	Inputs DeathKnightInputs

	// Pets
	Ghoul      *GhoulPet
	Gargoyle   *GargoylePet
	ArmyGhoul  []*GhoulPet
	RuneWeapon *RuneWeaponPet
	Bloodworm  []*BloodwormPet

	// Diseases
	FrostFeverSpell  *core.Spell
	BloodPlagueSpell *core.Spell
	EbonPlagueAura   core.AuraArray
	ScarletFeverAura core.AuraArray
}

func NewDeathKnight

func NewDeathKnight(character *core.Character, inputs DeathKnightInputs, talents string, deathRuneConvertSpellId int32) *DeathKnight

func (*DeathKnight) AddPartyBuffs

func (dk *DeathKnight) AddPartyBuffs(partyBuffs *proto.PartyBuffs)

func (*DeathKnight) AddRaidBuffs

func (dk *DeathKnight) AddRaidBuffs(raidBuffs *proto.RaidBuffs)

func (*DeathKnight) ApplyBloodTalents

func (dk *DeathKnight) ApplyBloodTalents()

func (*DeathKnight) ApplyFrostTalents

func (dk *DeathKnight) ApplyFrostTalents()

func (*DeathKnight) ApplyGlyphs

func (dk *DeathKnight) ApplyGlyphs()

func (*DeathKnight) ApplyTalents

func (dk *DeathKnight) ApplyTalents()

func (*DeathKnight) ApplyUnholyTalents

func (dk *DeathKnight) ApplyUnholyTalents()

func (*DeathKnight) DiseasesAreActive

func (dk *DeathKnight) DiseasesAreActive(target *core.Unit) bool

func (*DeathKnight) GetCharacter

func (dk *DeathKnight) GetCharacter() *core.Character

func (*DeathKnight) GetDeathKnight

func (dk *DeathKnight) GetDeathKnight() *DeathKnight

func (*DeathKnight) GetDiseaseMulti

func (dk *DeathKnight) GetDiseaseMulti(target *core.Unit, base float64, increase float64) float64

func (*DeathKnight) HasMajorGlyph

func (dk *DeathKnight) HasMajorGlyph(glyph proto.DeathKnightMajorGlyph) bool

func (*DeathKnight) HasMinorGlyph

func (dk *DeathKnight) HasMinorGlyph(glyph proto.DeathKnightMinorGlyph) bool

func (*DeathKnight) HasPrimeGlyph

func (dk *DeathKnight) HasPrimeGlyph(glyph proto.DeathKnightPrimeGlyph) bool

func (*DeathKnight) Initialize

func (dk *DeathKnight) Initialize()

func (*DeathKnight) NewArmyGhoulPet

func (dk *DeathKnight) NewArmyGhoulPet(_ int) *GhoulPet

func (*DeathKnight) NewBloodwormPet

func (dk *DeathKnight) NewBloodwormPet(_ int) *BloodwormPet

func (*DeathKnight) NewGargoyle

func (dk *DeathKnight) NewGargoyle() *GargoylePet

func (*DeathKnight) NewGhoulPet

func (dk *DeathKnight) NewGhoulPet(permanent bool) *GhoulPet

func (*DeathKnight) NewRuneWeapon

func (dk *DeathKnight) NewRuneWeapon() *RuneWeaponPet

func (*DeathKnight) Reset

func (dk *DeathKnight) Reset(sim *core.Simulation)

func (*DeathKnight) SetupGhoul

func (dk *DeathKnight) SetupGhoul(ghoulPet *GhoulPet, apScaling float64)

func (*DeathKnight) ThreatOfThassarianProc

func (dk *DeathKnight) ThreatOfThassarianProc(sim *core.Simulation, result *core.SpellResult, ohSpell *core.Spell)

type DeathKnightAgent

type DeathKnightAgent interface {
	GetDeathKnight() *DeathKnight
}

type DeathKnightInputs

type DeathKnightInputs struct {
	// Option Vars
	IsDps bool

	UnholyFrenzyTarget *proto.UnitReference

	StartingRunicPower float64
	PetUptime          float64

	// Rotation Vars
	UseAMS            bool
	AvgAMSSuccessRate float64
	AvgAMSHit         float64

	Spec proto.Spec
}

type GargoylePet

type GargoylePet struct {
	core.Pet

	GargoyleStrike *core.Spell
	// contains filtered or unexported fields
}

func (*GargoylePet) ExecuteCustomRotation

func (garg *GargoylePet) ExecuteCustomRotation(sim *core.Simulation)

func (*GargoylePet) GetPet

func (garg *GargoylePet) GetPet() *core.Pet

func (*GargoylePet) Initialize

func (garg *GargoylePet) Initialize()

func (*GargoylePet) Reset

func (garg *GargoylePet) Reset(_ *core.Simulation)

type GhoulPet

type GhoulPet struct {
	core.Pet

	DarkTransformationAura *core.Aura
	Claw                   *core.Spell
	// contains filtered or unexported fields
}

func (*GhoulPet) ExecuteCustomRotation

func (ghoulPet *GhoulPet) ExecuteCustomRotation(sim *core.Simulation)

func (*GhoulPet) GetPet

func (ghoulPet *GhoulPet) GetPet() *core.Pet

func (*GhoulPet) Initialize

func (ghoulPet *GhoulPet) Initialize()

func (*GhoulPet) Reset

func (ghoulPet *GhoulPet) Reset(_ *core.Simulation)

type RuneWeaponPet

type RuneWeaponPet struct {
	core.Pet

	// Diseases
	FrostFeverSpell  *core.Spell
	BloodPlagueSpell *core.Spell
	// contains filtered or unexported fields
}

func (*RuneWeaponPet) AddCopySpell

func (runeWeapon *RuneWeaponPet) AddCopySpell(actionId core.ActionID, spell *core.Spell)

func (*RuneWeaponPet) DiseasesAreActive

func (runeWeapon *RuneWeaponPet) DiseasesAreActive(target *core.Unit) bool

func (*RuneWeaponPet) ExecuteCustomRotation

func (runeWeapon *RuneWeaponPet) ExecuteCustomRotation(_ *core.Simulation)

func (*RuneWeaponPet) GetDiseaseMulti

func (runeWeapon *RuneWeaponPet) GetDiseaseMulti(target *core.Unit, base float64, increase float64) float64

func (*RuneWeaponPet) GetPet

func (runeWeapon *RuneWeaponPet) GetPet() *core.Pet

func (*RuneWeaponPet) Initialize

func (runeWeapon *RuneWeaponPet) Initialize()

func (*RuneWeaponPet) Reset

func (runeWeapon *RuneWeaponPet) Reset(_ *core.Simulation)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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