import { EnumDictionary } from "./types/EnumDictionary" ; import { CharacterClass } from "./enum/character-Class" ; import { calculateTierValueAbility , calculateTierValueSuper } from "./cooldown_definitions" ; export const SuperAbilitiesPerClassAndTier = { [ CharacterClass . Titan ] : [ "" , "" , "Burning Maul, Thundercrash" , "Sentinel Shield " , "Behemoth, Hammer of Sol, Fist of Havoc" , ] , [ CharacterClass . Hunter ] : [ "" , "Blade Barrage, Shadowshot" , "Arc Staff" , "Silence & Squall, Golden Gun" , "Spectral Blades" , ] , [ CharacterClass . Warlock ] : [ "Well of Radiance" , "" , "Nova Bomb" , "Daybreak, Nova Warp, Stormtrance, Chaos Reach" , "Shadebinder" , ] , [ CharacterClass . None ] : [ "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" ] } ; export function buildSuperCooldown ( tier , clazz ) { const clazzEntry = SuperAbilitiesPerClassAndTier [ clazz ] ; var res = "Super Cooldown in seconds\r\n" ; if ( clazzEntry [ 0 ] != "" ) res += "Tier 5:\t" + calculateTierValueSuper ( tier , 417 ) + "\t" + clazzEntry [ 0 ] + "\r\n" ; if ( clazzEntry [ 1 ] != "" ) res += "Tier 4:\t" + calculateTierValueSuper ( tier , 455 ) + "\t" + clazzEntry [ 1 ] + "\r\n" ; if ( clazzEntry [ 2 ] != "" ) res += "Tier 3:\t" + calculateTierValueSuper ( tier , 500 ) + "\t" + clazzEntry [ 2 ] + "\r\n" ; if ( clazzEntry [ 3 ] != "" ) res += "Tier 2:\t" + calculateTierValueSuper ( tier , 556 ) + "\t" + clazzEntry [ 3 ] + "\r\n" ; if ( clazzEntry [ 4 ] != "" ) res += "Tier 1:\t" + calculateTierValueSuper ( tier , 625 ) + "\t" + clazzEntry [ 4 ] + "\r\n" ; return res ; }