import { EnumDictionary } from "./types/EnumDictionary" ; import { CharacterClass } from "./enum/character-Class" ; import { calculateTierValueAbility } from "./cooldown_definitions" ; export const GrenadeAbilitiesPerClassAndTier = { [ CharacterClass . Titan ] : [ "Duskfield" , "Fusion" , "Flashbang" , "Voidwall, Thermite, Pulse" , "Magnetic, Suppressor, Incendiary, Lightning, Coldsnap" , "Glacier" , "" ] , [ CharacterClass . Hunter ] : [ "Duskfield" , "" , "Swarm, Tripmine" , "Vortex, Spike, Voidwall, Skip" , "Incendiary,  Arcbolt, Coldsnap" , "Glacier" , "Flux" ] , [ CharacterClass . Warlock ] : [ "Duskfield, Firebolt" , "Fusion" , "Axion Bolt, Storm" , "Solar, Vortex, Scatter, Pulse" , "Arcbolt, Coldsnap" , "Glacier" , "" ] , [ CharacterClass . None ] : [ "" , "" , "" , "" , "" , "" , "" , "" , "" , "" ] } ; export function buildGrenadeCooldown ( tier , clazz ) { const clazzEntry = GrenadeAbilitiesPerClassAndTier [ clazz ] ; var res = "Grenade Cooldown in seconds\r\n" ; if ( clazzEntry [ 0 ] != "" ) res += "Tier 7:\t" + calculateTierValueAbility ( tier , 64 ) + "\t" + clazzEntry [ 0 ] + "\r\n" ; if ( clazzEntry [ 1 ] != "" ) res += "Tier 6:\t" + calculateTierValueAbility ( tier , 73 ) + "\t" + clazzEntry [ 1 ] + "\r\n" ; if ( clazzEntry [ 2 ] != "" ) res += "Tier 5:\t" + calculateTierValueAbility ( tier , 91 ) + "\t" + clazzEntry [ 2 ] + "\r\n" ; if ( clazzEntry [ 3 ] != "" ) res += "Tier 4:\t" + calculateTierValueAbility ( tier , 105 ) + "\t" + clazzEntry [ 3 ] + "\r\n" ; if ( clazzEntry [ 4 ] != "" ) res += "Tier 3:\t" + calculateTierValueAbility ( tier , 121 ) + "\t" + clazzEntry [ 4 ] + "\r\n" ; if ( clazzEntry [ 5 ] != "" ) res += "Tier 2:\t" + calculateTierValueAbility ( tier , 152 ) + "\t" + clazzEntry [ 5 ] + "\r\n" ; if ( clazzEntry [ 6 ] != "" ) res += "Tier 1:\t" + calculateTierValueAbility ( tier , 182 ) + "\t" + clazzEntry [ 6 ] + "\r\n" ; return res ; }