Support naiveSkill for GITADORA.

Fixes #624
This commit is contained in:
zkldi
2022-01-30 23:05:27 +00:00
parent 3868c939ec
commit 0985fb4e8f
5 changed files with 16 additions and 9 deletions
+1
View File
@@ -39,6 +39,7 @@ not generally be shown to end users.
- [ENH] Ratings are nullable now. (#611)
- [ENH] Pre-HV Leggendaria songIDs are now properly resolved. (#487)
- [ENH] IIDX Imports are now significantly faster.
- [ENH] GITADORA now supports `naiveSkill` -- Although GITADORA support isn't actually on yet. (#624)
*****
+1 -1
View File
@@ -82,7 +82,7 @@
"rimraf": "3.0.2",
"safe-json-stringify": "1.2.0",
"seq-logging": "1.1.1",
"tachi-common": "0.5.9",
"tachi-common": "0.5.10",
"ts-node": "10.0.0",
"tsconfig-paths": "3.10.1",
"typescript": "4.3.4",
+4 -4
View File
@@ -63,7 +63,7 @@ specifiers:
safe-json-stringify: 1.2.0
seq-logging: 1.1.1
supertest: 6.1.3
tachi-common: 0.5.9
tachi-common: 0.5.10
tap: 15.0.9
ts-node: 10.0.0
tsconfig-paths: 3.10.1
@@ -107,7 +107,7 @@ dependencies:
rimraf: 3.0.2
safe-json-stringify: 1.2.0
seq-logging: 1.1.1
tachi-common: 0.5.9
tachi-common: 0.5.10
ts-node: 10.0.0_83f53b0a0c5616d3fa00ed4e30b9ce1b
tsconfig-paths: 3.10.1
typescript: 4.3.4
@@ -5393,8 +5393,8 @@ packages:
strip-ansi: 6.0.0
dev: true
/tachi-common/0.5.9:
resolution: {integrity: sha512-KFRpRyW1A9Koi8slPEbWtWCqWQMw7rDb0j7ZIb7NMnoaO+AL8kt/Yb4E8ff5HoQYwewWLgtJ1KC4x2opIjqXgg==}
/tachi-common/0.5.10:
resolution: {integrity: sha512-czqNJcN4tj/vZBjvaePj3Y34REdiQ7zulo0IaHWjLKVoRv8I5XFRJJJXikhbNQhk85XK0uEn/kkm0OlAVG1E6g==}
dependencies:
monk: 7.3.4
transitivePeerDependencies:
@@ -63,11 +63,11 @@ t.test("#CalculateRatings", (t) => {
t.test("Should return skill for Gitadora", async (t) => {
const res = await CalculateRatings("gitadora", "Dora", 1, logger);
t.strictSame(res, { skill: null }, "Should return skill keys.");
t.strictSame(res, { skill: null, naiveSkill: null }, "Should return skill keys.");
const resDP = await CalculateRatings("gitadora", "Gita", 1, logger);
t.strictSame(resDP, { skill: null }, "Should return skill keys.");
t.strictSame(resDP, { skill: null, naiveSkill: null }, "Should return skill keys.");
t.end();
});
@@ -121,8 +121,14 @@ const RatingFunctions: RatingFunctions = {
}),
},
gitadora: {
Gita: async (g, p, u, l) => ({ skill: await CalculateGitadoraSkill(g, p, u, l) }),
Dora: async (g, p, u, l) => ({ skill: await CalculateGitadoraSkill(g, p, u, l) }),
Gita: async (g, p, u, l) => ({
skill: await CalculateGitadoraSkill(g, p, u, l),
naiveSkill: await LazySumN("skill", 50)(g, p, u),
}),
Dora: async (g, p, u, l) => ({
skill: await CalculateGitadoraSkill(g, p, u, l),
naiveSkill: await LazySumN("skill", 50)(g, p, u),
}),
},
bms: {
"7K": async (g, p, u) => ({