Fix parsing of gem tooltips and Iron grip
This commit is contained in:
@@ -10186,7 +10186,7 @@ c["Socketed Gems are Supported by level 18 Added Lightning Damage"]={{[1]={[1]={
|
||||
c["Culling Strike against Burning Enemies Gain a Frenzy Charge if an Attack Ignites an Enemy"]={nil,"Culling Strike against Burning Enemies Gain a Frenzy Charge if an Attack Ignites an Enemy "}
|
||||
c["Hexes have 50% increased Doom gain rate"]={nil,"Hexes have 50% increased Doom gain rate "}
|
||||
c["Debuffs on you expire 15% faster while affected by Haste You gain Onslaught for 4 seconds on Kill while affected by Haste"]={nil,"Debuffs on you expire 15% faster while affected by Haste You gain Onslaught for 4 seconds on Kill while affected by Haste "}
|
||||
c["Strength's Damage bonus applies to Projectile Attack Damage as well as Melee Damage"]={nil,"Strength's Damage bonus applies to Projectile Attack Damage as well as Melee Damage "}
|
||||
c["Strength's Damage bonus applies to Projectile Attack Damage as well as Melee Damage"]={{[1]={flags=0,keywordFlags=0,name="IronGrip",type="FLAG",value=true}},nil}
|
||||
c["Brand Recall has 10% increased Cooldown Recovery Rate"]={{[1]={[1]={skillName="Brand Recall",type="SkillName"},flags=0,keywordFlags=0,name="CooldownRecovery",type="INC",value=10}},nil}
|
||||
c["5% increased Cooldown Recovery Rate for throwing Traps"]={{[1]={flags=0,keywordFlags=4096,name="CooldownRecovery",type="INC",value=5}},nil}
|
||||
c["20% increased Cooldown Recovery Rate of Movement Skills"]={{[1]={flags=0,keywordFlags=8,name="CooldownRecovery",type="INC",value=20}},nil}
|
||||
|
||||
@@ -1225,7 +1225,7 @@ local specialModList = {
|
||||
["no critical strike multiplier"] = { flag("NoCritMultiplier") },
|
||||
["ailments never count as being from critical strikes"] = { flag("AilmentsAreNeverFromCrit") },
|
||||
["the increase to physical damage from strength applies to projectile attacks as well as melee attacks"] = { flag("IronGrip") },
|
||||
["strength%'s damage bonus applies to projectile damage as well as melee damage"] = { flag("IronGrip") },
|
||||
["strength%'s damage bonus applies to projectile attack damage as well as melee damage"] = { flag("IronGrip") },
|
||||
["converts all evasion rating to armour%. dexterity provides no bonus to evasion rating"] = { flag("IronReflexes") },
|
||||
["30%% chance to dodge attack hits%. 50%% less armour, 30%% less energy shield, 30%% less chance to block spell and attack damage"] = {
|
||||
mod("AttackDodgeChance", "BASE", 30),
|
||||
|
||||
@@ -181,22 +181,22 @@ return function(stats, scopeName)
|
||||
for _, spec in ipairs(desc) do
|
||||
applySpecial(val, spec)
|
||||
end
|
||||
local statDesc = desc.text:gsub("%%(%d)%%", function(n)
|
||||
local v = val[tonumber(n)]
|
||||
local statDesc = desc.text:gsub("{(%d)}", function(n)
|
||||
local v = val[tonumber(n)+1]
|
||||
if v.min == v.max then
|
||||
return s_format("%"..v.fmt, v.min)
|
||||
else
|
||||
return s_format("(%"..v.fmt.."-%"..v.fmt..")", v.min, v.max)
|
||||
end
|
||||
end):gsub("%%d", function()
|
||||
end):gsub("{:%+?d}", function()
|
||||
local v = val[1]
|
||||
if v.min == v.max then
|
||||
return s_format("%"..v.fmt, v.min)
|
||||
else
|
||||
return s_format("(%"..v.fmt.."-%"..v.fmt..")", v.min, v.max)
|
||||
end
|
||||
end):gsub("%%(%d)$(%+?)d", function(n, fmt)
|
||||
local v = val[tonumber(n)]
|
||||
end):gsub("{(%d):(%+?)d}", function(n, fmt)
|
||||
local v = val[tonumber(n)+1]
|
||||
if v.min == v.max then
|
||||
return s_format("%"..fmt..v.fmt, v.min)
|
||||
elseif fmt == "+" then
|
||||
|
||||
Reference in New Issue
Block a user