horse, mdb: put skill groups in skills
ci/woodpecker/push/horsebot Pipeline was successful
ci/woodpecker/push/zenno Pipeline was successful

Fixes #13.
This commit is contained in:
2026-09-15 11:00:10 -04:00
parent 78aee43e5f
commit 6828b1bd88
4 changed files with 355 additions and 172 deletions
+182 -95
View File
@@ -49,11 +49,16 @@ func TestSkills(t *testing.T) {
ID: 10351,
Name: "V Is for Victory!",
Description: "Moderately increase velocity with winning ambition when positioned toward the front on the final straight after engaging in a challenge on the final corner or later.",
Group: 1035,
Rarity: 3,
GroupRate: 1,
GradeValue: 240,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 100351, GroupRate: 1, Rarity: 4},
{ID: 10351, GroupRate: 1, Rarity: 3},
{ID: 900351, GroupRate: 2, Rarity: 1},
},
Group: 1035,
Rarity: 3,
GroupRate: 1,
GradeValue: 240,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "is_finalcorner==1&blocked_side_continuetime>=2",
@@ -81,11 +86,15 @@ func TestSkills(t *testing.T) {
ID: 100011,
Name: "Shooting Star",
Description: "Ride the momentum to increase velocity and very slightly increase acceleration after passing another runner toward the front late-race.",
Group: 10001,
Rarity: 5,
GroupRate: 1,
GradeValue: 340,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 100011, GroupRate: 1, Rarity: 5},
{ID: 900011, GroupRate: 2, Rarity: 1},
},
Group: 10001,
Rarity: 5,
GroupRate: 1,
GradeValue: 340,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -120,11 +129,16 @@ func TestSkills(t *testing.T) {
ID: 100351,
Name: "Our Ticket to Win!",
Description: "Increase velocity with winning ambition when positioned toward the front on the final straight after engaging in a challenge on the final corner or later.",
Group: 10035,
Rarity: 4,
GroupRate: 1,
GradeValue: 340,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 100351, GroupRate: 1, Rarity: 4},
{ID: 10351, GroupRate: 1, Rarity: 3},
{ID: 900351, GroupRate: 2, Rarity: 1},
},
Group: 10035,
Rarity: 4,
GroupRate: 1,
GradeValue: 340,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "is_finalcorner==1&blocked_side_continuetime>=2",
@@ -152,11 +166,15 @@ func TestSkills(t *testing.T) {
ID: 110241,
Name: "Flowery☆Maneuver",
Description: "Increase velocity when passing another runner toward the front on the final corner. If passing toward the back, increase acceleration instead.",
Group: 11024,
Rarity: 5,
GroupRate: 1,
GradeValue: 340,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 110241, GroupRate: 1, Rarity: 5},
{ID: 910241, GroupRate: 2, Rarity: 1},
},
Group: 11024,
Rarity: 5,
GroupRate: 1,
GradeValue: 340,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -200,11 +218,17 @@ func TestSkills(t *testing.T) {
ID: 200011,
Name: "Right-Handed ◎",
Description: "Increase performance on right-handed tracks.",
Group: 20001,
Rarity: 1,
GroupRate: 2,
GradeValue: 174,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200013, GroupRate: -1, Rarity: 1},
{ID: 200012, GroupRate: 1, Rarity: 1},
{ID: 200011, GroupRate: 2, Rarity: 1},
{ID: 200014, GroupRate: 3, Rarity: 2},
},
Group: 20001,
Rarity: 1,
GroupRate: 2,
GradeValue: 174,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -231,11 +255,17 @@ func TestSkills(t *testing.T) {
ID: 200012,
Name: "Right-Handed ○",
Description: "Moderately increase performance on right-handed tracks.",
Group: 20001,
Rarity: 1,
GroupRate: 1,
GradeValue: 129,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200013, GroupRate: -1, Rarity: 1},
{ID: 200012, GroupRate: 1, Rarity: 1},
{ID: 200011, GroupRate: 2, Rarity: 1},
{ID: 200014, GroupRate: 3, Rarity: 2},
},
Group: 20001,
Rarity: 1,
GroupRate: 1,
GradeValue: 129,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -262,11 +292,17 @@ func TestSkills(t *testing.T) {
ID: 200013,
Name: "Right-Handed ×",
Description: "Moderately decrease performance on right-handed tracks.",
Group: 20001,
Rarity: 1,
GroupRate: -1,
GradeValue: -129,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200013, GroupRate: -1, Rarity: 1},
{ID: 200012, GroupRate: 1, Rarity: 1},
{ID: 200011, GroupRate: 2, Rarity: 1},
{ID: 200014, GroupRate: 3, Rarity: 2},
},
Group: 20001,
Rarity: 1,
GroupRate: -1,
GradeValue: -129,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -293,11 +329,17 @@ func TestSkills(t *testing.T) {
ID: 200014,
Name: "Right-Handed Demon",
Description: "Increase proficiency in right-handed tracks, increasing Speed and Power.",
Group: 20001,
Rarity: 2,
GroupRate: 3,
GradeValue: 461,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200013, GroupRate: -1, Rarity: 1},
{ID: 200012, GroupRate: 1, Rarity: 1},
{ID: 200011, GroupRate: 2, Rarity: 1},
{ID: 200014, GroupRate: 3, Rarity: 2},
},
Group: 20001,
Rarity: 2,
GroupRate: 3,
GradeValue: 461,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -331,11 +373,16 @@ func TestSkills(t *testing.T) {
ID: 200021,
Name: "Left-Handed ◎",
Description: "Increase performance on left-handed tracks.",
Group: 20002,
Rarity: 1,
GroupRate: 2,
GradeValue: 174,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200023, GroupRate: -1, Rarity: 1},
{ID: 200022, GroupRate: 1, Rarity: 1},
{ID: 200021, GroupRate: 2, Rarity: 1},
},
Group: 20002,
Rarity: 1,
GroupRate: 2,
GradeValue: 174,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -362,11 +409,16 @@ func TestSkills(t *testing.T) {
ID: 200022,
Name: "Left-Handed ○",
Description: "Moderately increase performance on left-handed tracks.",
Group: 20002,
Rarity: 1,
GroupRate: 1,
GradeValue: 129,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200023, GroupRate: -1, Rarity: 1},
{ID: 200022, GroupRate: 1, Rarity: 1},
{ID: 200021, GroupRate: 2, Rarity: 1},
},
Group: 20002,
Rarity: 1,
GroupRate: 1,
GradeValue: 129,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -393,11 +445,16 @@ func TestSkills(t *testing.T) {
ID: 200023,
Name: "Left-Handed ×",
Description: "Moderately decrease performance on left-handed tracks.",
Group: 20002,
Rarity: 1,
GroupRate: -1,
GradeValue: -129,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 200023, GroupRate: -1, Rarity: 1},
{ID: 200022, GroupRate: 1, Rarity: 1},
{ID: 200021, GroupRate: 2, Rarity: 1},
},
Group: 20002,
Rarity: 1,
GroupRate: -1,
GradeValue: -129,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -424,11 +481,15 @@ func TestSkills(t *testing.T) {
ID: 200361,
Name: "Beeline Burst",
Description: "Increase velocity on a straight.",
Group: 20036,
Rarity: 2,
GroupRate: 2,
GradeValue: 508,
WitCheck: true,
GroupSkills: []horse.GroupSkill{
{ID: 200362, GroupRate: 1, Rarity: 1},
{ID: 200361, GroupRate: 2, Rarity: 2},
},
Group: 20036,
Rarity: 2,
GroupRate: 2,
GradeValue: 508,
WitCheck: true,
Activations: []horse.Activation{
{
Precondition: "",
@@ -455,11 +516,15 @@ func TestSkills(t *testing.T) {
ID: 200362,
Name: "Straightaway Adept",
Description: "Slightly increase velocity on a straight.",
Group: 20036,
Rarity: 1,
GroupRate: 1,
GradeValue: 217,
WitCheck: true,
GroupSkills: []horse.GroupSkill{
{ID: 200362, GroupRate: 1, Rarity: 1},
{ID: 200361, GroupRate: 2, Rarity: 2},
},
Group: 20036,
Rarity: 1,
GroupRate: 1,
GradeValue: 217,
WitCheck: true,
Activations: []horse.Activation{
{
Precondition: "",
@@ -486,11 +551,14 @@ func TestSkills(t *testing.T) {
ID: 200831,
Name: "Subdued Front Runners",
Description: "Slightly increase fatigue for front runners early-race.",
Group: 20083,
Rarity: 1,
GroupRate: 1,
GradeValue: 217,
WitCheck: true,
GroupSkills: []horse.GroupSkill{
{ID: 200831, GroupRate: 1, Rarity: 1},
},
Group: 20083,
Rarity: 1,
GroupRate: 1,
GradeValue: 217,
WitCheck: true,
Activations: []horse.Activation{
{
Precondition: "",
@@ -517,11 +585,14 @@ func TestSkills(t *testing.T) {
ID: 201801,
Name: "♡ 3D Nail Art",
Description: "Moderately decrease performance on firm ground.",
Group: 20180,
Rarity: 1,
GroupRate: -1,
GradeValue: -129,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 201801, GroupRate: -1, Rarity: 1},
},
Group: 20180,
Rarity: 1,
GroupRate: -1,
GradeValue: -129,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -548,11 +619,14 @@ func TestSkills(t *testing.T) {
ID: 300011,
Name: "Unquenched Thirst",
Description: "Moderately increase performance with the desire to race.",
Group: 30001,
Rarity: 1,
GroupRate: 1,
GradeValue: 0,
WitCheck: false,
GroupSkills: []horse.GroupSkill{
{ID: 300011, GroupRate: 1, Rarity: 1},
},
Group: 30001,
Rarity: 1,
GroupRate: 1,
GradeValue: 0,
WitCheck: false,
Activations: []horse.Activation{
{
Precondition: "",
@@ -579,11 +653,15 @@ func TestSkills(t *testing.T) {
ID: 900011,
Name: "Shooting Star",
Description: "Slightly increase velocity and very minimally increase acceleration after passing another runner toward the front late-race.",
Group: 10001,
Rarity: 1,
GroupRate: 2,
GradeValue: 180,
WitCheck: true,
GroupSkills: []horse.GroupSkill{
{ID: 100011, GroupRate: 1, Rarity: 5},
{ID: 900011, GroupRate: 2, Rarity: 1},
},
Group: 10001,
Rarity: 1,
GroupRate: 2,
GradeValue: 180,
WitCheck: true,
Activations: []horse.Activation{
{
Precondition: "",
@@ -618,11 +696,16 @@ func TestSkills(t *testing.T) {
ID: 900351,
Name: "Our Ticket to Win!",
Description: "Slightly increase velocity when positioned toward the front on the final straight after engaging in a challenge on the final corner or later.",
Group: 10035,
Rarity: 1,
GroupRate: 2,
GradeValue: 180,
WitCheck: true,
GroupSkills: []horse.GroupSkill{
{ID: 100351, GroupRate: 1, Rarity: 4},
{ID: 10351, GroupRate: 1, Rarity: 3},
{ID: 900351, GroupRate: 2, Rarity: 1},
},
Group: 10035,
Rarity: 1,
GroupRate: 2,
GradeValue: 180,
WitCheck: true,
Activations: []horse.Activation{
{
Precondition: "is_finalcorner==1&blocked_side_continuetime>=2",
@@ -650,11 +733,15 @@ func TestSkills(t *testing.T) {
ID: 910241,
Name: "Flowery☆Maneuver",
Description: "Slightly increase velocity when passing another runner toward the front on the final corner. If passing toward the back, slightly increase acceleration instead.",
Group: 11024,
Rarity: 1,
GroupRate: 2,
GradeValue: 180,
WitCheck: true,
GroupSkills: []horse.GroupSkill{
{ID: 110241, GroupRate: 1, Rarity: 5},
{ID: 910241, GroupRate: 2, Rarity: 1},
},
Group: 11024,
Rarity: 1,
GroupRate: 2,
GradeValue: 180,
WitCheck: true,
Activations: []horse.Activation{
{
Precondition: "",