horse: define rushed chance mod and current speed up ability types

Fixes #17.
This commit is contained in:
2026-06-14 12:04:02 -04:00
parent b217691c8a
commit 7f02925ff7
2 changed files with 16 additions and 7 deletions
+6 -1
View File
@@ -78,6 +78,9 @@ func (a Ability) String() string {
case AbilityHP:
r = append(r, (a.Value * 100).String()...)
r = append(r, '%')
case AbilityRushedChance:
r = append(r, a.Value.String()...)
r = append(r, '%')
case AbilityGateDelay:
// This skill type in particular should be × instead of +.
r = append(r[:len(r)-1], "×"...)
@@ -85,7 +88,7 @@ func (a Ability) String() string {
case AbilityFrenzy, AbilityAddGateDelay:
r = append(r, a.Value.String()...)
r = append(r, 's')
case AbilityCurrentSpeed, AbilityTargetSpeed, AbilityLaneSpeed:
case AbilityCurrentSpeed, AbilityCurrentSpeedUp, AbilityTargetSpeed, AbilityLaneSpeed:
r = append(r, a.Value.String()...)
r = append(r, " m/s"...)
case AbilityAccel:
@@ -160,8 +163,10 @@ const (
AbilityFrenzy AbilityType = 13 // Frenzy
AbilityAddGateDelay AbilityType = 14 // Added gate delay
AbilityCurrentSpeed AbilityType = 21 // Current speed
AbilityCurrentSpeedUp AbilityType = 22 // Current speed
AbilityTargetSpeed AbilityType = 27 // Target speed
AbilityLaneSpeed AbilityType = 28 // Lane change speed
AbilityRushedChance AbilityType = 29 // Rushed chance
AbilityAccel AbilityType = 31 // Acceleration
AbilityLaneChange AbilityType = 35 // Forced lane change
)