Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

help wanted : BigWigs BWL Chromaggus koKR Translation #17

Open
godtanker opened this issue Jul 17, 2017 · 0 comments
Open

help wanted : BigWigs BWL Chromaggus koKR Translation #17

godtanker opened this issue Jul 17, 2017 · 0 comments

Comments

@godtanker
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant