horse: stringify abilities

This commit is contained in:
2026-01-15 23:46:10 -05:00
parent 7e06c23175
commit b0c555f547
4 changed files with 169 additions and 29 deletions

View File

@@ -0,0 +1,29 @@
// Code generated by "stringer -type AbilityValueUsage -trimprefix ValueUsage -linecomment"; DO NOT EDIT.
package horse
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ValueUsageDirect-1]
_ = x[ValueUsageTeamSpeed-2]
_ = x[ValueUsageTeamStamina-3]
_ = x[ValueUsageTeamPower-4]
_ = x[ValueUsageTeamGuts-5]
_ = x[ValueUsageTeamWit-6]
}
const _AbilityValueUsage_name = "directlyscaling with team Speedscaling with team Staminascaling with team Powerscaling with team Gutsscaling with team Wit"
var _AbilityValueUsage_index = [...]uint8{0, 8, 31, 56, 79, 101, 122}
func (i AbilityValueUsage) String() string {
idx := int(i) - 1
if i < 1 || idx >= len(_AbilityValueUsage_index)-1 {
return "AbilityValueUsage(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _AbilityValueUsage_name[_AbilityValueUsage_index[idx]:_AbilityValueUsage_index[idx+1]]
}