horse, cmd/horsebot: various fixes for skill formatting
This commit is contained in:
8
skill.go
8
skill.go
@@ -78,9 +78,10 @@ func (a Ability) String() string {
|
||||
r = append(r, (a.Value * 100).String()...)
|
||||
r = append(r, '%')
|
||||
case AbilityGateDelay:
|
||||
// This skill type in particular should be × instead of +.
|
||||
r = append(r[:len(r)-1], "×"...)
|
||||
r = append(r, a.Value.String()...)
|
||||
r = append(r, "×"...)
|
||||
case AbilityFrenzy:
|
||||
case AbilityFrenzy, AbilityAddGateDelay:
|
||||
r = append(r, a.Value.String()...)
|
||||
r = append(r, 's')
|
||||
case AbilityCurrentSpeed, AbilityTargetSpeed, AbilityLaneSpeed:
|
||||
@@ -90,6 +91,9 @@ func (a Ability) String() string {
|
||||
r = append(r, a.Value.String()...)
|
||||
r = append(r, " m/s²"...)
|
||||
case AbilityLaneChange:
|
||||
// This skill type should be "to 0.5 track widths."
|
||||
// (The only skill that has it is Dodging Danger/Sixth Sense.)
|
||||
r = append(r[:len(r)-1], "to "...)
|
||||
r = append(r, a.Value.String()...)
|
||||
r = append(r, " track widths"...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user