-
Notifications
You must be signed in to change notification settings - Fork 44
/
items.go
37 lines (31 loc) · 1.2 KB
/
items.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package paladin
import (
"time"
"github.com/wowsims/sod/sim/core"
"github.com/wowsims/sod/sim/core/proto"
"github.com/wowsims/sod/sim/core/stats"
)
// Libram IDs
const (
SanctifiedOrb = 20512
LibramOfHope = 22401
LibramOfFervor = 23203
LibramDiscardedTenetsOfTheSilverHand = 209574
LibramOfBenediction = 215435
LibramOfDraconicDestruction = 221457
)
func init() {
core.NewSimpleStatOffensiveTrinketEffect(SanctifiedOrb, stats.Stats{stats.MeleeCrit: 3 * core.CritRatingPerCritChance, stats.SpellCrit: 3 * core.CritRatingPerCritChance}, time.Second*25, time.Minute*3)
core.NewItemEffect(LibramDiscardedTenetsOfTheSilverHand, func(agent core.Agent) {
character := agent.GetCharacter()
if character.CurrentTarget.MobType == proto.MobType_MobTypeDemon || character.CurrentTarget.MobType == proto.MobType_MobTypeUndead {
character.PseudoStats.MobTypeAttackPower += 15
}
})
core.NewItemEffect(LibramOfDraconicDestruction, func(agent core.Agent) {
character := agent.GetCharacter()
if character.CurrentTarget.MobType == proto.MobType_MobTypeDragonkin {
character.PseudoStats.MobTypeAttackPower += 36
}
})
}