Skip to content

Commit 8f5f940

Browse files
committed
fix to make Uber Atziri work
1 parent 51ca262 commit 8f5f940

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Classes/ConfigTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function ConfigTabClass:Load(xml, fileName)
238238
self.input[node.attrib.name] = tonumber(node.attrib.number)
239239
elseif node.attrib.string then
240240
if node.attrib.name == "enemyIsBoss" then
241-
self.input[node.attrib.name] = node.attrib.string:lower():gsub("^%l", s_upper)
241+
self.input[node.attrib.name] = node.attrib.string:lower():gsub("(%l)(%w*)", function(a,b) return s_upper(a)..b end)
242242
else
243243
self.input[node.attrib.name] = node.attrib.string
244244
end

Modules/ConfigOptions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,8 @@ 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)
1061-
if val == "Uber atziri" then
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)
1061+
if val == "Uber Atziri" then
10621062
enemyModList:NewMod("Condition:RareOrUnique", "FLAG", true, "Config", { type = "Condition", var = "Effective" })
10631063
enemyModList:NewMod("CurseEffectOnSelf", "MORE", -33, "Boss")
10641064
enemyModList:NewMod("ElementalResist", "BASE", 40, "Boss")

0 commit comments

Comments
 (0)