39 lines
1.0 KiB
Go
39 lines
1.0 KiB
Go
// Code generated by "stringer -type DurScale -trimprefix Duration -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[DurationDirect-1]
|
|
_ = x[DurationFrontDistance-2]
|
|
_ = x[DurationRemainingHP-3]
|
|
_ = x[DurationIncrementPass-4]
|
|
_ = x[DurationMidSideBlock-5]
|
|
_ = x[DurationRemainingHP2-7]
|
|
}
|
|
|
|
const (
|
|
_DurScale_name_0 = "directlyscaling with distance from the frontscaling with remaining HPincreasing with each pass while activescaling with mid-race phase blocked side time"
|
|
_DurScale_name_1 = "scaling with remaining HP"
|
|
)
|
|
|
|
var (
|
|
_DurScale_index_0 = [...]uint8{0, 8, 44, 69, 107, 152}
|
|
)
|
|
|
|
func (i DurScale) String() string {
|
|
switch {
|
|
case 1 <= i && i <= 5:
|
|
i -= 1
|
|
return _DurScale_name_0[_DurScale_index_0[i]:_DurScale_index_0[i+1]]
|
|
case i == 7:
|
|
return _DurScale_name_1
|
|
default:
|
|
return "DurScale(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|