horse: go generate

This commit is contained in:
2026-08-02 02:37:24 -04:00
parent efcdf5d525
commit 9521b5e7c5
3 changed files with 14 additions and 9 deletions
+2 -2
View File
@@ -27,13 +27,13 @@ const (
_AbilityTarget_name_0 = "selfothers with Sympathy" _AbilityTarget_name_0 = "selfothers with Sympathy"
_AbilityTarget_name_1 = "others in view" _AbilityTarget_name_1 = "others in view"
_AbilityTarget_name_2 = "frontmost" _AbilityTarget_name_2 = "frontmost"
_AbilityTarget_name_3 = "others aheadothers behindall teammates" _AbilityTarget_name_3 = "aheadbehindall teammates"
_AbilityTarget_name_4 = "using stylerushing others aheadrushing others behindrushing using stylespecific characterwhosoever triggered this skill" _AbilityTarget_name_4 = "using stylerushing others aheadrushing others behindrushing using stylespecific characterwhosoever triggered this skill"
) )
var ( var (
_AbilityTarget_index_0 = [...]uint8{0, 4, 24} _AbilityTarget_index_0 = [...]uint8{0, 4, 24}
_AbilityTarget_index_3 = [...]uint8{0, 12, 25, 38} _AbilityTarget_index_3 = [...]uint8{0, 5, 11, 24}
_AbilityTarget_index_4 = [...]uint8{0, 11, 31, 52, 71, 89, 119} _AbilityTarget_index_4 = [...]uint8{0, 11, 31, 52, 71, 89, 119}
) )
+5 -1
View File
@@ -26,6 +26,7 @@ func _() {
_ = x[AbilityRushedChance-29] _ = x[AbilityRushedChance-29]
_ = x[AbilityAccel-31] _ = x[AbilityAccel-31]
_ = x[AbilityLaneChange-35] _ = x[AbilityLaneChange-35]
_ = x[AbilityActivateRare-37]
} }
const ( const (
@@ -35,7 +36,8 @@ const (
_AbilityType_name_3 = "Current speedCurrent speed" _AbilityType_name_3 = "Current speedCurrent speed"
_AbilityType_name_4 = "Target speedLane change speedRushed chance" _AbilityType_name_4 = "Target speedLane change speedRushed chance"
_AbilityType_name_5 = "Acceleration" _AbilityType_name_5 = "Acceleration"
_AbilityType_name_6 = "Forced lane change" _AbilityType_name_6 = "Set target lane"
_AbilityType_name_7 = "Activate rare skills"
) )
var ( var (
@@ -67,6 +69,8 @@ func (i AbilityType) String() string {
return _AbilityType_name_5 return _AbilityType_name_5
case i == 35: case i == 35:
return _AbilityType_name_6 return _AbilityType_name_6
case i == 37:
return _AbilityType_name_7
default: default:
return "AbilityType(" + strconv.FormatInt(int64(i), 10) + ")" return "AbilityType(" + strconv.FormatInt(int64(i), 10) + ")"
} }
+7 -6
View File
@@ -18,6 +18,7 @@ func _() {
_ = x[ValueUsageRandom-8] _ = x[ValueUsageRandom-8]
_ = x[ValueUsageRandom2-9] _ = x[ValueUsageRandom2-9]
_ = x[ValueUsageClimax-10] _ = x[ValueUsageClimax-10]
_ = x[ValueUsageFans-12]
_ = x[ValueUsageMaxStat-13] _ = x[ValueUsageMaxStat-13]
_ = x[ValueUsageGreenCount-14] _ = x[ValueUsageGreenCount-14]
_ = x[ValueUsageDistAdd-19] _ = x[ValueUsageDistAdd-19]
@@ -29,15 +30,15 @@ func _() {
} }
const ( const (
_AbilityValueUsage_name_0 = "directlyscaling with the number of skillsscaling with team Speedscaling with team Staminascaling with team Powerscaling with team Gutsscaling with team Witwith a random 0× to 0.04× multiplierwith a random 0× to 0.04× multiplierscaling with the number of races won in training" _AbilityValueUsage_name_0 = "directlyscaling with the number of skillsscaling with team Speedscaling with team Staminascaling with team Powerscaling with team Gutsscaling with team Witwith a random 0× to 0.04× multiplierwith a random 0× to 0.04× multiplierscaling with the number of races won in the career"
_AbilityValueUsage_name_1 = "scaling with the highest raw statscaling with the number of Passive skills activated" _AbilityValueUsage_name_1 = "scaling with the number of fans earned in the careerscaling with the highest raw statscaling with the number of Passive skills activated"
_AbilityValueUsage_name_2 = "plus extra when far from the leadscaling with mid-race phase blocked side time" _AbilityValueUsage_name_2 = "plus extra when far from the leadscaling with mid-race phase blocked side time"
_AbilityValueUsage_name_3 = "scaling with overall speedscaling with overall speedscaling with L'Arc global potentialscaling with the longest lead obtained in the first ⅔" _AbilityValueUsage_name_3 = "scaling with overall speedscaling with overall speedscaling with L'Arc global potentialscaling with the longest lead obtained in the first ⅔"
) )
var ( var (
_AbilityValueUsage_index_0 = [...]uint16{0, 8, 41, 64, 89, 112, 134, 155, 193, 231, 279} _AbilityValueUsage_index_0 = [...]uint16{0, 8, 41, 64, 89, 112, 134, 155, 193, 231, 281}
_AbilityValueUsage_index_1 = [...]uint8{0, 33, 84} _AbilityValueUsage_index_1 = [...]uint8{0, 52, 85, 136}
_AbilityValueUsage_index_2 = [...]uint8{0, 33, 78} _AbilityValueUsage_index_2 = [...]uint8{0, 33, 78}
_AbilityValueUsage_index_3 = [...]uint8{0, 26, 52, 87, 142} _AbilityValueUsage_index_3 = [...]uint8{0, 26, 52, 87, 142}
) )
@@ -47,8 +48,8 @@ func (i AbilityValueUsage) String() string {
case 1 <= i && i <= 10: case 1 <= i && i <= 10:
i -= 1 i -= 1
return _AbilityValueUsage_name_0[_AbilityValueUsage_index_0[i]:_AbilityValueUsage_index_0[i+1]] return _AbilityValueUsage_name_0[_AbilityValueUsage_index_0[i]:_AbilityValueUsage_index_0[i+1]]
case 13 <= i && i <= 14: case 12 <= i && i <= 14:
i -= 13 i -= 12
return _AbilityValueUsage_name_1[_AbilityValueUsage_index_1[i]:_AbilityValueUsage_index_1[i+1]] return _AbilityValueUsage_name_1[_AbilityValueUsage_index_1[i]:_AbilityValueUsage_index_1[i+1]]
case 19 <= i && i <= 20: case 19 <= i && i <= 20:
i -= 19 i -= 19