horse: improve single target ahead/behind skills wording
ci/woodpecker/push/horsebot Pipeline was successful
ci/woodpecker/push/zenno Pipeline was successful

Fixes #28.
This commit is contained in:
2026-07-31 22:33:55 -04:00
parent 656e155625
commit 8faf5cadc7
+11 -2
View File
@@ -122,6 +122,15 @@ func (a Ability) String() string {
case 4: case 4:
r = append(r, " End Closer"...) r = append(r, " End Closer"...)
} }
case TargetAhead, TargetBehind:
r = append(r, " to "...)
if a.TargetValue == 1 {
r = append(r, "the runner"...)
} else {
r = strconv.AppendInt(r, int64(a.TargetValue), 10)
}
r = append(r, ' ')
r = append(r, a.Target.String()...)
default: default:
// For other targeting types, TargetValue is either irrelevant or limit. // For other targeting types, TargetValue is either irrelevant or limit.
r = append(r, " to "...) r = append(r, " to "...)
@@ -208,8 +217,8 @@ const (
TargetSympathizers AbilityTarget = 2 // others with Sympathy TargetSympathizers AbilityTarget = 2 // others with Sympathy
TargetInView AbilityTarget = 4 // others in view TargetInView AbilityTarget = 4 // others in view
TargetFrontmost AbilityTarget = 7 // frontmost TargetFrontmost AbilityTarget = 7 // frontmost
TargetAhead AbilityTarget = 9 // others ahead TargetAhead AbilityTarget = 9 // ahead
TargetBehind AbilityTarget = 10 // others behind TargetBehind AbilityTarget = 10 // behind
TargetAllTeammates AbilityTarget = 11 // all teammates TargetAllTeammates AbilityTarget = 11 // all teammates
TargetStyle AbilityTarget = 18 // using style TargetStyle AbilityTarget = 18 // using style
TargetRushingAhead AbilityTarget = 19 // rushing others ahead TargetRushingAhead AbilityTarget = 19 // rushing others ahead