From 6748828bb5c4023b84b3feaec7a8747d84a2ab77 Mon Sep 17 00:00:00 2001 From: Jesse Manelius Date: Fri, 8 Feb 2019 04:48:41 +0200 Subject: [PATCH] add /iks x to check for health and damage multipliers --- iKeystones.lua | 10 ++++++++++ iKeystones.toc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/iKeystones.lua b/iKeystones.lua index b24c900..04fe7fd 100644 --- a/iKeystones.lua +++ b/iKeystones.lua @@ -1076,6 +1076,16 @@ SlashCmdList["IKEYSTONES"] = function(msg) iKeystonesConfig.windowPos = 2 elseif msg == "screennormal" then iKeystonesConfig.windowPos = 0 + elseif msg:match("^(%d-)$") then + local lvl = msg:match("^(%d-)$") + local health, damage = C_ChallengeMode.GetPowerLevelDamageHealthMod(lvl) + if not iKS.currentAffixes[1] then + print(string.format("iKS: Didn't find Fortified orTyrannical affix\nBase Multipliers: Health %.2f - Damage %.2f", 1+health/100, 1+damage/100)) + elseif iKS.currentAffixes[1] == 9 then -- Tyrannical + print(string.format("iKS: Multipliers this week for level %d\nBosses: Health %.2f - Damage %.2f\nTrash: Health %.2f - Damage %.2f", lvl, (1+health/100)*1.4, (1+damage/100)*1.15, 1+health/100, 1+damage/100)) + else -- Fortified + print(string.format("iKS: Multipliers this week for level %d\nBosses: Health %.2f - Damage %.2f\nTrash: Health %.2f - Damage %.2f", lvl, 1+health/100, 1+damage/100, (1+health/100)*1.2, (1+damage/100)*1.3)) + end else iKS:help() end diff --git a/iKeystones.toc b/iKeystones.toc index a3e677b..5d5dce8 100644 --- a/iKeystones.toc +++ b/iKeystones.toc @@ -2,7 +2,7 @@ ## Title: iKeystones ## Notes: Tracks your keystones ## Author: Ironi -## Version: 1.721 +## Version: 1.722 ## DefaultState: enabled ## SavedVariables: iKeystonesDB, iKeystonesConfig -- 1.7.9.5