Skip to content

Commit

Permalink
hutao a2 (#600)
Browse files Browse the repository at this point in the history
* hutao a2

* Update hutao.go

rename

* KOLI LEAVE ME ALONE QIQIFALLEN
  • Loading branch information
srliao authored Jun 14, 2022
1 parent 16d262e commit be5c995
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/characters/hutao/abil.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (c *char) Skill(p map[string]int) (int, int) {
f, a := c.ActionFrames(core.ActionSkill, p)

c.Core.Status.AddStatus("paramita", 540+f) //to account for animation
c.AddTask(c.a2, "hutao-a2", 540+f)
c.Core.Log.NewEvent("Paramita acivated", core.LogCharacterEvent, c.Index, "expiry", c.Core.F+540+f)
//figure out atk buff
c.ppBonus = ppatk[c.TalentLvlSkill()] * c.MaxHP()
Expand Down
18 changes: 18 additions & 0 deletions internal/characters/hutao/hutao.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,24 @@ func (c *char) ActionStam(a core.ActionType, p map[string]int) float64 {

}

func (c *char) a2() {
m := make([]float64, core.EndStatType)
m[core.CR] = 0.12
for i, char := range c.Core.Chars {
//does not affect hutao
if c.Index == i {
continue
}
char.AddMod(core.CharStatMod{
Key: "hutao-a1",
Expiry: c.Core.F + 480,
Amount: func() ([]float64, bool) {
return m, true
},
})
}
}

func (c *char) a4() {
m := make([]float64, core.EndStatType)
m[core.PyroP] = 0.33
Expand Down

0 comments on commit be5c995

Please sign in to comment.