export type ProudSkillExcelConfigData = { "ProudSkillId" : number ; "ProudSkillGroupId" : number ; "Level" : number ; "ProudSkillType" : number ; "NameTextMapHash" : number ; "DescTextMapHash" : number ; "UnlockDescTextMapHash" : number ; "Icon" : string ; "CostItems" : object [ ] ; "FilterConds" : string [ ] ; "BreakLevel" : number ; "ParamDescList" : number [ ] ; "LifeEffectParams" : [ "" , "" , "" , "" , "" ] ; "OpenConfig" : "Noel_ProudSkill_21" ; "AddProps" : object [ ] ; "ParamList" : number [ ] ; } ; const passivesSrc = require ( '../../GenshinData/ExcelBinOutput/ProudSkillExcelConfigData.json' ) as ProudSkillExcelConfigData [ ] ; const skillGroups = { } as { [ id ] : ProudSkillExcelConfigData [ ] ; } ; passivesSrc . forEach ( data => { const { ProudSkillGroupId , Level } = data ; if ( ! skillGroups [ ProudSkillGroupId ] ) skillGroups [ ProudSkillGroupId ] = [ ] ; skillGroups [ ProudSkillGroupId ] [ Level - 1 ] = data ; } ) ; export default skillGroups ;