-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
180 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { StarRail } from '#gc.model'; | ||
import { makeRules } from './rule.js'; | ||
|
||
export const FuXuanScorer = new StarRail.Scorer( | ||
"Fu Xuan", | ||
"符玄", | ||
makeRules([ | ||
[["Body"], {"HP": 0, "DEF": 0, "CRIT DMG": 5}], | ||
[["Feet"], {"SPD": 5}], | ||
[["Planar Sphere"], {"HP": 3, "DEF": 3, "Quantum DMG Boost": 6}], | ||
[["Link Rope"], {"Energy Regeneration Rate": 10}] | ||
]), | ||
{ | ||
"HP": 1, | ||
"FlatHP": 1, | ||
"DEF": 0.5, | ||
"FlatDEF": 0.5, | ||
"SPD": 1, | ||
"CRIT Rate": 1, | ||
"CRIT DMG": 1, | ||
"Energy Regeneration Rate": 0.5, | ||
"Effect RES": 0.5, | ||
"Quantum DMG Boost": 1 | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { StarRail } from '#gc.model'; | ||
import { makeRules } from './rule.js'; | ||
|
||
export const GepardScorer = new StarRail.Scorer( | ||
"Gepard", | ||
"杰帕德", | ||
makeRules([ | ||
[["Body"], {"Effect Hit Rate": 5, "DEF": 0}], | ||
[["Feet"], {"SPD": 5}], | ||
[["Planar Sphere"], {"DEF": 3}], | ||
[["Link Rope"], {"Energy Regeneration Rate": 10}], | ||
]), | ||
{ | ||
"HP": 0.5, | ||
"FlatHP": 0.5, | ||
"DEF": 1, | ||
"FlatDEF": 1, | ||
"SPD": 1, | ||
"Energy Regeneration Rate": 1, | ||
"Effect Hit Rate": 0.5, | ||
"Effect RES": 0.5 | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { StarRail } from '#gc.model'; | ||
import { makeRules } from './rule.js'; | ||
|
||
export const JingliuScorer = new StarRail.Scorer( | ||
"Jingliu", | ||
"镜流", | ||
makeRules([ | ||
[["Body"], {"CRIT DMG": 5}], | ||
[["Feet"], {"SPD": 5}], | ||
[["Planar Sphere"], {"Ice DMG Boost": 6}], | ||
[["Link Rope"], {"ATK": 0, "Energy Regeneration Rate": 10}], | ||
]), | ||
{ | ||
"ATK": 0.75, | ||
"FlatATK": 0.75, | ||
"SPD": 1, | ||
"CRIT Rate": 1, | ||
"CRIT DMG": 1, | ||
"Energy Regeneration Rate": 0.5, | ||
"Ice DMG Boost": 1 | ||
} | ||
); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { StarRail } from '#gc.model'; | ||
import { makeRules } from './rule.js'; | ||
|
||
export const SeeleScorer = new StarRail.Scorer( | ||
"Seele", | ||
"希儿", | ||
makeRules([ | ||
[["Body"], {"CRIT Rate": 5, "CRIT DMG": 5}], | ||
[["Feet"], {"ATK": 0}], | ||
[["Planar Sphere"], {"Quantum DMG Boost": 6}], | ||
[["Link Rope"], {"ATK": 0}] | ||
]), | ||
{ | ||
"ATK": 0.75, | ||
"FlatATK": 0.75, | ||
"SPD": 1, | ||
"CRIT Rate": 1, | ||
"CRIT DMG": 1, | ||
"Energy Regeneration Rate": 0.5, | ||
"Quantum DMG Boost": 1 | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { StarRail } from '#gc.model'; | ||
import { makeRules } from './rule.js'; | ||
|
||
export const YinyueScorer = new StarRail.Scorer( | ||
"Dan Heng·Imbibitor Lunae", | ||
"丹恒·饮月", | ||
makeRules([ | ||
[["Body"], {"CRIT Rate": 5, "CRIT DMG": 5}], | ||
[["Feet"], {"ATK": 0}], | ||
[["Planar Sphere"], {"Imaginary DMG Boost": 6}], | ||
[["Link Rope"], {"ATK": 0, "Energy Regeneration Rate": 10}] | ||
]), | ||
{ | ||
"ATK": 0.75, | ||
"FlatATK": 0.75, | ||
"SPD": 1, | ||
"CRIT Rate": 1, | ||
"CRIT DMG": 1, | ||
"Energy Regeneration Rate": 0.50, | ||
"Imaginary DMG Boost": 1 | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export * from './FuXuan.js'; | ||
export * from './Gepard.js'; | ||
export * from './Jingliu.js'; | ||
export * from './Luocha.js'; | ||
export * from './Seele.js'; | ||
export * from './Yinyue.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,38 @@ | ||
import * as Rule from "./rules/index.js"; | ||
export { Rule }; | ||
import { StarRail } from "#gc.model"; | ||
|
||
const subRule = new StarRail.SubStatRule({ | ||
"CRIT Rate": 2, | ||
"CRIT DMG": 1, | ||
"HP": 1.5, | ||
"ATK": 1.5, | ||
"DEF": 1.19, | ||
"SPD": 2.53, | ||
"Break Effect": 1, | ||
"Effect Hit Rate": 1.49, | ||
"Effect RES": 1.49, | ||
"FlatATK": 0.3 * 0.5, | ||
"FlatDEF": 0.3 * 0.5, | ||
"FlatHP": 0.153 * 0.5, | ||
}); | ||
|
||
type RuleArgs = [string[], { [ statName: string ]: number }, number?, number?]; | ||
|
||
export const makeRules = (mainRules: RuleArgs[]): StarRail.ScoreRule[] => { | ||
let arr: StarRail.ScoreRule[] = [ subRule ]; | ||
|
||
for (let i = 0; i < mainRules.length; ++i) { | ||
mainRules.push(null); | ||
mainRules.push(null); | ||
|
||
mainRules[i][2] ??= 5.83; // default reward | ||
mainRules[i][3] ??= 0.25; // default punish | ||
arr.push(new StarRail.MainStatRule( | ||
mainRules[i][0], | ||
mainRules[i][1], | ||
mainRules[i][2], | ||
mainRules[i][3], | ||
)); | ||
} | ||
|
||
return arr; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.