Skip to content

Commit

Permalink
🍱 Update res
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jul 30, 2024
1 parent 89659df commit 8358dc7
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 4 deletions.
4 changes: 3 additions & 1 deletion compiler/hsr-optimizer-api/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Represents the version of the latest info, which should be the beta leaks version
export const CURRENT_OPTIMIZER_VERSION = 'v2.4.4'
export const BETA_UPDATE = 'All calculations are subject to change. Last updated v5 07-12-2024.'
export const BETA_UPDATE = 'All calculations are subject to change. Last updated v1 07-30-2024.'

export const Stats = {
ATK_P: 'ATK%',
Expand Down Expand Up @@ -430,6 +430,8 @@ export const SetsOrnaments = {
IzumoGenseiAndTakamaDivineRealm: 'Izumo Gensei and Takama Divine Realm',
DuranDynastyOfRunningWolves: 'Duran, Dynasty of Running Wolves',
ForgeOfTheKalpagniLantern: 'Forge of the Kalpagni Lantern',
LushakaTheSunkenSeas: 'Lushaka, the Sunken Seas',
TheWondrousBananAmusementPark: 'The Wondrous BananAmusement Park',
}
export type SetsOrnaments = typeof SetsOrnaments[keyof typeof SetsOrnaments]

Expand Down
267 changes: 267 additions & 0 deletions compiler/hsr-optimizer-api/src/lib/dataParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,7 @@ export function getScoringMetadata() {
},
presets: [
PresetEffects.fnAshblazingSet(0),
PresetEffects.BANANA_SET,
],
sortOption: SortOption.FUA,
simulation: {
Expand Down Expand Up @@ -2050,6 +2051,7 @@ export function getScoringMetadata() {
},
presets: [
PresetEffects.fnAshblazingSet(8),
PresetEffects.BANANA_SET,
],
sortOption: SortOption.FUA,
simulation: {
Expand Down Expand Up @@ -3071,6 +3073,114 @@ export function getScoringMetadata() {
presets: [],
sortOption: SortOption.EHR,
},
1220: { // Feixiao
stats: {
[Constants.Stats.ATK]: 0.75,
[Constants.Stats.ATK_P]: 0.75,
[Constants.Stats.DEF]: 0,
[Constants.Stats.DEF_P]: 0,
[Constants.Stats.HP]: 0,
[Constants.Stats.HP_P]: 0,
[Constants.Stats.SPD]: 1,
[Constants.Stats.CR]: 1,
[Constants.Stats.CD]: 1,
[Constants.Stats.EHR]: 0,
[Constants.Stats.RES]: 0,
[Constants.Stats.BE]: 0,
[Constants.Stats.ERR]: 0,
[Constants.Stats.OHB]: 0,
[Constants.Stats.Physical_DMG]: 0,
[Constants.Stats.Fire_DMG]: 0,
[Constants.Stats.Ice_DMG]: 0,
[Constants.Stats.Lightning_DMG]: 0,
[Constants.Stats.Wind_DMG]: 1,
[Constants.Stats.Quantum_DMG]: 0,
[Constants.Stats.Imaginary_DMG]: 0,
},
parts: {
[Constants.Parts.Body]: [
Constants.Stats.CR,
Constants.Stats.CD,
],
[Constants.Parts.Feet]: [
Constants.Stats.ATK_P,
Constants.Stats.SPD,
],
[Constants.Parts.PlanarSphere]: [
Constants.Stats.ATK_P,
Constants.Stats.Wind_DMG,
],
[Constants.Parts.LinkRope]: [
Constants.Stats.ATK_P,
],
},
presets: [],
sortOption: SortOption.ULT,
simulation: {
parts: {
[Parts.Body]: [
Stats.CR,
Stats.CD,
],
[Parts.Feet]: [
Stats.ATK_P,
Stats.SPD,
],
[Parts.PlanarSphere]: [
Stats.ATK_P,
Stats.Wind_DMG,
],
[Parts.LinkRope]: [
Stats.ATK_P,
],
},
substats: [
Stats.ATK_P,
Stats.CR,
Stats.CD,
Stats.ATK,
],
breakpoints: {},
maxBonusRolls: {},
formula: {
BASIC: 0,
SKILL: 2,
ULT: 1,
FUA: 2,
DOT: 0,
BREAK: 1,
},
relicSets: [
[Sets.TheWindSoaringValorous, Sets.TheWindSoaringValorous],
...SPREAD_RELICS_2P_GENERAL_CONDITIONALS,
],
ornamentSets: [
Sets.DuranDynastyOfRunningWolves,
...SPREAD_ORNAMENTS_2P_FUA,
...SPREAD_ORNAMENTS_2P_GENERAL_CONDITIONALS,
],
teammates: [
{
characterId: '1112', // Topaz
lightCone: '23016', // Worrisome
characterEidolon: 0,
lightConeSuperimposition: 1,
},
{
characterId: '1309', // Robin
lightCone: '23026', // Nightglow
characterEidolon: 0,
lightConeSuperimposition: 1,
},
{
characterId: '1304', // Aventurine
lightCone: '23023', // Unjust destiny
characterEidolon: 0,
lightConeSuperimposition: 1,
},
],
},
},
1221: { // Yunli
stats: {
[Constants.Stats.ATK]: 0.75,
Expand Down Expand Up @@ -3179,6 +3289,163 @@ export function getScoringMetadata() {
],
},
},
1222: { // Lingsha
stats: {
[Constants.Stats.ATK]: 0.75,
[Constants.Stats.ATK_P]: 0.75,
[Constants.Stats.DEF]: 0.5,
[Constants.Stats.DEF_P]: 0.5,
[Constants.Stats.HP]: 0.5,
[Constants.Stats.HP_P]: 0.5,
[Constants.Stats.SPD]: 1,
[Constants.Stats.CR]: 0,
[Constants.Stats.CD]: 0,
[Constants.Stats.EHR]: 0,
[Constants.Stats.RES]: 0.75,
[Constants.Stats.BE]: 1,
[Constants.Stats.ERR]: 1,
[Constants.Stats.OHB]: 0,
[Constants.Stats.Physical_DMG]: 0,
[Constants.Stats.Fire_DMG]: 1,
[Constants.Stats.Ice_DMG]: 0,
[Constants.Stats.Lightning_DMG]: 0,
[Constants.Stats.Wind_DMG]: 0,
[Constants.Stats.Quantum_DMG]: 0,
[Constants.Stats.Imaginary_DMG]: 0,
},
parts: {
[Constants.Parts.Body]: [
Constants.Stats.ATK_P,
Constants.Stats.OHB,
Constants.Stats.DEF_P,
Constants.Stats.HP_P,
],
[Constants.Parts.Feet]: [
Constants.Stats.SPD,
],
[Constants.Parts.PlanarSphere]: [
Constants.Stats.ATK_P,
Constants.Stats.DEF_P,
Constants.Stats.HP_P,
],
[Constants.Parts.LinkRope]: [
Constants.Stats.BE,
Constants.Stats.ERR,
],
},
presets: [
PresetEffects.BANANA_SET,
],
sortOption: SortOption.BE,
},
1223: { // Moze
stats: {
[Constants.Stats.ATK]: 0.75,
[Constants.Stats.ATK_P]: 0.75,
[Constants.Stats.DEF]: 0,
[Constants.Stats.DEF_P]: 0,
[Constants.Stats.HP]: 0,
[Constants.Stats.HP_P]: 0,
[Constants.Stats.SPD]: 1,
[Constants.Stats.CR]: 1,
[Constants.Stats.CD]: 1,
[Constants.Stats.EHR]: 0,
[Constants.Stats.RES]: 0,
[Constants.Stats.BE]: 0,
[Constants.Stats.ERR]: 0,
[Constants.Stats.OHB]: 0,
[Constants.Stats.Physical_DMG]: 0,
[Constants.Stats.Fire_DMG]: 0,
[Constants.Stats.Ice_DMG]: 0,
[Constants.Stats.Lightning_DMG]: 1,
[Constants.Stats.Wind_DMG]: 0,
[Constants.Stats.Quantum_DMG]: 0,
[Constants.Stats.Imaginary_DMG]: 0,
},
parts: {
[Constants.Parts.Body]: [
Constants.Stats.CR,
Constants.Stats.CD,
],
[Constants.Parts.Feet]: [
Constants.Stats.ATK_P,
Constants.Stats.SPD,
],
[Constants.Parts.PlanarSphere]: [
Constants.Stats.ATK_P,
Constants.Stats.Lightning_DMG,
],
[Constants.Parts.LinkRope]: [
Constants.Stats.ATK_P,
],
},
presets: [],
sortOption: SortOption.FUA,
simulation: {
parts: {
[Parts.Body]: [
Stats.CR,
Stats.CD,
],
[Parts.Feet]: [
Stats.ATK_P,
Stats.SPD,
],
[Parts.PlanarSphere]: [
Stats.ATK_P,
Stats.Lightning_DMG,
],
[Parts.LinkRope]: [
Stats.ATK_P,
],
},
substats: [
Stats.ATK_P,
Stats.CR,
Stats.CD,
Stats.ATK,
],
breakpoints: {},
maxBonusRolls: {},
formula: {
BASIC: 1,
SKILL: 1,
ULT: 1,
FUA: 2,
DOT: 0,
BREAK: 0,
},
relicSets: [
[Sets.TheWindSoaringValorous, Sets.TheWindSoaringValorous],
...SPREAD_RELICS_2P_GENERAL_CONDITIONALS,
],
ornamentSets: [
Sets.DuranDynastyOfRunningWolves,
...SPREAD_ORNAMENTS_2P_FUA,
...SPREAD_ORNAMENTS_2P_GENERAL_CONDITIONALS,
],
teammates: [
{
characterId: '1112', // Topaz
lightCone: '23016', // Worrisome
characterEidolon: 0,
lightConeSuperimposition: 1,
},
{
characterId: '1309', // Robin
lightCone: '23026', // Nightglow
characterEidolon: 0,
lightConeSuperimposition: 1,
},
{
characterId: '1304', // Aventurine
lightCone: '23023', // Unjust destiny
characterEidolon: 0,
lightConeSuperimposition: 1,
},
],
},
},
1224: { // March 8th
stats: {
[Constants.Stats.ATK]: 0.75,
Expand Down
Loading

0 comments on commit 8358dc7

Please sign in to comment.