Skip to content

Commit 2c669ff

Browse files
committed
Remove vengeance %
1 parent 799e28f commit 2c669ff

6 files changed

Lines changed: 5 additions & 51 deletions

File tree

proto/apl.proto

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ message APLAction {
8585
}
8686
}
8787

88-
// NextIndex: 102
88+
// NextIndex: 101
8989
message APLValue {
9090
UUID uuid = 87;
9191

@@ -203,7 +203,6 @@ message APLValue {
203203
APLValueFrontOfTarget front_of_target = 63;
204204

205205
// Class or Spec-specific values
206-
APLValueCurrentVengeancePercent current_vengeance_percent = 101;
207206
APLValueTotemRemainingTime totem_remaining_time = 49;
208207
APLValueCatExcessEnergy cat_excess_energy = 52;
209208
APLValueCatNewSavageRoarDuration cat_new_savage_roar_duration = 61;
@@ -701,5 +700,3 @@ message APLValueShamanFireElementalDuration {}
701700
message APLValueMonkCurrentChi {}
702701
message APLValueMonkMaxChi {}
703702
message APLValueBrewmasterMonkCurrentStaggerPercent {}
704-
705-
message APLValueCurrentVengeancePercent {}

sim/core/apl_value.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ func (rot *APLRotation) newAPLValue(config *proto.APLValue) APLValue {
142142
value = rot.newValueFocusTimeToTarget(config.GetFocusTimeToTarget(), config.Uuid)
143143
case *proto.APLValue_CurrentGenericResource:
144144
value = rot.newValueCurrentGenericResource(config.GetCurrentGenericResource(), config.Uuid)
145-
// Tank "resource"
146-
case *proto.APLValue_CurrentVengeancePercent:
147-
value = rot.newValueCurrentVengeancePercent(config.GetCurrentVengeancePercent(), config.Uuid)
148145

149146
// Resources Runes
150147
case *proto.APLValue_CurrentRuneCount:

sim/core/apl_values_resources.go

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -512,34 +512,3 @@ func (value *APLValueCurrentGenericResource) GetInt(sim *Simulation) int32 {
512512
func (value *APLValueCurrentGenericResource) String() string {
513513
return "Current {GENERIC_RESOURCE}"
514514
}
515-
516-
type APLValueCurrentVengeancePercent struct {
517-
DefaultAPLValueImpl
518-
unit *Unit
519-
aura *Aura
520-
}
521-
522-
func (rot *APLRotation) newValueCurrentVengeancePercent(config *proto.APLValueCurrentVengeancePercent, uuid *proto.UUID) APLValue {
523-
unit := rot.unit
524-
if unit == nil {
525-
return nil
526-
}
527-
vengeanceAura := unit.GetAura("Vengeance")
528-
if vengeanceAura == nil {
529-
rot.ValidationMessageByUUID(uuid, proto.LogLevel_Warning, "%s does not know Vengeance", unit.Label)
530-
return nil
531-
}
532-
return &APLValueCurrentVengeancePercent{
533-
unit: unit,
534-
aura: vengeanceAura,
535-
}
536-
}
537-
func (value *APLValueCurrentVengeancePercent) Type() proto.APLValueType {
538-
return proto.APLValueType_ValueTypeFloat
539-
}
540-
func (value *APLValueCurrentVengeancePercent) GetFloat(sim *Simulation) float64 {
541-
return float64(value.aura.GetStacks()) / value.unit.MaxHealth()
542-
}
543-
func (value *APLValueCurrentVengeancePercent) String() string {
544-
return fmt.Sprintf("Current Vengeance %%")
545-
}

sim/monk/brewmaster/TestBrewmaster.results

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,8 +3086,8 @@ dps_results: {
30863086
dps_results: {
30873087
key: "TestBrewmaster-Average-Default"
30883088
value: {
3089-
dps: 117295.68757
3090-
tps: 117295.68757
3089+
dps: 117295.69434
3090+
tps: 117295.69434
30913091
dtps: 43935.51737
30923092
hps: 14907.69275
30933093
}

sim/monk/brewmaster/apl_values.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func (monk *BrewmasterMonk) NewAPLValue(_ *core.APLRotation, config *proto.APLValue) core.APLValue {
1111
switch config.Value.(type) {
1212
case *proto.APLValue_BrewmasterMonkCurrentStaggerPercent:
13-
return monk.newValueCurrentVengeancePercent(config.GetBrewmasterMonkCurrentStaggerPercent(), config.Uuid)
13+
return monk.newValueCurrentStaggerPercent(config.GetBrewmasterMonkCurrentStaggerPercent(), config.Uuid)
1414
default:
1515
return nil
1616
}
@@ -22,7 +22,7 @@ type APLValueBrewmasterMonkCurrentStaggerPercent struct {
2222
aura *core.Aura
2323
}
2424

25-
func (monk *BrewmasterMonk) newValueCurrentVengeancePercent(config *proto.APLValueBrewmasterMonkCurrentStaggerPercent, uuid *proto.UUID) core.APLValue {
25+
func (monk *BrewmasterMonk) newValueCurrentStaggerPercent(config *proto.APLValueBrewmasterMonkCurrentStaggerPercent, uuid *proto.UUID) core.APLValue {
2626
return &APLValueBrewmasterMonkCurrentStaggerPercent{
2727
monk: monk,
2828
aura: monk.Stagger.SelfHot().Aura,

ui/core/components/individual_sim_ui/apl_values.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import {
4141
APLValueCurrentSolarEnergy,
4242
APLValueCurrentTime,
4343
APLValueCurrentTimePercent,
44-
APLValueCurrentVengeancePercent,
4544
APLValueDotIsActive,
4645
APLValueDotRemainingTime,
4746
APLValueDotTickFrequency,
@@ -1326,14 +1325,6 @@ const valueKindFactories: { [f in NonNullable<APLValueKind>]: ValueKindConfig<AP
13261325
}),
13271326

13281327
// Class/spec specific values
1329-
currentVengeancePercent: inputBuilder({
1330-
label: 'Current Vengeance (%)',
1331-
submenu: ['Tank'],
1332-
shortDescription: 'Amount of currently available Vengeance, as a percentage.',
1333-
newValue: APLValueCurrentVengeancePercent.create,
1334-
includeIf: (player: Player<any>, _isPrepull: boolean) => player.getPlayerSpec().isTankSpec,
1335-
fields: [],
1336-
}),
13371328
totemRemainingTime: inputBuilder({
13381329
label: 'Totem Remaining Time',
13391330
submenu: ['Shaman'],

0 commit comments

Comments
 (0)