Skip to content

Commit f693447

Browse files
committed
Move function and add todo notes
1 parent 9d325c7 commit f693447

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

src/Modules/ModParser.lua

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ local function combineToUpper(str, sepPattern)
2626
return outStr
2727
end
2828

29-
-- Convert condition verb forms to their proper condition variable names
30-
local function getConditionVar(verb)
31-
local conditionMap = {
32-
["curse"] = "Cursed",
33-
["mark"] = "Marked",
34-
["electrocute"] = "Electrocuted",
35-
}
36-
return conditionMap[verb] or firstToUpper(verb)
37-
end
38-
3929
-- Radius jewels that modify other nodes
4030
local function getSimpleConv(srcList, dst, type, remove, factor)
4131
return function(node, out, data)
@@ -6408,6 +6398,18 @@ local flagTypes = {
64086398
["malediction"] = "HasMalediction",
64096399
}
64106400

6401+
6402+
-- Convert condition verb forms to their proper condition variable names
6403+
-- TODO better name? somehow combine with the function below?
6404+
local function getConditionVar(verb)
6405+
local conditionMap = {
6406+
["curse"] = "Cursed",
6407+
["mark"] = "Marked",
6408+
["electrocute"] = "Electrocuted",
6409+
}
6410+
return conditionMap[verb] or firstToUpper(verb)
6411+
end
6412+
64116413
-- Table to map "status" like "Bleeding" to correct effect like "BleedImmune"
64126414
local statusToEffectMap = {
64136415
["bleeding"] = "Bleed",

0 commit comments

Comments
 (0)