rogue

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SpellFlagBuilder     = core.SpellFlagAgentReserved2
	SpellFlagFinisher    = core.SpellFlagAgentReserved3
	SpellFlagColdBlooded = core.SpellFlagAgentReserved4
)
View Source
const (
	DDBC_Hemorrhage = iota

	DDBC_Total
)

Damage Done By Caster setup

View Source
const (
	RogueSpellFlagNone int64 = 0
	RogueSpellAmbush   int64 = 1 << iota
	RogueSpellBackstab
	RogueSpellEviscerate
	RogueSpellExposeArmor
	RogueSpellFeint
	RogueSpellGarrote
	RogueSpellGouge
	RogueSpellRupture
	RogueSpellSinisterStrike
	RogueSpellSliceAndDice
	RogueSpellStealth
	RogueSpellVanish
	RogueSpellHemorrhage
	RogueSpellPremeditation
	RogueSpellPreparation
	RogueSpellShadowstep
	RogueSpellAdrenalineRush
	RogueSpellBladeFlurry
	RogueSpellColdBlood
	RogueSpellMutilate
	RogueSpellMutilateHit
	RogueSpellRiposte
	RogueSpellGhostlyStrike
	RogueSpellInstantPoison
	RogueSpellWoundPoison
	RogueSpellDeadlyPoison

	RogueSpellLast
	RogueSpellsAll    = RogueSpellLast<<1 - 1
	RogueSpellActives = RogueSpellGhostlyStrike<<1 - 1

	RogueSpellPoisons        = RogueSpellWoundPoison | RogueSpellDeadlyPoison | RogueSpellInstantPoison
	RogueSpellLethality      = RogueSpellSinisterStrike | RogueSpellGouge | RogueSpellBackstab | RogueSpellGhostlyStrike | RogueSpellMutilateHit | RogueSpellHemorrhage
	RogueSpellDirectFinisher = RogueSpellEviscerate
	RogueSpellFinisher       = RogueSpellDirectFinisher | RogueSpellSliceAndDice | RogueSpellRupture | RogueSpellExposeArmor
)
View Source
const RogueBleedTag = "RogueBleed"

Variables

View Source
var ItemSetBonescytheArmor = core.NewItemSet(core.ItemSet{
	ID:    524,
	Name:  "Bonescythe Armor",
	Slots: shared.TierThreeSlots,
	Bonuses: map[int32]core.ApplySetBonus{

		4: applyBonescytheHeadRush,
		6: shared.ParsedSetBonus(bonescytheThreat),

		8: applyBonescytheRevealedFlaw,
	},
})

Tier 3

View Source
var TalentTreeSizes = [3]int{17, 19, 18}

Functions

func RegisterRogue

func RegisterRogue()

Types

type Rogue

type Rogue struct {
	core.Character

	ClassSpellScaling float64

	Talents              *proto.RogueTalents
	Options              *proto.RogueOptions
	AssassinationOptions *proto.Rogue_Options

	AdditiveEnergyRegenBonus float64

	BladeFlurry    *core.Spell
	DeadlyPoison   *core.Spell
	Feint          *core.Spell
	Garrote        *core.Spell
	Ambush         *core.Spell
	Hemorrhage     *core.Spell
	GhostlyStrike  *core.Spell
	Riposte        *core.Spell
	WoundPoison    *core.Spell
	Mutilate       *core.Spell
	MutilateMH     *core.Spell
	MutilateOH     *core.Spell
	SinisterStrike *core.Spell
	Shank          *core.Spell
	DeathMark      *core.Spell
	Shadowstep     *core.Spell
	Preparation    *core.Spell
	Premeditation  *core.Spell
	ColdBlood      *core.Spell
	Vanish         *core.Spell
	AdrenalineRush *core.Spell
	InstantPoison  *core.Spell

	ExposeArmor  *core.Spell
	Rupture      *core.Spell
	SliceAndDice *core.Spell

	AdrenalineRushAura   *core.Aura
	BladeFlurryAura      *core.Aura
	ExposeArmorAuras     core.AuraArray
	SliceAndDiceAura     *core.Aura
	MasterOfSubtletyAura *core.Aura
	ShadowstepAura       *core.Aura
	StealthAura          *core.Aura
	GhostlyStrikeAura    *core.Aura

	WoundPoisonDebuffAuras core.AuraArray

	HasPvpEnergy              bool
	DeathmantleBonus          float64
	SliceAndDiceBonusDuration time.Duration
	// contains filtered or unexported fields
}

func NewRogue

func NewRogue(character *core.Character, options *proto.Player, talents string) *Rogue

func (*Rogue) AddPartyBuffs

func (rogue *Rogue) AddPartyBuffs(_ *proto.PartyBuffs)

func (*Rogue) AddRaidBuffs

func (rogue *Rogue) AddRaidBuffs(_ *proto.RaidBuffs)

func (*Rogue) ApplyAdditiveEnergyRegenBonus

func (rogue *Rogue) ApplyAdditiveEnergyRegenBonus(sim *core.Simulation, increment float64)

func (*Rogue) ApplyFinisher

func (rogue *Rogue) ApplyFinisher(sim *core.Simulation, target *core.Unit, spell *core.Spell)

Apply the effect of successfully casting a finisher to combo points

func (*Rogue) ApplyTalents

func (rogue *Rogue) ApplyTalents()

ApplyTalents implements core.Agent.

func (*Rogue) BreakStealth

func (rogue *Rogue) BreakStealth(sim *core.Simulation)

Deactivate Stealth if it is active. This must be added to all abilities that cause Stealth to fade.

func (*Rogue) CanApplyExposeArmorAura

func (rogue *Rogue) CanApplyExposeArmorAura(target *core.Unit) bool

func (*Rogue) FinisherExtraCastCondition

func (rogue *Rogue) FinisherExtraCastCondition(sim *core.Simulation, target *core.Unit) bool

func (*Rogue) GetBaseDamageFromCoefficient

func (rogue *Rogue) GetBaseDamageFromCoefficient(c float64) float64

func (*Rogue) GetCharacter

func (rogue *Rogue) GetCharacter() *core.Character

func (*Rogue) GetExposeArmorValue

func (rogue *Rogue) GetExposeArmorValue(target *core.Unit) float64

func (*Rogue) GetRogue

func (rogue *Rogue) GetRogue() *Rogue

func (*Rogue) HasDagger

func (rogue *Rogue) HasDagger(hand core.Hand) bool

Does the rogue have a dagger equipped in the specified hand (main or offhand)?

func (*Rogue) HasThrown

func (rogue *Rogue) HasThrown() bool

Does the rogue have a thrown weapon equipped in the ranged slot?

func (*Rogue) Initialize

func (rogue *Rogue) Initialize()

func (*Rogue) IsStealthed

func (rogue *Rogue) IsStealthed() bool

Check if the rogue is considered in "stealth" for the purpose of casting abilities

func (*Rogue) OnEncounterStart

func (rogue *Rogue) OnEncounterStart(sim *core.Simulation)

func (*Rogue) Reset

func (rogue *Rogue) Reset(sim *core.Simulation)

type RogueAgent

type RogueAgent interface {
	GetRogue() *Rogue
}

Agent is a generic way to access underlying rogue on any of the agents.

Jump to

Keyboard shortcuts

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