Skip to content

Commit 249544f

Browse files
committed
Move back getConditionVar
1 parent f693447 commit 249544f

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

src/Modules/ModParser.lua

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

29+
-- Convert condition verb forms to their proper condition variable names
30+
-- TODO better name? somehow combine with the function below?
31+
local function getConditionVar(verb)
32+
local conditionMap = {
33+
["curse"] = "Cursed",
34+
["mark"] = "Marked",
35+
["electrocute"] = "Electrocuted",
36+
}
37+
return conditionMap[verb] or firstToUpper(verb)
38+
end
39+
2940
-- Radius jewels that modify other nodes
3041
local function getSimpleConv(srcList, dst, type, remove, factor)
3142
return function(node, out, data)
@@ -6398,18 +6409,6 @@ local flagTypes = {
63986409
["malediction"] = "HasMalediction",
63996410
}
64006411

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-
64136412
-- Table to map "status" like "Bleeding" to correct effect like "BleedImmune"
64146413
local statusToEffectMap = {
64156414
["bleeding"] = "Bleed",

0 commit comments

Comments
 (0)