Hosq / BigWigs

BigWigs is a World of Warcraft AddOn to predict certain AI behaviour to improve the players performance. This Modification is build for Patch 1.12.1 and its content for use on the Lightshope private Server.
24 stars 18 forks source link

help wanted : BigWigs BWL Chromaggus koKR Translation #17

Open godtanker opened 7 years ago

godtanker commented 7 years ago

vulnerability_direct_test = "^[%w]+[%s's] ([%w%s:]+) ([%w]+) Chromaggus for ([%d]+) ([%w]+) damage%.[%s%(]([%d])", -- [Fashu's] [Firebolt] [hits] Battleguard Sartura for [44] [Fire] damage. ([14] resisted) --> koKR Translation vulnerability_dots_test = "^Chromaggus suffers ([%d]+) ([%w]+) damage from [%w]+[%s's] ([%w%s:]+)%.[%s%(]([%d])", -> koKR Translation

-> koKR Translation

if stype and dmg and school then -- korea combat log entries for a crit are a bit special ( hits critically for damage.) if GetLocale() == "koKR" then if string.find(msg, L["crit"]) then stype = L["crit"] else stype = L["hit"] end school = string.gsub(school, "dmg", "") -- turn "Feuerschaden" into "Feuer" end if school == L["arcane"] then if string.find(userspell, L["starfire"]) then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 800 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 800 and stype == L["hit"]) or (tonumber(dmg) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end else if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 600 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 600 and stype == L["hit"]) or (tonumber(dmg) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end end elseif school == L["fire"] then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 1300 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 2600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 1300 and stype == L["hit"]) or (tonumber(dmg) >= 2600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end elseif school == L["frost"] then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 800 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 800 and stype == L["hit"]) or (tonumber(dmg) >= 1600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end elseif school == L["nature"] then if string.find(userspell, L["thunderfury"]) then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 800 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 800 and stype == L["hit"]) or (tonumber(dmg) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end else if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 900 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1800 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 900 and stype == L["hit"]) or (tonumber(dmg)>= 1800 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end end elseif school == L["shadow"] then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 1700 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 3400 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 1700 and stype == L["hit"]) or (tonumber(dmg) >= 3400 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end end end end end