Skip to content

Commit 84a3e08

Browse files
author
LocalIdentity
committed
Merge branch 'dev'
2 parents c1b1897 + 58c48e3 commit 84a3e08

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Classes/ConfigTab.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ local t_insert = table.insert
77
local m_min = math.min
88
local m_max = math.max
99
local m_floor = math.floor
10+
local s_upper = string.upper
1011

1112
local gameVersionDropList = { }
1213
for _, version in ipairs(targetVersionList) do
@@ -236,7 +237,11 @@ function ConfigTabClass:Load(xml, fileName)
236237
if node.attrib.number then
237238
self.input[node.attrib.name] = tonumber(node.attrib.number)
238239
elseif node.attrib.string then
239-
self.input[node.attrib.name] = node.attrib.string
240+
if node.attrib.name == "enemyIsBoss" then
241+
self.input[node.attrib.name] = node.attrib.string:lower():gsub("(%l)(%w*)", function(a,b) return s_upper(a)..b end)
242+
else
243+
self.input[node.attrib.name] = node.attrib.string
244+
end
240245
elseif node.attrib.boolean then
241246
self.input[node.attrib.name] = node.attrib.boolean == "true"
242247
else

Modules/ConfigOptions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ return {
10571057
enemyModList:NewMod("SelfIgniteDuration", "MORE", -50, "Boss")
10581058
end
10591059
end },
1060-
{ var = "enemyIsBoss", type = "list", ifVer = "3_0", label = "Is the enemy a Boss?", tooltip = "Standard Boss adds the following modifiers:\n33% less Effect of your Curses\n+40% to enemy Elemental Resistances\n+25% to enemy Chaos Resistance\n\nShaper/Guardian adds the following modifiers:\n66% less Effect of your Curses\n+50% to enemy Elemental Resistances\n+30% to enemy Chaos Resistance\n+33% to enemy Armour\n\nSirus adds the following modifiers:\n66% less Effect of your Curses\n+50% to enemy Elemental Resistances\n+30% to enemy Chaos Resistance\n+100% to enemy Armour", list = {{val="NONE",label="No"},{val="Uber Atziri",label="Standard Boss"},{val="Shaper",label="Shaper/Guardian"},{val="Sirus",label="Sirus"}}, apply = function(val, modList, enemyModList)
1060+
{ var = "enemyIsBoss", type = "list", ifVer = "3_0", label = "Is the enemy a Boss?", tooltip = "Standard Boss adds the following modifiers:\n33% less Effect of your Curses\n+40% to enemy Elemental Resistances\n+25% to enemy Chaos Resistance\n\nShaper/Guardian adds the following modifiers:\n66% less Effect of your Curses\n+50% to enemy Elemental Resistances\n+30% to enemy Chaos Resistance\n+33% to enemy Armour\n\nSirus adds the following modifiers:\n66% less Effect of your Curses\n+50% to enemy Elemental Resistances\n+30% to enemy Chaos Resistance\n+100% to enemy Armour", list = {{val="None",label="No"},{val="Uber Atziri",label="Standard Boss"},{val="Shaper",label="Shaper/Guardian"},{val="Sirus",label="Sirus"}}, apply = function(val, modList, enemyModList)
10611061
if val == "Uber Atziri" then
10621062
enemyModList:NewMod("Condition:RareOrUnique", "FLAG", true, "Config", { type = "Condition", var = "Effective" })
10631063
enemyModList:NewMod("CurseEffectOnSelf", "MORE", -33, "Boss")

0 commit comments

Comments
 (0)