horse, cmd/horsebot: various fixes for skill formatting

This commit is contained in:
2026-05-04 15:35:54 -04:00
parent fae9c38098
commit 0c2db10082
2 changed files with 6 additions and 4 deletions

View File

@@ -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"...)
}