|
9 | 9 | "github.com/genshinsim/gcsim/pkg/core/attributes" |
10 | 10 | "github.com/genshinsim/gcsim/pkg/core/combat" |
11 | 11 | "github.com/genshinsim/gcsim/pkg/core/geometry" |
| 12 | + "github.com/genshinsim/gcsim/pkg/core/glog" |
12 | 13 | ) |
13 | 14 |
|
14 | 15 | const windup = 2 |
|
24 | 25 | attackOffsets = [][]float64{{-0.1}, {-0.1}, {1.5, 1.5}, {1.1}, {-0.1}} |
25 | 26 |
|
26 | 27 | attackSkillFrames [][]int |
27 | | - attackSkillHitmarks = [][]int{{11 + windup}, {11}, {11, 11 + 12}, {11, 11 + 16}, {25}} |
| 28 | + attackSkillHitmarks = [][]int{{10 + windup}, {11}, {11, 11 + 12}, {11, 11 + 16}, {25}} |
28 | 29 | attackSkillHitlagHaltFrame = [][]float64{{0.02}, {0.03}, {0.03, 0.00}, {0.03, 0.00}, {0.06}} |
29 | 30 | attackSkillHitlagFactor = [][]float64{{0.01}, {0.01}, {0.01, 0.00}, {0.01, 0.00}, {0.01}} |
30 | 31 | attackSkillHitboxes = [][][]float64{{{7, 2.4}}, {{7, 3}}, {{6, 3.6}, {6, 3.6}}, {{5, 3.6}, {5, 3.6}}, {{11, 3.6}}} |
@@ -131,6 +132,7 @@ func (c *char) Attack(p map[string]int) (action.Info, error) { |
131 | 132 |
|
132 | 133 | c.prevNASkillState = false |
133 | 134 | normalCounter := c.NormalCounter |
| 135 | + |
134 | 136 | defer c.AdvanceNormalIndex() |
135 | 137 |
|
136 | 138 | return action.Info{ |
@@ -188,7 +190,15 @@ func (c *char) AttackSkill(p map[string]int) (action.Info, error) { |
188 | 190 | c.prevNASkillState = true |
189 | 191 | normalCounter := c.NormalCounter |
190 | 192 | defer c.AdvanceNormalIndex() |
| 193 | + str := "" |
| 194 | + for i := range 5 { |
191 | 195 |
|
| 196 | + for _, atkspd := range []float64{0.0, .06, 0.08, .10, .12, .15, .16, .18, .20, .25, .28, .30, .35, .38, .40, .45, .50, .55, .60} { |
| 197 | + str += fmt.Sprint(frames.AtkSpdAdjust(attackSkillFrames[i][action.ActionAttack], atkspd), "\t") |
| 198 | + } |
| 199 | + str += "\n" |
| 200 | + } |
| 201 | + c.Core.Log.NewEventBuildMsg(glog.LogCharacterEvent, c.Index, str) |
192 | 202 | return action.Info{ |
193 | 203 | Frames: func(next action.Action) int { |
194 | 204 | return frames.AtkSpdAdjust(attackSkillFrames[normalCounter][next], c.Stat(attributes.AtkSpd)) - windupRemove |
|
0 commit comments