Skip to content

Commit

Permalink
Add sheet generation and add missing items for sr-formula (#1453)
Browse files Browse the repository at this point in the history
* Add meta.ts executor

* Add sheet template generator

* Fix listconditional map util

* Add 0th value to superimpose stats

* Add missing chars/relics/lcs

* Generate missing sheets

* Fix sheet generation, remove trailblazer

* Update meta.ts
  • Loading branch information
nguyentvan7 authored Jan 24, 2024
1 parent 6b12b49 commit 461cdc0
Show file tree
Hide file tree
Showing 283 changed files with 23,000 additions and 241 deletions.
15 changes: 15 additions & 0 deletions libs/sr-consts/src/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,46 @@ export const allGenderKeys = ['F', 'M'] as const
export type GenderKey = (typeof allGenderKeys)[number]

export const nonTrailblazerCharacterKeys = [
'Argenti',
'Arlan',
'Asta',
'Bailu',
'Blade',
'Bronya',
'Clara',
'DanHeng',
'DanHengImbibitorLunae',
'DrRatio',
'FuXuan',
'Gepard',
'Guinaifen',
'Hanya',
'Herta',
'Himeko',
'Hook',
'Huohuo',
'JingYuan',
'Jingliu',
'Kafka',
'Luka',
'Luocha',
'Lynx',
'March7th',
'Natasha',
'Pela',
'Qingque',
'RuanMei',
'Sampo',
'Seele',
'Serval',
'SilverWolf',
'Sushang',
'Tingyun',
'TopazAndNumby',
'Welt',
'Xueyi',
'Yanqing',
'Yukong',
] as const
export type NonTrailblazerCharacterKey =
(typeof nonTrailblazerCharacterKeys)[number]
Expand Down
15 changes: 15 additions & 0 deletions libs/sr-consts/src/lightCone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ export const allLightConeKeys = [
'ASecretVow',
'Adversarial',
'Amber',
'AnInstantBeforeAGaze',
'Arrows',
'BaptismOfPureThought',
'BeforeDawn',
'BeforeTheTutorialMissionStarts',
'BrighterThanTheSun',
'ButTheBattleIsntOver',
'CarveTheMoonWeaveTheClouds',
'Chorus',
Expand All @@ -15,14 +19,18 @@ export const allLightConeKeys = [
'DataBank',
'DayOneOfMyNewLife',
'Defense',
'EchoesOfTheCoffin',
'EyesOfThePrey',
'Fermata',
'FineFruit',
'GeniusesRepose',
'GoodNightAndSleepWell',
'HeyOverHere',
'HiddenShadow',
'IShallBeMyOwnSword',
'InTheNameOfTheWorld',
'InTheNight',
'IncessantRain',
'LandausChoice',
'Loop',
'MakeTheWorldClamor',
Expand All @@ -32,12 +40,15 @@ export const allLightConeKeys = [
'MomentOfVictory',
'Multiplication',
'MutualDemise',
'NightOfFright',
'NightOnTheMilkyWay',
'NowhereToRun',
'OnTheFallOfAnAeon',
'OnlySilenceRemains',
'Passkey',
'PastSelfInMirror',
'PastAndFuture',
'PatienceIsAllYouNeed',
'PerfectTiming',
'Pioneering',
'PlanetaryRendezvous',
Expand All @@ -49,14 +60,17 @@ export const allLightConeKeys = [
'Sagacity',
'SharedFeeling',
'ShatteredHome',
'SheAlreadyShutHerEyes',
'SleepLikeTheDead',
'SolitaryHealing',
'SomethingIrreplaceable',
'SubscribeForMore',
'Swordplay',
'TextureOfMemories',
'TheBirthOfTheSelf',
'TheMolesWelcomeYou',
'TheSeriousnessOfBreakfast',
'TheUnreachableSide',
'ThisIsMe',
'TimeWaitsForNoOne',
'TodayIsAnotherPeacefulDay',
Expand All @@ -67,6 +81,7 @@ export const allLightConeKeys = [
'WeAreWildfire',
'WeWillMeetAgain',
'WoofWalkTime',
'WorrisomeBlissful',
] as const

export type LightConeKey = (typeof allLightConeKeys)[number]
Expand Down
6 changes: 6 additions & 0 deletions libs/sr-consts/src/relic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,27 @@ export const allRelicCavernSetKeys = [
'GuardOfWutheringSnow',
'HunterOfGlacialForest',
'KnightOfPurityPalace',
'LongevousDisciple',
'MessengerTraversingHackerspace',
'MusketeerOfWildWheat',
'PasserbyOfWanderingCloud',
'PrisonerInDeepConfinement',
'TheAshblazingGrandDuke',
'ThiefOfShootingMeteor',
'WastelanderOfBanditryDesert',
] as const
export type RelicCavernSetKey = (typeof allRelicCavernSetKeys)[number]

export const allRelicPlanarSetKeys = [
'BelobogOfTheArchitects',
'BrokenKeel',
'CelestialDifferentiator',
'FirmamentFrontlineGlamoth',
'FleetOfTheAgeless',
'InertSalsotto',
'PanGalacticCommercialEnterprise',
'PenaconyLandOfTheDreams',
'RutilantArena',
'SpaceSealingStation',
'SprightlyVonwacq',
'TaliaKingdomOfBanditry',
Expand Down
73 changes: 44 additions & 29 deletions libs/sr-dm/src/mapping/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,50 @@ export const characterIdMap: Record<
string,
NonTrailblazerCharacterKey | TrailblazerGenderedKey
> = {
'1001': 'March7th',
'1002': 'DanHeng',
'1003': 'Himeko',
'1004': 'Welt',
'1005': 'Kafka',
'1006': 'SilverWolf',
'1008': 'Arlan',
'1009': 'Asta',
'1013': 'Herta',
'1101': 'Bronya',
'1102': 'Seele',
'1103': 'Serval',
'1104': 'Gepard',
'1105': 'Natasha',
'1106': 'Pela',
'1107': 'Clara',
'1108': 'Sampo',
'1109': 'Hook',
'1201': 'Qingque',
'1202': 'Tingyun',
'1203': 'Luocha',
'1204': 'JingYuan',
'1206': 'Sushang',
'1209': 'Yanqing',
'1211': 'Bailu',
'8001': 'TrailblazerPhysicalM',
'8002': 'TrailblazerPhysicalF',
'8003': 'TrailblazerFireM',
'8004': 'TrailblazerFireF',
1001: 'March7th',
1002: 'DanHeng',
1003: 'Himeko',
1004: 'Welt',
1005: 'Kafka',
1006: 'SilverWolf',
1008: 'Arlan',
1009: 'Asta',
1013: 'Herta',
1101: 'Bronya',
1102: 'Seele',
1103: 'Serval',
1104: 'Gepard',
1105: 'Natasha',
1106: 'Pela',
1107: 'Clara',
1108: 'Sampo',
1109: 'Hook',
1110: 'Lynx',
1111: 'Luka',
1112: 'TopazAndNumby',
1201: 'Qingque',
1202: 'Tingyun',
1203: 'Luocha',
1204: 'JingYuan',
1205: 'Blade',
1206: 'Sushang',
1207: 'Yukong',
1208: 'FuXuan',
1209: 'Yanqing',
1210: 'Guinaifen',
1211: 'Bailu',
1212: 'Jingliu',
1213: 'DanHengImbibitorLunae',
1214: 'Xueyi',
1215: 'Hanya',
1217: 'Huohuo',
1302: 'Argenti',
1303: 'RuanMei',
1305: 'DrRatio',
8001: 'TrailblazerPhysicalM',
8002: 'TrailblazerPhysicalF',
8003: 'TrailblazerFireM',
8004: 'TrailblazerFireF',
} as const
export type AvatarId = keyof typeof characterIdMap

Expand Down
151 changes: 83 additions & 68 deletions libs/sr-dm/src/mapping/lightCone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,89 @@ import type { LightConeKey } from '@genshin-optimizer/sr-consts'
import type { EquipmentConfig } from '../dm'

export const lightConeIdMap: Record<string, LightConeKey> = {
'20000': 'Arrows',
'20001': 'Cornucopia',
'20002': 'CollapsingSky',
'20003': 'Amber',
'20004': 'Void',
'20005': 'Chorus',
'20006': 'DataBank',
'20007': 'DartingArrow',
'20008': 'FineFruit',
'20009': 'ShatteredHome',
'20010': 'Defense',
'20011': 'Loop',
'20012': 'MeshingCogs',
'20013': 'Passkey',
'20014': 'Adversarial',
'20015': 'Multiplication',
'20016': 'MutualDemise',
'20017': 'Pioneering',
'20018': 'HiddenShadow',
'20019': 'Mediation',
'20020': 'Sagacity',
'21000': 'PostOpConversation',
'21001': 'GoodNightAndSleepWell',
'21002': 'DayOneOfMyNewLife',
'21003': 'OnlySilenceRemains',
'21004': 'MemoriesOfThePast',
'21005': 'TheMolesWelcomeYou',
'21006': 'TheBirthOfTheSelf',
'21007': 'SharedFeeling',
'21008': 'EyesOfThePrey',
'21009': 'LandausChoice',
'21010': 'Swordplay',
'21011': 'PlanetaryRendezvous',
'21012': 'ASecretVow',
'21013': 'MakeTheWorldClamor',
'21014': 'PerfectTiming',
'21015': 'ResolutionShinesAsPearlsOfSweat',
'21016': 'TrendOfTheUniversalMarket',
'21017': 'SubscribeForMore',
'21018': 'DanceDanceDance',
'21019': 'UnderTheBlueSky',
'21020': 'GeniusesRepose',
'21021': 'QuidProQuo',
'21022': 'Fermata',
'21023': 'WeAreWildfire',
'21024': 'RiverFlowsInSpring',
'21025': 'PastAndFuture',
'21026': 'WoofWalkTime',
'21027': 'TheSeriousnessOfBreakfast',
'21028': 'WarmthShortensColdNights',
'21029': 'WeWillMeetAgain',
'21030': 'ThisIsMe',
'21031': 'ReturnToDarkness',
'21032': 'CarveTheMoonWeaveTheClouds',
'21033': 'NowhereToRun',
'21034': 'TodayIsAnotherPeacefulDay',
'23000': 'NightOnTheMilkyWay',
'23001': 'InTheNight',
'23002': 'SomethingIrreplaceable',
'23003': 'ButTheBattleIsntOver',
'23004': 'InTheNameOfTheWorld',
'23005': 'MomentOfVictory',
'23010': 'BeforeDawn',
'23012': 'SleepLikeTheDead',
'23013': 'TimeWaitsForNoOne',
'24000': 'OnTheFallOfAnAeon',
'24001': 'CruisingInTheStellarSea',
'24002': 'TextureOfMemories',
20000: 'Arrows',
20001: 'Cornucopia',
20002: 'CollapsingSky',
20003: 'Amber',
20004: 'Void',
20005: 'Chorus',
20006: 'DataBank',
20007: 'DartingArrow',
20008: 'FineFruit',
20009: 'ShatteredHome',
20010: 'Defense',
20011: 'Loop',
20012: 'MeshingCogs',
20013: 'Passkey',
20014: 'Adversarial',
20015: 'Multiplication',
20016: 'MutualDemise',
20017: 'Pioneering',
20018: 'HiddenShadow',
20019: 'Mediation',
20020: 'Sagacity',
21000: 'PostOpConversation',
21001: 'GoodNightAndSleepWell',
21002: 'DayOneOfMyNewLife',
21003: 'OnlySilenceRemains',
21004: 'MemoriesOfThePast',
21005: 'TheMolesWelcomeYou',
21006: 'TheBirthOfTheSelf',
21007: 'SharedFeeling',
21008: 'EyesOfThePrey',
21009: 'LandausChoice',
21010: 'Swordplay',
21011: 'PlanetaryRendezvous',
21012: 'ASecretVow',
21013: 'MakeTheWorldClamor',
21014: 'PerfectTiming',
21015: 'ResolutionShinesAsPearlsOfSweat',
21016: 'TrendOfTheUniversalMarket',
21017: 'SubscribeForMore',
21018: 'DanceDanceDance',
21019: 'UnderTheBlueSky',
21020: 'GeniusesRepose',
21021: 'QuidProQuo',
21022: 'Fermata',
21023: 'WeAreWildfire',
21024: 'RiverFlowsInSpring',
21025: 'PastAndFuture',
21026: 'WoofWalkTime',
21027: 'TheSeriousnessOfBreakfast',
21028: 'WarmthShortensColdNights',
21029: 'WeWillMeetAgain',
21030: 'ThisIsMe',
21031: 'ReturnToDarkness',
21032: 'CarveTheMoonWeaveTheClouds',
21033: 'NowhereToRun',
21034: 'TodayIsAnotherPeacefulDay',
22000: 'BeforeTheTutorialMissionStarts',
22001: 'HeyOverHere',
23000: 'NightOnTheMilkyWay',
23001: 'InTheNight',
23002: 'SomethingIrreplaceable',
23003: 'ButTheBattleIsntOver',
23004: 'InTheNameOfTheWorld',
23005: 'MomentOfVictory',
23006: 'PatienceIsAllYouNeed',
23007: 'IncessantRain',
23008: 'EchoesOfTheCoffin',
23009: 'TheUnreachableSide',
23010: 'BeforeDawn',
23011: 'SheAlreadyShutHerEyes',
23012: 'SleepLikeTheDead',
23013: 'TimeWaitsForNoOne',
23014: 'IShallBeMyOwnSword',
23015: 'BrighterThanTheSun',
23016: 'WorrisomeBlissful',
23017: 'NightOfFright',
23018: 'AnInstantBeforeAGaze',
23019: 'PastSelfInMirror',
23020: 'BaptismOfPureThought',
24000: 'OnTheFallOfAnAeon',
24001: 'CruisingInTheStellarSea',
24002: 'TextureOfMemories',
24003: 'SolitaryHealing',
}
export type LightConeId = keyof typeof lightConeIdMap

Expand Down
Loading

0 comments on commit 461cdc0

Please sign in to comment.