import { CharacterId } from "../.." ; export type AvatarSkillDepotExcelConfigData = { "Id" : number ; "EnergySkill" : number ; "Skills" : number [ ] ; "SubSkills" : number [ ] ; "ExtraAbilities" : string [ ] ; "Talents" : number [ ] ; "TalentStarName" : string ; "InherentProudSkillOpens" : { "ProudSkillGroupId" ? : number ; "NeedAvatarPromoteLevel" ? : number ; } [ ] ; "SkillDepotAbilityGroup" : string ; } ; /**
 * sources for different talents:
 * auto       AvatarSkillExcelConfigData
 * skill      AvatarSkillExcelConfigData
 * burst      AvatarSkillExcelConfigData
 * passive1   ProudSkillExcelConfigData
 * passive2   ProudSkillExcelConfigData
 * passive3   ProudSkillExcelConfigData
 * const#     AvatarSkillExcelConfigData
 */ const skillDepotSrc = require ( '../../GenshinData/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json' ) as AvatarSkillDepotExcelConfigData [ ] ; const skillDepot = Object . fromEntries ( skillDepotSrc . map ( skill => { if ( skill . Id === 5201 ) { const [ k1 , k2 , k3 , k4 , k5 ] = skill . InherentProudSkillOpens ; skill . InherentProudSkillOpens = [ k1 , k2 , k5 , { } , { } ] ; } return skill ; } ) . map ( skill => [ skill . Id , skill ] ) ) as { [ id ] : AvatarSkillDepotExcelConfigData ; } ; export default skillDepot ;