Skip to content

Commit

Permalink
First Batch
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinerarogue committed Nov 22, 2024
1 parent c15b535 commit 121bd89
Show file tree
Hide file tree
Showing 32 changed files with 40 additions and 480 deletions.
47 changes: 0 additions & 47 deletions proto/rogue.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,53 +62,6 @@ message RogueTalents {
bool premeditation = 51;
}

enum RogueRune {
RogueRuneNone = 0;

// Helm
RuneFocusedAttacks = 432256;
RuneCombatPotency = 432259;
RuneHonorAmongThieves = 432264;

// Cloak
RuneFanOfKnives = 409240;
RuneCrimsonTempest = 412096;
RuneBlunderbuss = 436564;

// Chest
RuneQuickDraw = 398196;
RuneDeadlyBrew = 399965;
RuneJustAFleshWound = 400014;
RuneSlaughterFromTheShadows = 424925;

// Bracers
RuneCutToTheChase = 432271;
RuneUnfairAdvantage = 432273;
RuneCarnage = 432276;

// Gloves
RuneMutilate = 399956;
RuneShadowstrike = 399985;
RuneSaberSlash = 424785;
RuneMainGauche = 424919;
RuneCutthroat = 462708;

// Waist
RuneShurikenToss = 399986;
RuneShadowstep = 400101;
RunePoisonedKnife = 425012;

// Legs
RuneEnvenom = 399963;
RuneBetweenTheEyes = 400009;
RuneBladeDance = 400012;

// Boots
RuneRollingWithThePunches = 400016;
RuneWaylay = 408700;
RuneMasterOfSubtlety = 425096;
}

message RogueOptions {
int32 HonorAmongThievesCritRate = 1;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
75 changes: 0 additions & 75 deletions sim/rogue/_shiv.go

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 2 additions & 13 deletions sim/rogue/ambush.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"github.com/wowsims/classic/sim/core"
"github.com/wowsims/classic/sim/core/proto"
)

func (rogue *Rogue) registerAmbushSpell() {
Expand All @@ -22,9 +21,6 @@ func (rogue *Rogue) registerAmbushSpell() {
60: 11269,
}[rogue.Level]

// waylay := rogue.HasRune(proto.RogueRune_RuneWaylay)
hasCutthroatRune := rogue.HasRune(proto.RogueRune_RuneCutthroat)

damageMultiplier := 2.5 * []float64{1, 1.04, 1.08, 1.12, 1.16, 1.2}[rogue.Talents.Opportunity]

rogue.Ambush = rogue.RegisterSpell(core.SpellConfig{
Expand All @@ -49,7 +45,7 @@ func (rogue *Rogue) registerAmbushSpell() {
if !rogue.HasDagger(core.MainHand) {
return false
}
if hasCutthroatRune && (rogue.CutthroatProcAura.IsActive() || rogue.IsStealthed()) {
if rogue.IsStealthed() {
return true
}
return !rogue.PseudoStats.InFrontOfTarget && rogue.IsStealthed()
Expand All @@ -65,20 +61,13 @@ func (rogue *Rogue) registerAmbushSpell() {
baseDamage := (flatDamageBonus + spell.Unit.MHNormalizedWeaponDamage(sim, spell.MeleeAttackPower()))

result := spell.CalcAndDealDamage(sim, target, baseDamage, spell.OutcomeMeleeSpecialNoBlockDodgeParry)
if hasCutthroatRune && rogue.CutthroatProcAura.IsActive() {
rogue.CutthroatProcAura.Deactivate(sim)
}

if result.Landed() {
rogue.AddComboPoints(sim, 1, target, spell.ComboPointMetrics())
/** Currently does not apply to bosses due to being a slow
if waylay {
rogue.WaylayAuras.Get(target).Activate(sim)
} */
} else {
spell.IssueRefund(sim)
}
},

RelatedAuras: []core.AuraArray{rogue.WaylayAuras},
})
}
15 changes: 1 addition & 14 deletions sim/rogue/backstab.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"github.com/wowsims/classic/sim/core"
"github.com/wowsims/classic/sim/core/proto"
)

func (rogue *Rogue) registerBackstabSpell() {
Expand All @@ -22,9 +21,6 @@ func (rogue *Rogue) registerBackstabSpell() {
60: core.TernaryInt32(core.IncludeAQ, 25300, 11281),
}[rogue.Level]

// waylay := rogue.HasRune(proto.RogueRune_RuneWaylay)
hasCutthroatRune := rogue.HasRune(proto.RogueRune_RuneCutthroat)

damageMultiplier := 1.5 * []float64{1, 1.04, 1.08, 1.12, 1.16, 1.2}[rogue.Talents.Opportunity]

rogue.Backstab = rogue.RegisterSpell(core.SpellConfig{
Expand All @@ -49,7 +45,7 @@ func (rogue *Rogue) registerBackstabSpell() {
if !rogue.HasDagger(core.MainHand) {
return false
}
return hasCutthroatRune || !rogue.PseudoStats.InFrontOfTarget
return !rogue.PseudoStats.InFrontOfTarget
},

BonusCritRating: 10 * core.CritRatingPerCritChance * float64(rogue.Talents.ImprovedBackstab),
Expand All @@ -67,18 +63,9 @@ func (rogue *Rogue) registerBackstabSpell() {

if result.Landed() {
rogue.AddComboPoints(sim, 1, target, spell.ComboPointMetrics())
if hasCutthroatRune {
rogue.rollCutthroat(sim)
}
/** Currently does not apply to bosses due to being a slow
if waylay {
rogue.WaylayAuras.Get(target).Activate(sim)
} */
} else {
spell.IssueRefund(sim)
}
},

RelatedAuras: []core.AuraArray{rogue.WaylayAuras},
})
}
6 changes: 0 additions & 6 deletions sim/rogue/eviscerate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"github.com/wowsims/classic/sim/core"
"github.com/wowsims/classic/sim/core/proto"
)

