-- brotherhobbes@gmail.com -- Translations of "Beware. I live!" are needed for all locales. local MAJOR_VERSION = "Threat-1.0" local MINOR_VERSION = tonumber(("$Revision: 56238 $"):match("%d+")) if MINOR_VERSION > _G.ThreatLib_MINOR_VERSION then _G.ThreatLib_MINOR_VERSION = MINOR_VERSION end ThreatLib_funcs[#ThreatLib_funcs+1] = function() local ThreatLib = _G.ThreatLib local BB = AceLibrary("Babble-Boss-2.2") ThreatLib:GetModule("NPCCore"):RegisterModule(BB["Essence of Anger"], function(Souls) Souls:RegisterTranslation("enUS", function() return { ["Pain and suffering are all that await you!"] = "Pain and suffering are all that await you!", ["You can have anything you desire... for a price."] = "You can have anything you desire... for a price.", ["Beware. I live!"] = "Beware. I live!", } end) Souls:RegisterTranslation("koKR", function() return { ["Pain and suffering are all that await you!"] = "너희를 기다리는 건 고통과 슬픔뿐이야!", ["You can have anything you desire... for a price."] = "선택은 자유지만... 대가는 치러야 하는 법.", ["Beware. I live!"] = "", } end) Souls:RegisterTranslation("frFR", function() return { ["Pain and suffering are all that await you!"] = "Douleur et souffrance, voilà tout ce qui vous attend !", ["You can have anything you desire... for a price."] = "Vous pouvez avoir tout ce que vous désirez... en y mettant le prix.", ["Beware. I live!"] = "", } end) Souls:RegisterTranslations("deDE", function() return { ["Pain and suffering are all that await you!"] = "Auf Euch warten nur Schmerz und Leid!", ["You can have anything you desire... for a price."] = "Ihr könnt alles haben, was Ihr wollt... doch es hat einen Preis.", ["Beware. I live!"] = "", } end) Souls:RegisterTranslation("zhCN", function() return { ["Pain and suffering are all that await you!"] = "等待你们的只有痛苦与折磨!", ["You can have anything you desire... for a price."] = "你可以获得任何你想要的东西……只要付得起代价。", ["Beware. I live!"] = "", } end) Souls:RegisterTranslation("zhTW", function() return { ["Pain and suffering are all that await you!"] = "等待你們的只有痛苦與折磨﹗", ["You can have anything you desire... for a price."] = "你可以得到任何你想要的東西……只要付得起代價。", ["Beware. I live!"] = "", } end) local suffering = Souls:GetTranslation("Pain and suffering are all that await you!") local desire = Souls:GetTranslation("You can have anything you desire... for a price.") local anger = Souls:GetTranslation("Beware. I live!") Souls:UnregisterTranslations() local function clear(self) self:WipeAllRaidThreat() end function Souls:Init() self:RegisterCombatant(BB["Essence of Anger"], true) self:RegisterCombatant(BB["Essence of Desire"], true) self:RegisterCombatant(BB["Essence of Suffering"], true) self:RegisterChatEvent("yell", BB["Essence of Anger"], suffering, clear) self:RegisterChatEvent("yell", BB["Essence of Desire"], desire, clear) self:RegisterChatEvent("yell", BB["Essence of Suffering"], anger, clear) end function Souls:StartFight() self:SetNumberOfMobs(1) end end) table.insert(ThreatLib.UpvalueFixers, function(lib) ThreatLib = lib end) end