Skip to content

Commit

Permalink
Merge branch 'add-obsidiancodex' into temp
Browse files Browse the repository at this point in the history
  • Loading branch information
keng committed Sep 8, 2024
2 parents 905ec93 + 2711978 commit 3ffdbff
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/artifacts/obsidiancodex/obsidiancodex.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@ func (s *Set) Init() error { return nil }
func NewSet(c *core.Core, char *character.CharWrapper, count int, param map[string]int) (info.Set, error) {
s := Set{Count: count}

ns := nightsoul.New(c, char)

if count >= 2 {
m := make([]float64, attributes.EndStatType)
m[attributes.DmgP] = 0.15
char.AddStatMod(character.StatMod{
Base: modifier.NewBase("obsidiancodex-2pc", -1),
Amount: func() ([]float64, bool) {
if ns.HasBlessing() && (c.Player.Active() == char.Index) {
return m, true
if !char.StatusIsActive(nightsoul.NightsoulBlessingStatus) {
return nil, false
}
if c.Player.Active() != char.Index {
return nil, false
}
return nil, false
return m, true
},
})
}
Expand Down

0 comments on commit 3ffdbff

Please sign in to comment.