import { EnumDictionary } from "./types/EnumDictionary" ; import { CharacterClass } from "./enum/character-Class" ; import { calculateTierValueAbility } from "./cooldown_definitions" ; export const MeleeAbilitiesPerClassAndTier = { [ CharacterClass . Titan ] : [ "" , "" , "Mortar Blast" , "Throwing Hammer, Hammer Strike, Seismic Strike, Ballistic Slam, Defensive Strike, Tactical Strike, Shield Bash" , "" , "Frontal Assault" , "" , "Shiver Strike" ] , [ CharacterClass . Hunter ] : [ "Combination Blow" , "Vanish in Smoke" , "Knife Trick" , "Snare Bomb, Corrosive Smoke" , "Tempest Strike, Disorienting Blow, Expl. Knife" , "" , "Weightened Knife" , "Withering Blade" ] , [ CharacterClass . Warlock ] : [ "" , "Devour" , "" , "Guiding Flame, Igniting Touch, Chain Lightning, Rising Storm, Entropic Pull, Atomic Breach" , "Celestial Fire" , "" , "" , "Ball Lightning, Penumbral Blast" ] , [ CharacterClass . None ] : [ "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" ] } ; export function buildMeleeCooldown ( tier , clazz ) { const clazzEntry = MeleeAbilitiesPerClassAndTier [ clazz ] ; var res = "Melee Cooldown in seconds\r\n" ; if ( clazzEntry [ 0 ] != "" ) res += "Tier 8:\t" + calculateTierValueAbility ( tier , 15 ) + "\t" + clazzEntry [ 0 ] + "\r\n" ; if ( clazzEntry [ 1 ] != "" ) res += "Tier 7:\t" + calculateTierValueAbility ( tier , 75 ) + "\t" + clazzEntry [ 1 ] + "\r\n" ; if ( clazzEntry [ 2 ] != "" ) res += "Tier 6:\t" + calculateTierValueAbility ( tier , 82 ) + "\t" + clazzEntry [ 2 ] + "\r\n" ; if ( clazzEntry [ 3 ] != "" ) res += "Tier 5:\t" + calculateTierValueAbility ( tier , 90 ) + "\t" + clazzEntry [ 3 ] + "\r\n" ; if ( clazzEntry [ 4 ] != "" ) res += "Tier 4:\t" + calculateTierValueAbility ( tier , 100 ) + "\t" + clazzEntry [ 4 ] + "\r\n" ; if ( clazzEntry [ 5 ] != "" ) res += "Tier 3:\t" + calculateTierValueAbility ( tier , 106 ) + "\t" + clazzEntry [ 5 ] + "\r\n" ; if ( clazzEntry [ 6 ] != "" ) res += "Tier 2:\t" + calculateTierValueAbility ( tier , 109 ) + "\t" + clazzEntry [ 6 ] + "\r\n" ; if ( clazzEntry [ 7 ] != "" ) res += "Tier 1:\t" + calculateTierValueAbility ( tier , 113 ) + "\t" + clazzEntry [ 7 ] + "\r\n" ; return res ; }