Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoD cleanup #48

Merged
merged 84 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 81 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
88388a3
Delete assets/img/unholy_rune.png
kayla-glick Dec 23, 2024
bf9f03b
Delete assets/img/death_rune.png
kayla-glick Dec 23, 2024
e454a53
Delete assets/img/blood_rune.png
kayla-glick Dec 23, 2024
560d55a
Delete assets/img/frost_rune.png
kayla-glick Dec 23, 2024
1df7065
Delete sim/paladin/runes.go
kayla-glick Dec 23, 2024
c63fa2e
Update paladin.go
kayla-glick Dec 23, 2024
e7e0169
Delete sim/druid/runes.go
kayla-glick Dec 23, 2024
d6abbb0
Update druid.go
kayla-glick Dec 23, 2024
fa6c335
Delete sim/hunter/runes.go
kayla-glick Dec 23, 2024
577c1e3
Update shaman.go
kayla-glick Dec 23, 2024
a7c80e2
Delete sim/shaman/runes.go
kayla-glick Dec 23, 2024
75d251f
Update hunter.go
kayla-glick Dec 23, 2024
096573e
Update shaman.proto
kayla-glick Dec 23, 2024
439baf3
Update paladin.proto
kayla-glick Dec 23, 2024
92eae63
Update druid.proto
kayla-glick Dec 23, 2024
545135d
Update hunter.proto
kayla-glick Dec 23, 2024
0f31316
Update mage.proto
kayla-glick Dec 23, 2024
54161a4
Update warrior.proto
kayla-glick Dec 23, 2024
0df7fd7
Delete sim/druid/berserk.go
kayla-glick Dec 23, 2024
9d2e13d
Update forms.go
kayla-glick Dec 23, 2024
c32dc59
Update moonfire.go
kayla-glick Dec 23, 2024
abcee5d
Update druid.go
kayla-glick Dec 23, 2024
ffc2d82
Delete sim/druid/savage_roar.go
kayla-glick Dec 23, 2024
faf8409
Delete sim/druid/mangle.go
kayla-glick Dec 23, 2024
7cfe5cb
Delete sim/druid/t2_treants.go
kayla-glick Dec 23, 2024
a8abb5d
Delete sim/druid/sunfire.go
kayla-glick Dec 23, 2024
7c3a6c0
Delete sim/druid/starfall.go
kayla-glick Dec 23, 2024
8745a3c
Delete sim/druid/starsurge.go
kayla-glick Dec 23, 2024
539a358
Update druid.go
kayla-glick Dec 23, 2024
c0b8631
Update shred.go
kayla-glick Dec 23, 2024
3758924
Update rip.go
kayla-glick Dec 23, 2024
9b05a1d
Delete sim/druid/_lacerate.go
kayla-glick Dec 23, 2024
b7775c7
Update _item_sets_pve.go
kayla-glick Dec 23, 2024
a3224c0
Update rip.go
kayla-glick Dec 23, 2024
71bf06d
Delete sim/hunter/carve.go
kayla-glick Dec 23, 2024
385970a
Delete sim/hunter/wyvern_strike.go
kayla-glick Dec 23, 2024
a10a09b
Delete sim/hunter/flanking_strike.go
kayla-glick Dec 23, 2024
4cccc81
Delete sim/hunter/explosive_shot.go
kayla-glick Dec 23, 2024
2214426
Delete sim/hunter/explosive_trap.go
kayla-glick Dec 23, 2024
94e5a90
Delete sim/hunter/kill_shot.go
kayla-glick Dec 23, 2024
7ac2d02
Delete sim/hunter/chimera_shot.go
kayla-glick Dec 23, 2024
f5f1f3e
Update aspects.go
kayla-glick Dec 23, 2024
c73bb7b
Delete sim/hunter/steady_shot.go
kayla-glick Dec 23, 2024
d6095f5
Delete sim/hunter/focus_fire.go
kayla-glick Dec 23, 2024
ed42b85
Update hunter.go
kayla-glick Dec 23, 2024
747cbde
Update hunter.go
kayla-glick Dec 23, 2024
67a24e3
Update raptor_strike.go
kayla-glick Dec 23, 2024
b63169f
Update action_id.ts
kayla-glick Dec 23, 2024
beefaf1
Update raptor_strike.go
kayla-glick Dec 23, 2024
c72ba4d
Update pet.go
kayla-glick Dec 23, 2024
f2c3117
Update volley.go
kayla-glick Dec 23, 2024
dfe7b41
Delete sim/shaman/ancestral_awakening.go
kayla-glick Dec 23, 2024
4e0b473
Delete sim/shaman/earth_shield.go
kayla-glick Dec 23, 2024
d8d0bc3
Delete sim/shaman/ancestral_guidance.go
kayla-glick Dec 23, 2024
40aa481
Update air_totems.go
kayla-glick Dec 23, 2024
2510410
Delete sim/shaman/bloodlust.go
kayla-glick Dec 23, 2024
353489c
Delete sim/shaman/fire_nova.go
kayla-glick Dec 23, 2024
a1a29f5
Delete sim/shaman/feral_spirit.go
kayla-glick Dec 23, 2024
ffa2180
Delete sim/shaman/lava_burst.go
kayla-glick Dec 23, 2024
0cb89e6
Update talents.go
kayla-glick Dec 23, 2024
57eb145
Delete sim/shaman/lava_lash.go
kayla-glick Dec 23, 2024
452d8a2
Delete sim/shaman/overload.go
kayla-glick Dec 23, 2024
9ce96eb
Update electric_spell.go
kayla-glick Dec 23, 2024
5eea4cb
Update chain_lightning.go
kayla-glick Dec 23, 2024
f106e4b
Update forms.go
kayla-glick Dec 23, 2024
636ce12
Update hurricane.go
kayla-glick Dec 23, 2024
746933d
Update innervate.go
kayla-glick Dec 23, 2024
f22c991
Update ferocious_bite.go
kayla-glick Dec 23, 2024
dbef6c7
Update items.go
kayla-glick Dec 23, 2024
68e1bc6
Update rip.go
kayla-glick Dec 23, 2024
d64de8a
Update swipe.go
kayla-glick Dec 23, 2024
a615222
Update wrath.go
kayla-glick Dec 23, 2024
afaa298
Update talents.go
kayla-glick Dec 23, 2024
61a66a3
fix druid errors
kayla-glick Dec 23, 2024
fc9c7c0
hunter cleanup
kayla-glick Dec 23, 2024
d7f33bb
paladin
kayla-glick Dec 23, 2024
b687ab3
paladin items cleanup
kayla-glick Dec 23, 2024
05ebf3d
shaman cleanup
kayla-glick Dec 23, 2024
cf1e859
a little bit more cleanup
kayla-glick Dec 23, 2024
d2390a6
flag cleanup
kayla-glick Dec 23, 2024
5c80c1b
cleaning up JS errors
kayla-glick Dec 23, 2024
19d6855
fix flame shock, update results
kayla-glick Dec 23, 2024
4929ab3
Merge branch 'master' of https://github.com/wowsims/classic into cleanup
kayla-glick Dec 23, 2024
b228275
remove unused overload variables
kayla-glick Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed assets/img/blood_rune.png
Binary file not shown.
Binary file removed assets/img/death_rune.png
Binary file not shown.
Binary file removed assets/img/frost_rune.png
Binary file not shown.
Binary file removed assets/img/unholy_rune.png
Binary file not shown.
3 changes: 0 additions & 3 deletions proto/apl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ message APLValue {
APLValueTotemRemainingTime totem_remaining_time = 49;
// Druid
APLValueCatExcessEnergy cat_excess_energy = 52;
APLValueCatNewSavageRoarDuration cat_new_savage_roar_duration = 61;
// Warlock
APLValueWarlockShouldRecastDrainSoul warlock_should_recast_drain_soul = 59;
APLValueWarlockShouldRefreshCorruption warlock_should_refresh_corruption = 60;
Expand Down Expand Up @@ -518,8 +517,6 @@ message APLValueTotemRemainingTime {
}
message APLValueCatExcessEnergy {
}
message APLValueCatNewSavageRoarDuration {
}
message APLValueWarlockShouldRecastDrainSoul {
}
message APLValueWarlockShouldRefreshCorruption {
Expand Down
39 changes: 0 additions & 39 deletions proto/druid.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,45 +60,6 @@ message DruidTalents {
bool swiftmend = 47;
}

enum DruidRune {
DruidRuneNone = 0;

RuneHelmGaleWinds = 417135;
RuneHelmGore = 417145;
RuneHelmImprovedBarkskin = 431388;

RuneCloakImprovedSwipe = 439510;
RuneCloakTreeofLife = 439733;
RuneCloakStarfall = 439748;

RuneChestFuryOfStormrage = 414799;
RuneChestLivingSeed = 414677;
RuneChestSurvivalOfTheFittest = 411115;
RuneChestWildStrikes = 407977;

RuneBracersEfflorescence = 417149;
RuneBracersElunesFires = 414719;
RuneBracersImpFrenziedRegen = 431389;

RuneHandsMangle = 407995;
RuneHandsSunfire = 414684;
RuneHandsWildGrowth = 408120;
RuneHandsSkullBash = 410176;

RuneBeltBerserk = 417141;
RuneBeltEclipse = 408248;
RuneBeltNourish = 408247;

RuneLegsStarsurge = 417157;
RuneLegsSavageRoar = 407988;
RuneLegsLifebloom = 409824;
RuneLegsLacerate = 414644;

RuneFeetDreamstate = 408258;
RuneFeetKingOfTheJungle = 417046;
RuneFeetSurvivalInstincts = 408024;
}

message BalanceDruid {
message Rotation {
}
Expand Down
41 changes: 0 additions & 41 deletions proto/hunter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,47 +102,6 @@ message HunterPetTalents {
int32 silverback = 37;
}

enum HunterRune {
HunterRuneNone = 0;

RuneHelmRapidKilling = 415405;
RuneHelmLockAndLoad = 415413;
RuneHelmCatlikeReflexes = 415428;

RuneCloakImprovedVolley = 440520;
RuneCloakResourcefulness = 440529;
RuneCloakHitAndRun = 440533;

RuneChestBeastmastery = 409368;
RuneChestMasterMarksman = 409428;
RuneChestLoneWolf = 415370;
RuneChestCobraStrikes = 425713;

RuneBracersRaptorFury = 415358;
RuneBracersFocusFire = 428726;
RuneBracersTNT = 428717;

RuneHandsCobraSlayer = 458393;
RuneHandsChimeraShot = 409433;
RuneHandsExplosiveShot = 409552;
RuneHandsCarve = 425711;

RuneBeltExposeWeakness = 409504;
RuneBeltMeleeSpecialist = 415352;
RuneBeltSteadyShot = 437123;

RuneLegsKillShot = 409593;
RuneLegsFlankingStrike = 415320;
RuneLegsSniperTraining = 415399;
RuneLegsSerpentSpread = 425738;

RuneBootsTrapLauncher = 409541;
RuneBootsDualWieldSpecialization = 409687;
RuneBootsWyvernStrike = 458479;

RuneUtilityHeartOfTheLion = 409580;
}

message Hunter {
message Rotation {
enum RotationType {
Expand Down
40 changes: 0 additions & 40 deletions proto/mage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,46 +60,6 @@ message MageTalents {
bool ice_barrier = 49;
}

enum MageRune {
MageRuneNone = 0;

RuneHelmAdvancedWarding = 428738;
RuneHelmDeepFreeze = 428739;
RuneHelmHotStreak = 400624;
RuneHelmTemporalAnomaly = 429305;

RuneCloakArcaneBarrage = 400610;
RuneCloakOverheat = 400615;
RuneCloakFrozenOrb = 440802;

RuneChestBurnout = 412286;
RuneChestEnlightenment = 412324;
RuneChestFingersOfFrost = 400647;
RuneChestRegeneration = 401417;

RuneBracersMoltenArmor = 428741;
RuneBracersDisplacement = 428863;
RuneBracersBalefireBolt = 428878;
RuneBracersRewindTime = 401462;

RuneHandsArcaneBlast = 400574;
RuneHandsIceLance = 400640;
RuneHandsLivingBomb = 400613;

RuneBeltFrostfireBolt = 401502;
RuneBeltMissileBarrage = 400588;
RuneBeltSpellfrostBolt = 412532;

RuneLegsArcaneSurge = 425124;
RuneLegsIceVeins = 425121;
RuneLegsLivingFlame = 401556;
RuneLegsMassRegeneration = 412510;

RuneFeetBrainFreeze = 400731;
RuneFeetChronoPreservation = 436516;
RuneFeetSpellPower = 412322;
}

message Mage {
message Rotation {
}
Expand Down
45 changes: 0 additions & 45 deletions proto/paladin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,51 +55,6 @@ message PaladinTalents {
bool repentance = 44;
}

enum PaladinRune {
PaladinRuneNone = 0;

RuneHeadFanaticism = 429142;
RuneHeadImprovedSanctuary = 429133;
RuneHeadWrath = 429139;

RuneCloakShieldOfRighteousness = 440658;
RuneCloakVindicator = 440666;
RuneCloakShockAndAwe = 462834;
RuneCloakRighteousVengeance = 440672;

RuneChestDivineStorm = 407778;
RuneChestAegis = 425589;
RuneChestHallowedGround = 458287;
RuneChestDivineLight = 458856;

RuneWristHammerOfTheRighteous = 407632;
RuneWristLightsGrace = 428909;
RuneWristPurifyingPower = 429144;
RuneWristImprovedHammerOfWrath = 429152;

RuneHandsBeaconOfLight = 407613;
RuneHandsHandOfReckoning = 407631;
RuneHandsCrusaderStrike = 407676;

RuneWaistInfusionOfLight = 426065;
RuneWaistSheathOfLight = 426158;
RuneWaistMalleableProtection = 458318;

RuneLegsAuraMastery = 407624;
RuneLegsAvengersShield = 407669;
RuneLegsDivineSacrifice = 407804;
RuneLegsInspirationExemplar = 407880;
RuneLegsRebuke = 425609;

RuneFeetSacredShield = 412019;
RuneFeetGuardedByTheLight = 415059;
RuneFeetTheArtOfWar = 426157;

RuneUtilitySealOfMartyrdom = 407798;
RuneUtilityExorcist = 415076;
RuneUtilityAvengingWrath = 407788;
}

enum Blessings {
BlessingUnknown = 0;
BlessingOfKings = 1;
Expand Down
41 changes: 0 additions & 41 deletions proto/shaman.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,47 +57,6 @@ message ShamanTalents {
bool mana_tide_totem = 46;
}

enum ShamanRune {
RuneNone = 0;

RuneHelmBurn = 415231;
RuneHelmMentalDexterity = 415140;
RuneHelmTidalWaves = 432042;

RuneCloakCoherence = 415096;
RuneCloakStormEarthAndFire = 440569;
RuneCloakFeralSpirit = 440580;

RuneChestDualWieldSpec = 408496;
RuneChestHealingRain = 415236;
RuneChestOverload = 408438;
RuneChestShieldMastery = 408524;
RuneChestTwoHandedMastery = 436364;

RuneBracersOvercharged = 432140;
RuneBracersRiptide = 408521;
RuneBracersRollingThunder = 432056;
RuneBracersStaticShock = 432134;

RuneHandsLavaBurst = 408490;
RuneHandsLavaLash = 408507;
RuneHandsMoltenBlast = 425339;
RuneHandsWaterShield = 408510;

RuneWaistFireNova = 408339;
RuneWaistMaelstromWeapon = 408498;
RuneWaistPowerSurge = 415100;

RuneLegsAncestralGuidance = 409324;
RuneLegsEarthShield = 408514;
RuneLegsWayOfEarth = 408531;
RuneLegsGreaterGhostWolf = 415813;

RuneFeetAncestralAwakening = 425858;
RuneFeetDecoyTotem = 425874;
RuneFeetSpiritOfTheAlpha = 408696;
}

enum EarthTotem {
NoEarthTotem = 0;
StrengthOfEarthTotem = 1;
Expand Down
52 changes: 0 additions & 52 deletions proto/warrior.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,58 +63,6 @@ message WarriorTalents {
bool shield_slam = 52;
}

enum WarriorRune {
WarriorRuneNone = 0;

// Helm
RuneEndlessRage = 403218;
RuneTasteForBlood = 426953;
RuneVigilance = 426972;
RuneShieldMastery = 426980;

// Cloak
RuneSuddenDeath = 440113;
RuneFreshMeat = 440484;
RuneShockwave = 440488;

// Chest
RuneFlagellation = 402877;
RuneRagingBlow = 402911;
RuneBloodFrenzy = 412507;
RuneWarbringer = 425421;

// Bracers
RuneRampage = 426940;
RuneSwordAndBoard = 426978;
RuneWreckingCrew = 427065;

// Hands
RuneVictoryRush = 402927;
RuneDevastate = 403195;

RuneSingleMindedFury = 413404;
RuneQuickStrike = 429765;

// Waist
RuneFocusedRage = 29787;
RunePreciseTiming = 402922;
RuneBloodSurge = 413380;

// Legs
RuneFuriousThunder = 403219;
RuneFrenziedAssault = 425412;
RuneConsumedByRage = 425418;

// Feet
RuneEnragedRegeneration = 403467;
RuneIntervene = 403472;
RuneRallyingCry = 426491;
RuneGladiatorStance = 412513;

// Utility
RuneCommandingShout = 403446;
}

enum WarriorShout {
WarriorShoutNone = 0;
WarriorShoutBattle = 1;
Expand Down
4 changes: 0 additions & 4 deletions sim/core/apl.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package core

import (
"fmt"
"slices"
"time"

"github.com/wowsims/classic/sim/core/proto"
Expand Down Expand Up @@ -170,9 +169,6 @@ func (rot *APLRotation) reset(sim *Simulation) {
rot.inLoop = false
rot.interruptChannelIf = nil
rot.allowChannelRecastOnInterrupt = false
rot.allowCastWhileChanneling = slices.ContainsFunc(rot.unit.Spellbook, func(spell *Spell) bool {
return spell.Flags.Matches(SpellFlagCastWhileChanneling)
})
for _, action := range rot.allAPLActions() {
action.impl.Reset(sim)
}
Expand Down
42 changes: 1 addition & 41 deletions sim/core/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,10 @@ func (spell *Spell) makeCastFunc(config CastConfig) CastSuccessFunc {
}

if hc := spell.Unit.Hardcast; spell.Unit.IsCasting(sim) {
// Attempt to use a queued cast-while-casting spell mid-hard cast
if cwc := spell.Unit.castWhileCastingAction; cwc != nil {
cwc.OnAction(sim)
}

return spell.castFailureHelper(sim, "casting/channeling %v for %s, curTime = %s", hc.ActionID, hc.Expires-sim.CurrentTime, sim.CurrentTime)
}

if dot := spell.Unit.ChanneledDot; spell.Unit.IsChanneling(sim) && !spell.Flags.Matches(SpellFlagCastWhileChanneling) {
// Attempt to use a queued cast-while-casting spell mid-hard cast
if cwc := spell.Unit.castWhileCastingAction; cwc != nil {
cwc.OnAction(sim)
}

if dot := spell.Unit.ChanneledDot; spell.Unit.IsChanneling(sim) {
return spell.castFailureHelper(sim, "channeling %v for %s, curTime = %s", dot.ActionID, dot.expires-sim.CurrentTime, sim.CurrentTime)
}

Expand All @@ -233,36 +223,6 @@ func (spell *Spell) makeCastFunc(config CastConfig) CastSuccessFunc {
spell.Unit.AutoAttacks.StopMeleeUntil(sim, restartMeleeAt, false)
}

// Castable-while-casting spells
if spell.Flags.Matches(SpellFlagCastWhileCasting) {
// Queue cast-while-casting spells to cast 750 ms into the next hard-cast
pa := &PendingAction{
NextActionAt: sim.CurrentTime + GCDDefault/2,
OnAction: func(sim *Simulation) {
spell.LastCastAt = sim.CurrentTime

if sim.Log != nil && !spell.Flags.Matches(SpellFlagNoLogs) {
spell.Unit.Log(sim, "Casting %s (Cost = %0.03f, Cast Time = %s, Effective Time = %s)",
spell.ActionID, max(0, spell.CurCast.Cost), spell.CurCast.CastTime, spell.CurCast.EffectiveTime())
spell.Unit.Log(sim, "Completed cast %s", spell.ActionID)
}

if spell.Cost != nil {
spell.Cost.SpendCost(sim, spell)
}

spell.applyEffects(sim, target)

if !spell.Flags.Matches(SpellFlagNoOnCastComplete) {
spell.Unit.OnCastComplete(sim, spell)
}
},
}
spell.Unit.castWhileCastingAction = pa
sim.AddPendingAction(pa)
return true
}

// Hardcasts
if spell.CurCast.CastTime > 0 {
if sim.Log != nil && !spell.Flags.Matches(SpellFlagNoLogs) {
Expand Down
Loading
Loading