Skip to content

Commit

Permalink
🍱 Update res
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Aug 20, 2024
1 parent 3377e6e commit db70a3c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 49 deletions.
11 changes: 8 additions & 3 deletions compiler/hsr-optimizer-api/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Represents the version of the latest info, which should be the beta leaks version
export const CURRENT_OPTIMIZER_VERSION = 'v2.5.2'
export const BETA_UPDATE = 'All calculations are subject to change. Last updated v1 07-30-2024.'
// Represents the version of the latest info, which should be the beta leaks version at the time of the major update
export const CURRENT_OPTIMIZER_VERSION = 'v2.5.4'
// Represents the data content version, used for display but not for update notifications
export const CURRENT_DATA_VERSION = '2.5v4'
export const BETA_UPDATE = `Current version: ${CURRENT_DATA_VERSION} - Calculations are subject to change.`

export const Stats = {
ATK_P: 'ATK%',
Expand Down Expand Up @@ -749,3 +751,6 @@ export const SETTINGS_TEAM = 'Settings'
export const SIMULATION_SCORE = 'Combat Simulation Score'
export const CHARACTER_SCORE = 'Character Score'

export const DAMAGE_UPGRADES = 'Damage Upgrades'
export const COMBAT_STATS = 'Combat Stats'

72 changes: 31 additions & 41 deletions compiler/hsr-optimizer-api/src/lib/dataParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export function getScoringMetadata() {
SKILL: 2,
ULT: 1,
FUA: 2,
DOT: 8,
DOT: 16,
BREAK: 0,
},
relicSets: [
Expand Down Expand Up @@ -706,13 +706,11 @@ export function getScoringMetadata() {
[Stats.Imaginary_DMG]: 0,
},
parts: {
[Parts.Body]: [
],
[Parts.Body]: [],
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.ATK_P,
Stats.ERR,
Expand Down Expand Up @@ -862,8 +860,7 @@ export function getScoringMetadata() {
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.ERR,
],
Expand Down Expand Up @@ -2975,13 +2972,11 @@ export function getScoringMetadata() {
[Stats.Imaginary_DMG]: 0,
},
parts: {
[Parts.Body]: [
],
[Parts.Body]: [],
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.ERR,
],
Expand Down Expand Up @@ -3064,10 +3059,8 @@ export function getScoringMetadata() {
[Constants.Parts.Feet]: [
Constants.Stats.SPD,
],
[Constants.Parts.PlanarSphere]: [
],
[Constants.Parts.LinkRope]: [
],
[Constants.Parts.PlanarSphere]: [],
[Constants.Parts.LinkRope]: [],
},
presets: [],
sortOption: SortOption.EHR,
Expand Down Expand Up @@ -3113,7 +3106,9 @@ export function getScoringMetadata() {
Constants.Stats.ATK_P,
],
},
presets: [],
presets: [
PresetEffects.fnAshblazingSet(1),
],
sortOption: SortOption.ULT,
simulation: {
parts: {
Expand Down Expand Up @@ -3144,8 +3139,8 @@ export function getScoringMetadata() {
formula: {
BASIC: 0,
SKILL: 2,
ULT: 1,
FUA: 2,
ULT: 2,
FUA: 4,
DOT: 0,
BREAK: 0,
},
Expand Down Expand Up @@ -3334,6 +3329,7 @@ export function getScoringMetadata() {
},
presets: [
PresetEffects.BANANA_SET,
PresetEffects.fnAshblazingSet(3),
],
sortOption: SortOption.BE,
},
Expand Down Expand Up @@ -3378,7 +3374,9 @@ export function getScoringMetadata() {
Constants.Stats.ATK_P,
],
},
presets: [],
presets: [
PresetEffects.fnAshblazingSet(6),
],
sortOption: SortOption.FUA,
simulation: {
parts: {
Expand Down Expand Up @@ -3415,11 +3413,13 @@ export function getScoringMetadata() {
BREAK: 0,
},
relicSets: [
[Sets.TheWindSoaringValorous, Sets.TheWindSoaringValorous],
[Sets.PioneerDiverOfDeadWaters, Sets.PioneerDiverOfDeadWaters],
[Sets.TheAshblazingGrandDuke, Sets.TheAshblazingGrandDuke],
...SPREAD_RELICS_2P_GENERAL_CONDITIONALS,
],
ornamentSets: [
Sets.DuranDynastyOfRunningWolves,
Sets.IzumoGenseiAndTakamaDivineRealm,
...SPREAD_ORNAMENTS_2P_FUA,
...SPREAD_ORNAMENTS_2P_GENERAL_CONDITIONALS,
],
Expand Down Expand Up @@ -3584,8 +3584,7 @@ export function getScoringMetadata() {
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.ERR,
Stats.BE,
Expand Down Expand Up @@ -3726,13 +3725,11 @@ export function getScoringMetadata() {
[Stats.Imaginary_DMG]: 0,
},
parts: {
[Parts.Body]: [
],
[Parts.Body]: [],
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.ERR,
Stats.BE,
Expand Down Expand Up @@ -4002,8 +3999,7 @@ export function getScoringMetadata() {
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.ERR,
],
Expand Down Expand Up @@ -4089,7 +4085,7 @@ export function getScoringMetadata() {
SKILL: 1,
ULT: 1,
FUA: 0,
DOT: 8,
DOT: 16,
BREAK: 0,
},
relicSets: [
Expand Down Expand Up @@ -4615,13 +4611,11 @@ export function getScoringMetadata() {
[Stats.Imaginary_DMG]: 0,
},
parts: {
[Parts.Body]: [
],
[Parts.Body]: [],
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.BE,
],
Expand Down Expand Up @@ -5019,13 +5013,11 @@ export function getScoringMetadata() {
[Stats.Imaginary_DMG]: 0,
},
parts: {
[Parts.Body]: [
],
[Parts.Body]: [],
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.BE,
Stats.ERR,
Expand Down Expand Up @@ -5059,13 +5051,11 @@ export function getScoringMetadata() {
[Stats.Imaginary_DMG]: 0,
},
parts: {
[Parts.Body]: [
],
[Parts.Body]: [],
[Parts.Feet]: [
Stats.SPD,
],
[Parts.PlanarSphere]: [
],
[Parts.PlanarSphere]: [],
[Parts.LinkRope]: [
Stats.BE,
Stats.ERR,
Expand Down
8 changes: 4 additions & 4 deletions src/starrailrelicscore/data/game_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
"HP": 1047.816,
"ATK": 601.524,
"DEF": 388.08,
"SPD": 125,
"SPD": 112,
"CRIT Rate": 0.05,
"CRIT DMG": 0.5
},
Expand Down Expand Up @@ -703,7 +703,7 @@
"rarity": 4,
"path": "Hunt",
"element": "Lightning",
"max_sp": 110,
"max_sp": 120,
"stats": {
"HP": 811.44,
"ATK": 546.84,
Expand Down Expand Up @@ -2381,12 +2381,12 @@
{
"id": "318",
"name": "The Wondrous BananAmusement Park",
"skills": "Increases the wearer's CRIT DMG by <b>16.0%</b>. When a target summoned by the wearer is on the field, CRIT DMG additionally increases by <b>28.0%</b>."
"skills": "Increases the wearer's CRIT DMG by <b>16.0%</b>. When a target summoned by the wearer is on the field, CRIT DMG additionally increases by <b>32.0%</b>."
},
{
"id": "317",
"name": "Lushaka, the Sunken Seas",
"skills": "Increases the wearer's Effect RES by <b>10.0%</b>. If the wearer is not the first character in the team lineup, then increase the ATK of the first character in the team lineup by <b>16.0%</b>."
"skills": "Increases the wearer's Effect RES by <b>5.0%</b>. If the wearer is not the first character in the team lineup, then increase the ATK of the first character in the team lineup by <b>15.0%</b>."
},
{
"id": "316",
Expand Down
2 changes: 1 addition & 1 deletion src/starrailrelicscore/data/metadata.json

Large diffs are not rendered by default.

0 comments on commit db70a3c

Please sign in to comment.