Files
horse/supportcardrarity_string.go
T
zephyr c0ddc32997
ci/woodpecker/push/horsebot Pipeline was successful
ci/woodpecker/push/zenno Pipeline was successful
horse, mdb, cmd/horsebot: support cards
Fixes #37.
2026-08-02 22:45:34 -04:00

27 lines
710 B
Go

// Code generated by "stringer -type SupportCardRarity"; 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[R-1]
_ = x[SR-2]
_ = x[SSR-3]
}
const _SupportCardRarity_name = "RSRSSR"
var _SupportCardRarity_index = [...]uint8{0, 1, 3, 6}
func (i SupportCardRarity) String() string {
idx := int(i) - 1
if i < 1 || idx >= len(_SupportCardRarity_index)-1 {
return "SupportCardRarity(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _SupportCardRarity_name[_SupportCardRarity_index[idx]:_SupportCardRarity_index[idx+1]]
}