horse: define rushed chance mod and current speed up ability types
Fixes #17.
This commit is contained in:
+10
-6
@@ -20,8 +20,10 @@ func _() {
|
|||||||
_ = x[AbilityFrenzy-13]
|
_ = x[AbilityFrenzy-13]
|
||||||
_ = x[AbilityAddGateDelay-14]
|
_ = x[AbilityAddGateDelay-14]
|
||||||
_ = x[AbilityCurrentSpeed-21]
|
_ = x[AbilityCurrentSpeed-21]
|
||||||
|
_ = x[AbilityCurrentSpeedUp-22]
|
||||||
_ = x[AbilityTargetSpeed-27]
|
_ = x[AbilityTargetSpeed-27]
|
||||||
_ = x[AbilityLaneSpeed-28]
|
_ = x[AbilityLaneSpeed-28]
|
||||||
|
_ = x[AbilityRushedChance-29]
|
||||||
_ = x[AbilityAccel-31]
|
_ = x[AbilityAccel-31]
|
||||||
_ = x[AbilityLaneChange-35]
|
_ = x[AbilityLaneChange-35]
|
||||||
}
|
}
|
||||||
@@ -30,8 +32,8 @@ const (
|
|||||||
_AbilityType_name_0 = "SpeedStaminaPowerGutsWitEnable Great Escape"
|
_AbilityType_name_0 = "SpeedStaminaPowerGutsWitEnable Great Escape"
|
||||||
_AbilityType_name_1 = "VisionHPGate delay multiplier"
|
_AbilityType_name_1 = "VisionHPGate delay multiplier"
|
||||||
_AbilityType_name_2 = "FrenzyAdded gate delay"
|
_AbilityType_name_2 = "FrenzyAdded gate delay"
|
||||||
_AbilityType_name_3 = "Current speed"
|
_AbilityType_name_3 = "Current speedCurrent speed"
|
||||||
_AbilityType_name_4 = "Target speedLane change speed"
|
_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 = "Forced lane change"
|
||||||
)
|
)
|
||||||
@@ -40,7 +42,8 @@ var (
|
|||||||
_AbilityType_index_0 = [...]uint8{0, 5, 12, 17, 21, 24, 43}
|
_AbilityType_index_0 = [...]uint8{0, 5, 12, 17, 21, 24, 43}
|
||||||
_AbilityType_index_1 = [...]uint8{0, 6, 8, 29}
|
_AbilityType_index_1 = [...]uint8{0, 6, 8, 29}
|
||||||
_AbilityType_index_2 = [...]uint8{0, 6, 22}
|
_AbilityType_index_2 = [...]uint8{0, 6, 22}
|
||||||
_AbilityType_index_4 = [...]uint8{0, 12, 29}
|
_AbilityType_index_3 = [...]uint8{0, 13, 26}
|
||||||
|
_AbilityType_index_4 = [...]uint8{0, 12, 29, 42}
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i AbilityType) String() string {
|
func (i AbilityType) String() string {
|
||||||
@@ -54,9 +57,10 @@ func (i AbilityType) String() string {
|
|||||||
case 13 <= i && i <= 14:
|
case 13 <= i && i <= 14:
|
||||||
i -= 13
|
i -= 13
|
||||||
return _AbilityType_name_2[_AbilityType_index_2[i]:_AbilityType_index_2[i+1]]
|
return _AbilityType_name_2[_AbilityType_index_2[i]:_AbilityType_index_2[i+1]]
|
||||||
case i == 21:
|
case 21 <= i && i <= 22:
|
||||||
return _AbilityType_name_3
|
i -= 21
|
||||||
case 27 <= i && i <= 28:
|
return _AbilityType_name_3[_AbilityType_index_3[i]:_AbilityType_index_3[i+1]]
|
||||||
|
case 27 <= i && i <= 29:
|
||||||
i -= 27
|
i -= 27
|
||||||
return _AbilityType_name_4[_AbilityType_index_4[i]:_AbilityType_index_4[i+1]]
|
return _AbilityType_name_4[_AbilityType_index_4[i]:_AbilityType_index_4[i+1]]
|
||||||
case i == 31:
|
case i == 31:
|
||||||
|
|||||||
@@ -78,6 +78,9 @@ func (a Ability) String() string {
|
|||||||
case AbilityHP:
|
case AbilityHP:
|
||||||
r = append(r, (a.Value * 100).String()...)
|
r = append(r, (a.Value * 100).String()...)
|
||||||
r = append(r, '%')
|
r = append(r, '%')
|
||||||
|
case AbilityRushedChance:
|
||||||
|
r = append(r, a.Value.String()...)
|
||||||
|
r = append(r, '%')
|
||||||
case AbilityGateDelay:
|
case AbilityGateDelay:
|
||||||
// This skill type in particular should be × instead of +.
|
// This skill type in particular should be × instead of +.
|
||||||
r = append(r[:len(r)-1], "×"...)
|
r = append(r[:len(r)-1], "×"...)
|
||||||
@@ -85,7 +88,7 @@ func (a Ability) String() string {
|
|||||||
case AbilityFrenzy, AbilityAddGateDelay:
|
case AbilityFrenzy, AbilityAddGateDelay:
|
||||||
r = append(r, a.Value.String()...)
|
r = append(r, a.Value.String()...)
|
||||||
r = append(r, 's')
|
r = append(r, 's')
|
||||||
case AbilityCurrentSpeed, AbilityTargetSpeed, AbilityLaneSpeed:
|
case AbilityCurrentSpeed, AbilityCurrentSpeedUp, AbilityTargetSpeed, AbilityLaneSpeed:
|
||||||
r = append(r, a.Value.String()...)
|
r = append(r, a.Value.String()...)
|
||||||
r = append(r, " m/s"...)
|
r = append(r, " m/s"...)
|
||||||
case AbilityAccel:
|
case AbilityAccel:
|
||||||
@@ -160,8 +163,10 @@ const (
|
|||||||
AbilityFrenzy AbilityType = 13 // Frenzy
|
AbilityFrenzy AbilityType = 13 // Frenzy
|
||||||
AbilityAddGateDelay AbilityType = 14 // Added gate delay
|
AbilityAddGateDelay AbilityType = 14 // Added gate delay
|
||||||
AbilityCurrentSpeed AbilityType = 21 // Current speed
|
AbilityCurrentSpeed AbilityType = 21 // Current speed
|
||||||
|
AbilityCurrentSpeedUp AbilityType = 22 // Current speed
|
||||||
AbilityTargetSpeed AbilityType = 27 // Target speed
|
AbilityTargetSpeed AbilityType = 27 // Target speed
|
||||||
AbilityLaneSpeed AbilityType = 28 // Lane change speed
|
AbilityLaneSpeed AbilityType = 28 // Lane change speed
|
||||||
|
AbilityRushedChance AbilityType = 29 // Rushed chance
|
||||||
AbilityAccel AbilityType = 31 // Acceleration
|
AbilityAccel AbilityType = 31 // Acceleration
|
||||||
AbilityLaneChange AbilityType = 35 // Forced lane change
|
AbilityLaneChange AbilityType = 35 // Forced lane change
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user