func (rogue *Rogue) registerEviscerate() {
Expand Down Expand Up @@ -36,8 +35,6 @@ func (rogue *Rogue) registerEviscerate() {
60: 31016,
}[rogue.Level]

cutToTheChase := rogue.HasRune(proto.RogueRune_RuneCutToTheChase)

rogue.Eviscerate = rogue.RegisterSpell(core.SpellConfig{
SpellCode: SpellCode_RogueEviscerate,
ActionID: core.ActionID{SpellID: spellID},
Expand Down Expand Up @@ -83,9 +80,6 @@ func (rogue *Rogue) registerEviscerate() {

if result.Landed() {
rogue.SpendComboPoints(sim, spell)
if cutToTheChase {
rogue.ApplyCutToTheChase(sim)
}
} else {
spell.IssueRefund(sim)
}
Expand Down
7 changes: 2 additions & 5 deletions sim/rogue/garrote.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"github.com/wowsims/classic/sim/core"
"github.com/wowsims/classic/sim/core/proto"
)

func (rogue *Rogue) registerGarrote() {
Expand All @@ -22,15 +21,13 @@ func (rogue *Rogue) registerGarrote() {
60: 11290,
}[rogue.Level]

hasCutthroatRune := rogue.HasRune(proto.RogueRune_RuneCutthroat)

rogue.Garrote = rogue.GetOrRegisterSpell(core.SpellConfig{
SpellCode: SpellCode_RogueGarrote,
ActionID: core.ActionID{SpellID: spellID},
SpellSchool: core.SpellSchoolPhysical,
DefenseType: core.DefenseTypeMelee,
ProcMask: core.ProcMaskMeleeMHSpecial,
Flags: SpellFlagBuilder | SpellFlagCarnage | core.SpellFlagMeleeMetrics | core.SpellFlagAPL,
Flags: SpellFlagBuilder | core.SpellFlagMeleeMetrics | core.SpellFlagAPL,

EnergyCost: core.EnergyCostOptions{
Cost: 50.0 - 10*float64(rogue.Talents.DirtyDeeds),
Expand All @@ -46,7 +43,7 @@ func (rogue *Rogue) registerGarrote() {
if !rogue.IsStealthed() {
return false
}
return hasCutthroatRune || !rogue.PseudoStats.InFrontOfTarget
return !rogue.PseudoStats.InFrontOfTarget
},

DamageMultiplier: 1 +
Expand Down
Loading

0 comments on commit 121bd89

Please sign in to comment.