Skip to content

Commit

Permalink
Merge pull request #3709 from vigo2/vigo/dk-stuff
Browse files Browse the repository at this point in the history
vigo/dk-stuff
  • Loading branch information
vigo2 authored Sep 22, 2023
2 parents e5791e4 + 28a4add commit 915cc0d
Show file tree
Hide file tree
Showing 11 changed files with 356 additions and 743 deletions.
20 changes: 10 additions & 10 deletions sim/core/apl_values_runes.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ func (rot *APLRotation) newValueCurrentRuneCount(config *proto.APLValueCurrentRu
func (value *APLValueCurrentRuneCount) Type() proto.APLValueType {
return proto.APLValueType_ValueTypeInt
}
func (value *APLValueCurrentRuneCount) GetInt(sim *Simulation) int32 {
func (value *APLValueCurrentRuneCount) GetInt(_ *Simulation) int32 {
switch value.runeType {
case proto.APLValueRuneType_RuneBlood:
return int32(value.unit.CurrentBloodRunes())
return int32(value.unit.CurrentBloodOrDeathRunes())
case proto.APLValueRuneType_RuneFrost:
return int32(value.unit.CurrentFrostRunes())
return int32(value.unit.CurrentFrostOrDeathRunes())
case proto.APLValueRuneType_RuneUnholy:
return int32(value.unit.CurrentUnholyRunes())
return int32(value.unit.CurrentUnholyOrDeathRunes())
case proto.APLValueRuneType_RuneDeath:
return int32(value.unit.CurrentDeathRunes())
}
Expand Down Expand Up @@ -64,14 +64,14 @@ func (rot *APLRotation) newValueCurrentNonDeathRuneCount(config *proto.APLValueC
func (value *APLValueCurrentNonDeathRuneCount) Type() proto.APLValueType {
return proto.APLValueType_ValueTypeInt
}
func (value *APLValueCurrentNonDeathRuneCount) GetInt(sim *Simulation) int32 {
func (value *APLValueCurrentNonDeathRuneCount) GetInt(_ *Simulation) int32 {
switch value.runeType {
case proto.APLValueRuneType_RuneBlood:
return int32(value.unit.NormalCurrentBloodRunes())
return int32(value.unit.CurrentBloodRunes())
case proto.APLValueRuneType_RuneFrost:
return int32(value.unit.NormalCurrentFrostRunes())
return int32(value.unit.CurrentFrostRunes())
case proto.APLValueRuneType_RuneUnholy:
return int32(value.unit.NormalCurrentUnholyRunes())
return int32(value.unit.CurrentUnholyRunes())
}
return 0
}
Expand Down Expand Up @@ -99,7 +99,7 @@ func (rot *APLRotation) newValueCurrentRuneActive(config *proto.APLValueCurrentR
func (value *APLValueCurrentRuneActive) Type() proto.APLValueType {
return proto.APLValueType_ValueTypeBool
}
func (value *APLValueCurrentRuneActive) GetBool(sim *Simulation) bool {
func (value *APLValueCurrentRuneActive) GetBool(_ *Simulation) bool {
return value.unit.RuneIsActive(value.runeSlot)
}
func (value *APLValueCurrentRuneActive) String() string {
Expand All @@ -126,7 +126,7 @@ func (rot *APLRotation) newValueCurrentRuneDeath(config *proto.APLValueCurrentRu
func (value *APLValueCurrentRuneDeath) Type() proto.APLValueType {
return proto.APLValueType_ValueTypeBool
}
func (value *APLValueCurrentRuneDeath) GetBool(sim *Simulation) bool {
func (value *APLValueCurrentRuneDeath) GetBool(_ *Simulation) bool {
return value.unit.RuneIsDeath(int8(value.runeSlot))
}
func (value *APLValueCurrentRuneDeath) String() string {
Expand Down
Loading

0 comments on commit 915cc0d

Please sign in to comment.