Release 1.4.16

- Add item corrupt option
- Explosive Arrow's radius per fuse now applies
- Fixed error in Skills tab
This commit is contained in:
Openarl
2017-05-27 22:26:59 +10:00
parent 9d14243ef6
commit 49fec0fba3
15 changed files with 221 additions and 131 deletions

View File

@@ -218,10 +218,16 @@ If there's 2 slots an item can go in, holding Shift will put it in the second.]]
self.controls.displayItemEnchant.shown = function()
return self.displayItem.enchantments
end
self.controls.displayItemCorrupt = common.New("ButtonControl", {"TOPLEFT",self.controls.addDisplayItem,"BOTTOMLEFT"}, function() return self.controls.displayItemEnchant:IsShown() and 168 or 0 end, 8, 100, 20, "Corrupt...", function()
self:CorruptDisplayItem()
end)
self.controls.displayItemCorrupt.shown = function()
return self.displayItem.corruptable
end
for i = 1, 6 do
local prev = self.controls["displayItemAffix"..(i-1)] or self.controls.addDisplayItem
local drop
drop = common.New("DropDownControl", {"TOPLEFT",prev,"BOTTOMLEFT"}, i==1 and 40 or 0, i == 1 and function() return self.displayItem.enchantments and 28 or 8 end or 2, 418, 20, nil, function(sel, value)
drop = common.New("DropDownControl", {"TOPLEFT",prev,"BOTTOMLEFT"}, i==1 and 40 or 0, i == 1 and function() return (self.displayItem.enchantments or self.displayItem.corruptable) and 36 or 8 end or 2, 418, 20, nil, function(sel, value)
self.displayItem[drop.outputTable][drop.outputIndex] = value.value
itemLib.craftItem(self.displayItem)
self:UpdateDisplayItemRangeLines()
@@ -245,7 +251,7 @@ If there's 2 slots an item can go in, holding Shift will put it in the second.]]
self.controls.displayItemRangeSlider.val = self.displayItem.rangeLineList[sel].range
end)
self.controls.displayItemRangeLine.y = function()
return 8 + (self.displayItem and self.displayItem.enchantments and 28 or 0) + (self.displayItem and self.displayItem.craftable and (self.displayItem.affixLimit * 22 + 6) or 0)
return 8 + (self.displayItem and (self.displayItem.enchantments or self.displayItem.corruptable) and 28 or 0) + (self.displayItem and self.displayItem.craftable and (self.displayItem.affixLimit * 22 + 6) or 0)
end
self.controls.displayItemRangeLine.shown = function()
return self.displayItem.rangeLineList[1] ~= nil
@@ -383,7 +389,7 @@ function ItemsTabClass:Draw(viewPort, inputEvents)
if self.displayItem then
local extraOffset = self.controls.displayItemRangeLine:IsShown() and 26 or 0
if self.displayItem.enchantments then
if self.displayItem.enchantments or self.displayItem.corruptable then
extraOffset = extraOffset + 28
end
if self.displayItem.craftable then
@@ -872,6 +878,61 @@ function ItemsTabClass:EnchantDisplayItem()
main:OpenPopup(550, 130, "Enchant Item", controls)
end
-- Opens the item corrupting popup
function ItemsTabClass:CorruptDisplayItem()
local controls = { }
local implicitList = { }
for modId, mod in pairs(data.corruptedMods) do
if itemLib.getModSpawnWeight(self.displayItem, mod) > 0 then
t_insert(implicitList, mod)
end
end
table.sort(implicitList, function(a, b)
local an = a[1]:lower():gsub("%(.-%)","$"):gsub("[%+%-%%]",""):gsub("%d+","$")
local bn = b[1]:lower():gsub("%(.-%)","$"):gsub("[%+%-%%]",""):gsub("%d+","$")
if an ~= bn then
return an < bn
else
return a.level < b.level
end
end)
local function corruptItem()
local item = itemLib.makeItemFromRaw(itemLib.createItemRaw(self.displayItem))
item.id = self.displayItem.id
item.corrupted = true
if controls.implicit.sel > 1 then
for i = 1, item.implicitLines do
t_remove(item.modLines, 1)
end
for _, modLine in ipairs(implicitList[controls.implicit.sel - 1]) do
t_insert(item.modLines, 1, { line = modLine })
end
item.implicitLines = #implicitList[controls.implicit.sel - 1]
end
item.raw = itemLib.createItemRaw(item)
itemLib.parseItemRaw(item)
return item
end
controls.implicitLabel = common.New("LabelControl", {"TOPRIGHT",nil,"TOPLEFT"}, 65, 20, 0, 16, "Implicit:")
controls.implicit = common.New("DropDownControl", {"TOPLEFT",nil,"TOPLEFT"}, 70, 20, 450, 18, { "None" })
for _, mod in ipairs(implicitList) do
t_insert(controls.implicit.list, table.concat(mod, "/"))
end
controls.save = common.New("ButtonControl", nil, -45, 50, 80, 20, "Corrupt", function()
self:SetDisplayItem(corruptItem())
main:ClosePopup()
end)
controls.save.tooltipFunc = function()
local item = corruptItem()
self:AddItemTooltip(item, nil, true)
return data.colorCodes[item.rarity], true
end
controls.close = common.New("ButtonControl", nil, 45, 50, 80, 20, "Cancel", function()
main:ClosePopup()
end)
main:OpenPopup(540, 80, "Corrupt Item", controls)
end
function ItemsTabClass:AddItemTooltip(item, slot, dbMode)
-- Item name
local rarityCode = data.colorCodes[item.rarity]

View File

@@ -132,7 +132,6 @@ function ModDBClass:Sum(modType, cfg, ...)
else
value.value = value.value * mult + (tag.base or 0)
end
value.value = value.value * mult + (tag.base or 0)
else
value = value * mult + (tag.base or 0)
end

View File

@@ -106,7 +106,6 @@ function ModListClass:Sum(modType, cfg, ...)
else
value.value = value.value * mult + (tag.base or 0)
end
value.value = value.value * mult + (tag.base or 0)
else
value = value * mult + (tag.base or 0)
end

View File

@@ -429,6 +429,9 @@ function SkillsTabClass:ProcessSocketGroup(socketGroup)
gem.level = gem.data.defaultLevel
gem.defaultLevel = gem.data.defaultLevel
end
if not gem.data.levels[gem.level] then
gem.level = m_max(1, m_min(#gem.data.levels, gem.level))
end
if gem.data.gemTags then
gem.reqLevel = gem.data.levels[gem.level][1]
gem.reqStr = calcLib.gemStatRequirement(gem.reqLevel, gem.data.support, gem.data.gemStr)

View File

@@ -1,114 +1,114 @@
-- Item data (c) Grinding Gear Games
return {
["MovementVelocityCorrupted"] = { "(2-5)% increased Movement Speed", weightKey = { "amulet", "boots", "default", }, weightVal = { 1000, 1000, 0, }, },
["MaxFrenzyChargesCorrupted"] = { "+1 to Maximum Frenzy Charges", weightKey = { "boots", "amulet", "default", }, weightVal = { 1000, 1000, 0, }, },
["MaxPowerChargesCorrupted"] = { "+1 to Maximum Power Charges", weightKey = { "two_hand_weapon", "default", }, weightVal = { 1000, 0, }, },
["MinionDamageCorrupted"] = { "Minions deal (15-20)% increased Damage", weightKey = { "helmet", "amulet", "default", }, weightVal = { 1000, 1000, 0, }, },
["SocketedVaalGemsIncreaseCorrupted"] = { "+(1-2) to Level of Socketed Vaal Gems", weightKey = { "helmet", "gloves", "boots", "body_armour", "shield", "default", }, weightVal = { 1000, 1000, 1000, 1000, 1000, 0, }, },
["DamageTakenFlatReductionCorrupted1"] = { "-(10-5) Physical Damage taken from Attacks", weightKey = { "amulet", "shield", "default", }, weightVal = { 1000, 1000, 0, }, },
["DamageTakenFlatReductionCorrupted2"] = { "-(16-11) Physical Damage taken from Attacks", weightKey = { "amulet", "shield", "default", }, weightVal = { 1000, 1000, 0, }, },
["DamageTakenFlatReductionCorrupted3"] = { "-(24-17) Physical Damage taken from Attacks", weightKey = { "amulet", "shield", "default", }, weightVal = { 1000, 1000, 0, }, },
["FireDamageLifeLeechPermyriadCorrupted"] = { "0.2% of Fire Damage Leeched as Life", weightKey = { "amulet", "quiver", "two_hand_weapon", "weapon", "default", }, weightVal = { 1000, 1000, 1000, 200, 0, }, },
["ColdDamageLifeLeechPermyriadCorrupted"] = { "0.2% of Cold Damage Leeched as Life", weightKey = { "amulet", "quiver", "two_hand_weapon", "weapon", "default", }, weightVal = { 1000, 1000, 1000, 200, 0, }, },
["LightningDamageLifeLeechPermyriadCorrupted"] = { "0.2% of Lightning Damage Leeched as Life", weightKey = { "amulet", "quiver", "two_hand_weapon", "weapon", "default", }, weightVal = { 1000, 1000, 1000, 200, 0, }, },
["IncreasedCastSpeedCorrupted"] = { "(4-6)% increased Cast Speed", weightKey = { "no_caster_mods", "ring", "gloves", "focus", "default", }, weightVal = { 0, 500, 1000, 1000, 0, }, },
["ChanceToFleeCorrupted"] = { "5% chance to Cause Monsters to Flee", weightKey = { "weapon", "default", }, weightVal = { 1000, 0, }, },
["BlockChanceCorrupted"] = { "(2-4)% Chance to Block", weightKey = { "staff", "amulet", "default", }, weightVal = { 1000, 1000, 0, }, },
["LocalAddedChaosDamageCorrupted1"] = { "Adds (1-2) to (3-5) Chaos Damage", weightKey = { "no_attack_mods", "weapon", "default", }, weightVal = { 0, 1000, 0, }, },
["LocalAddedChaosDamageCorrupted2"] = { "Adds (6-8) to (11-13) Chaos Damage", weightKey = { "no_attack_mods", "weapon", "default", }, weightVal = { 0, 1000, 0, }, },
["LocalAddedChaosDamageCorrupted3"] = { "Adds (8-11) to (19-23) Chaos Damage", weightKey = { "no_attack_mods", "weapon", "default", }, weightVal = { 0, 1000, 0, }, },
["AddedChaosDamageCorrupted1"] = { "Adds 1 to (2-3) Chaos Damage to Attacks", weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 1000, 0, }, },
["AddedChaosDamageCorrupted2"] = { "Adds (3-4) to (6-8) Chaos Damage to Attacks", weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 1000, 0, }, },
["AddedChaosDamageCorrupted3"] = { "Adds (7-9) to (11-13) Chaos Damage to Attacks", weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 1000, 0, }, },
["SpellBlockChanceCorrupted"] = { "(2-4)% Chance to Block Spells", weightKey = { "staff", "amulet", "shield", "default", }, weightVal = { 1000, 1000, 1000, 0, }, },
["AttackSpeedCorrupted"] = { "(4-8)% increased Attack Speed", weightKey = { "no_attack_mods", "amulet", "default", }, weightVal = { 0, 1000, 0, }, },
["WeaponElementalDamageCorrupted"] = { "(6-12)% increased Elemental Damage with Weapons", weightKey = { "no_attack_mods", "ring", "amulet", "default", }, weightVal = { 0, 1000, 1000, 0, }, },
["CullingStrikeCorrupted"] = { "Culling Strike", weightKey = { "sword", "axe", "dagger", "wand", "bow", "claw", "default", }, weightVal = { 1000, 1000, 1000, 1000, 1000, 1000, 0, }, },
["ManaOnLifeLostCorrupted"] = { "(3-6)% of Damage taken gained as Mana when Hit", weightKey = { "amulet", "ring", "shield", "default", }, weightVal = { 1000, 1000, 1000, 0, }, },
["MaximumResistanceCorrupted"] = { "+1% to all maximum Resistances", weightKey = { "amulet", "body_armour", "default", }, weightVal = { 100, 200, 0, }, },
["AdditionalCurseCorrupted"] = { "Enemies can have 1 additional Curse", weightKey = { "amulet", "default", }, weightVal = { 500, 0, }, },
["ChanceToAvoidFreezeCorruption"] = { "(10-20)% chance to Avoid being Frozen", weightKey = { "amulet", "body_armour", "ring", "default", }, weightVal = { 500, 500, 100, 0, }, },
["ChanceToAvoidIgniteCorruption"] = { "(10-20)% chance to Avoid being Ignited", weightKey = { "amulet", "body_armour", "shield", "default", }, weightVal = { 500, 500, 500, 0, }, },
["ChaosResistCorruption"] = { "+(2-4)% to Chaos Resistance", weightKey = { "fishing_rod", "weapon", "jewel", "default", }, weightVal = { 0, 0, 0, 2000, }, },
["ChanceToDodgeCorruption"] = { "(2-4)% chance to Dodge Attacks", weightKey = { "boots", "default", }, weightVal = { 1000, 0, }, },
["CannotBeKnockedBackCorruption"] = { "Cannot be Knocked Back", weightKey = { "boots", "body_armour", "default", }, weightVal = { 1000, 1000, 0, }, },
["GemLevelCorruption"] = { "+1 to Level of Socketed Gems", weightKey = { "boots", "gloves", "body_armour", "shield", "default", }, weightVal = { 1000, 1000, 1000, 1000, 0, }, },
["AvoidShockCorruption"] = { "(10-20)% chance to Avoid being Shocked", weightKey = { "body_armour", "belt", "default", }, weightVal = { 1000, 1000, 0, }, },
["CannotBeLeechedFromCorruption"] = { "Enemies Cannot Leech Life From You", weightKey = { "helmet", "default", }, weightVal = { 1000, 0, }, },
["DamageTakenFromManaBeforeLifeCorruption"] = { "When Hit, (3-5)% of Damage is taken from Mana before Life", weightKey = { "helmet", "default", }, weightVal = { 1000, 0, }, },
["DamageConversionFireCorruption"] = { "(10-20)% of Physical Damage Converted to Fire Damage", weightKey = { "quiver", "sceptre", "default", }, weightVal = { 500, 500, 0, }, },
["DamageConversionColdCorruption"] = { "(10-20)% of Physical Damage Converted to Cold Damage", weightKey = { "quiver", "sceptre", "default", }, weightVal = { 500, 500, 0, }, },
["DamageConversionLighningCorruption"] = { "(10-20)% of Physical Damage Converted to Lightning Damage", weightKey = { "quiver", "sceptre", "default", }, weightVal = { 500, 500, 0, }, },
["AdditionalArrowsCorruption"] = { "Adds an additional Arrow", weightKey = { "no_attack_mods", "quiver", "bow", "default", }, weightVal = { 0, 1000, 500, 0, }, },
["AdditionalAOERangeCorruption"] = { "(4-6)% increased Area of Effect of Area Skills", weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["IncreasedDurationCorruption"] = { "(5-8)% increased Skill Effect Duration", weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["AdditionalTrapsCorruption_"] = { "Can have up to 1 additional Trap placed at a time", weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["MaximumEnduranceChargesCorruption_"] = { "+1 to Maximum Endurance Charges", weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["DualWieldBlockCorruption"] = { "(3-6)% additional Block Chance while Dual Wielding", weightKey = { "sceptre", "axe", "mace", "wand", "one_hand_weapon", "default", }, weightVal = { 0, 0, 0, 0, 1000, 0, }, },
["PierceCurruption"] = { "(5-10)% chance of Arrows Piercing", weightKey = { "no_attack_mods", "bow", "default", }, weightVal = { 0, 1000, 0, }, },
["GlobalPierceCorruption"] = { "(4-8)% chance of Projectiles Piercing", weightKey = { "wand", "default", }, weightVal = { 1000, 0, }, },
["CurseOnHitTemporalChainsCurruption"] = { "Curse Enemies with level (10-12) Temporal Chains on Hit", weightKey = { "gloves", "default", }, weightVal = { 400, 0, }, },
["CurseOnHitVulnerabilityCorruption"] = { "Curse Enemies with level (10-12) Vulnerability on Hit", weightKey = { "gloves", "default", }, weightVal = { 400, 0, }, },
["CurseOnHitElementalWeaknessCorruption"] = { "Curse Enemies with level (10-12) Elemental Weakness on Hit", weightKey = { "gloves", "default", }, weightVal = { 400, 0, }, },
["SupportedByCastOnStunCorruption"] = { "Socketed Gems are supported by level 12 Cast when Stunned", weightKey = { "gloves", "helmet", "default", }, weightVal = { 1000, 1000, 0, }, },
["SupportedByCastOnCritCorruption"] = { "Socketed Gems are supported by level 12 Cast On Crit", weightKey = { "gloves", "helmet", "default", }, weightVal = { 1000, 1000, 0, }, },
["SupportedByMeleeSplashCorruption"] = { "Socketed Gems are supported by level 10 Melee Splash", weightKey = { "no_attack_mods", "wand", "one_hand_weapon", "default", }, weightVal = { 0, 0, 1000, 0, }, },
["SupportedByAddedFireDamageCorrupted"] = { "Socketed Gems are Supported by level 12 Added Fire Damage", weightKey = { "two_hand_weapon", "mace", "default", }, weightVal = { 0, 1000, 0, }, },
["SupportedByStunCorrupted"] = { "Socketed Gems are supported by level 6 Stun", weightKey = { "mace", "default", }, weightVal = { 1000, 0, }, },
["LocalMeleeWeaponRangeCorrupted"] = { "+(1-2) to Weapon range", weightKey = { "no_attack_mods", "sceptre", "rapier", "wand", "bow", "weapon", "default", }, weightVal = { 0, 0, 0, 0, 0, 1000, 0, }, },
["SocketedSkillsManaMultiplierCorrupted"] = { "Socketed Skill Gems get a 95% Mana Multiplier", weightKey = { "body_armour", "default", }, weightVal = { 1000, 0, }, },
["SupportedByElementalProliferationCorrupted"] = { "Socketed Gems are Supported by level 1 Elemental Proliferation", weightKey = { "wand", "default", }, weightVal = { 1000, 0, }, },
["SupportedByAccuracyCorrupted_"] = { "Socketed Gems are supported by level 12 Additional Accuracy", weightKey = { "no_attack_mods", "one_hand_weapon", "sword", "default", }, weightVal = { 0, 0, 1000, 0, }, },
["SupportedByMultistrikeCorrupted"] = { "Socketed Gems are supported by level 1 Multistrike", weightKey = { "no_attack_mods", "two_hand_weapon", "sword", "default", }, weightVal = { 0, 0, 1000, 0, }, },
["SupportedByAreaOfEffectCorrupted_"] = { "Socketed Gems are Supported by level 1 Increased Area of Effect", weightKey = { "staff", "default", }, weightVal = { 1000, 0, }, },
["SupportedByLifeLeechCorrupted"] = { "Socketed Gems are supported by level 15 Life Leech", weightKey = { "claw", "default", }, weightVal = { 1000, 0, }, },
["SupportedByCriticalMultiplierCorrupted"] = { "Socketed Gems are supported by level 14 Increased Critical Damage", weightKey = { "dagger", "default", }, weightVal = { 1000, 0, }, },
["SupportedByForkCorrupted"] = { "Socketed Gems are supported by level 1 Fork", weightKey = { "bow", "default", }, weightVal = { 1000, 0, }, },
["SupportedByWeaponElementalDamageCorrupted_"] = { "Socketed Gems are supported by level 12 Weapon Elemental Damage", weightKey = { "no_attack_mods", "sceptre", "default", }, weightVal = { 0, 1000, 0, }, },
["SupportedByFasterCastCorrupted"] = { "Socketed Gems are Supported by Level 10 Faster Casting", weightKey = { "no_caster_mods", "sceptre", "default", }, weightVal = { 0, 1000, 0, }, },
["PuritySkillCorrupted"] = { "Grants level 15 Purity of Elements Skill", weightKey = { "amulet", "belt", "default", }, weightVal = { 300, 1000, 0, }, },
["CriticalWeaknessSkillCorrupted"] = { "Grants level 10 Assassin's Mark Skill", weightKey = { "gloves", "default", }, weightVal = { 1000, 0, }, },
["PurityOfFireSkillCorrupted_"] = { "Grants level 15 Purity of Fire Skill", weightKey = { "amulet", "body_armour", "default", }, weightVal = { 150, 500, 0, }, },
["PurityOfColdSkillCorrupted"] = { "Grants level 15 Purity of Ice Skill", weightKey = { "amulet", "body_armour", "default", }, weightVal = { 150, 500, 0, }, },
["PurityOfLightningSkillCorrupted"] = { "Grants level 15 Purity of Lightning Skill", weightKey = { "amulet", "body_armour", "default", }, weightVal = { 150, 500, 0, }, },
["WrathSkillCorrupted"] = { "Grants level 7 Wrath Skill", weightKey = { "helmet", "default", }, weightVal = { 330, 0, }, },
["HatredSkillCorrupted"] = { "Grants level 11 Hatred Skill", weightKey = { "helmet", "default", }, weightVal = { 330, 0, }, },
["AngerSkillCorrupted"] = { "Grants level 15 Anger Skill", weightKey = { "helmet", "default", }, weightVal = { 330, 0, }, },
["DeterminationSkillCorrupted"] = { "Grants level 16 Determination Skill", weightKey = { "shield", "default", }, weightVal = { 330, 0, }, },
["GraceSkillCorrupted"] = { "Grants level 16 Grace Skill", weightKey = { "shield", "default", }, weightVal = { 330, 0, }, },
["DisciplineSkillCorrupted"] = { "Grants level 16 Discipline Skill", weightKey = { "shield", "default", }, weightVal = { 330, 0, }, },
["ProjectileWeaknessSkillCorrupted"] = { "Grants level 15 Projectile Weakness Skill", weightKey = { "quiver", "default", }, weightVal = { 1000, 0, }, },
["ElementalWeaknessSkillCorrupted"] = { "Grants level 10 Elemental Weakness Skill", weightKey = { "wand", "default", }, weightVal = { 1000, 0, }, },
["VulnerabilitySkillCorrupted"] = { "Grants level 10 Vulnerability Skill", weightKey = { "axe", "default", }, weightVal = { 1000, 0, }, },
["ClaritySkillCorrupted1"] = { "Grants level 4 Clarity Skill", weightKey = { "amulet", "belt", "default", }, weightVal = { 250, 350, 0, }, },
["ClaritySkillCorrupted2"] = { "Grants level 8 Clarity Skill", weightKey = { "amulet", "belt", "default", }, weightVal = { 250, 350, 0, }, },
["ClaritySkillCorrupted3"] = { "Grants level 12 Clarity Skill", weightKey = { "belt", "default", }, weightVal = { 350, 0, }, },
["ClaritySkillCorrupted4"] = { "Grants level 16 Clarity Skill", weightKey = { "belt", "default", }, weightVal = { 350, 0, }, },
["FrostbiteSkillCorrupted"] = { "Grants level 14 Frostbite Skill", weightKey = { "ring", "default", }, weightVal = { 500, 0, }, },
["FlammabilitySkillCorrupted"] = { "Grants level 14 Flammability Skill", weightKey = { "ring", "default", }, weightVal = { 500, 0, }, },
["ConductivitySkillCorrupted"] = { "Grants level 14 Conductivity Skill", weightKey = { "ring", "default", }, weightVal = { 500, 0, }, },
["TemporalChainsSkillCorrupted"] = { "Grants level 14 Temporal Chains Skill", weightKey = { "boots", "default", }, weightVal = { 1000, 0, }, },
["HasteSkillCorrupted"] = { "Grants level 14 Haste Skill", weightKey = { "boots", "default", }, weightVal = { 1000, 0, }, },
["ManaOnHitCorrupted"] = { "+(1-2) Mana gained for each Enemy hit by your Attacks", weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 500, 0, }, },
["VitalitySkillCorrupted"] = { "Grants level 15 Vitality Skill", weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["FishingQuantityCorrupted"] = { "(5-10)% increased Quantity of Fish Caught", weightKey = { "fishing_rod", "default", }, weightVal = { 1000, 0, }, },
["FishingRarityCorrupted"] = { "(5-10)% increased Rarity of Fish Caught", weightKey = { "fishing_rod", "default", }, weightVal = { 1000, 0, }, },
["CastSpeedCorrupted"] = { "(10-20)% increased Cast Speed", weightKey = { "no_caster_mods", "fishing_rod", "default", }, weightVal = { 0, 1000, 0, }, },
["CanCatchCorruptFishCorrupted"] = { "You can catch Corrupted Fish", weightKey = { "fishing_rod", "default", }, weightVal = { 1000, 0, }, },
["ChaosResistJewelCorrupted"] = { "+(1-3)% to Chaos Resistance", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedCharacterSizeJewelCorrupted"] = { "1% reduced Character Size", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedChillDurationJewelCorrupted"] = { "(3-5)% reduced Chill Duration on You", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedFreezeDurationJewelCorrupted"] = { "(3-5)% reduced Freeze Duration on You", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedIgniteDurationJewelCorrupted"] = { "(3-5)% reduced Ignite Duration on You", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedShockDurationJewelCorrupted"] = { "(3-5)% reduced Shock Duration on You", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["IncreasedChargeDurationJewelCorrupted_"] = { "(3-7)% increased Endurance, Frenzy and Power Charge Duration", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["AddedChaosDamageJewelCorrupted"] = { "Adds 1 to (2-3) Chaos Damage to Attacks", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ChanceToBeCritJewelCorrupted"] = { "(3-5)% additional Chance to receive a Critical Strike", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["DamageWhileDeadJewelCorrupted"] = { "(20-30)% increased Damage while Dead", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["VaalSkillDamageJewelCorrupted"] = { "(5-10)% increased Vaal Skill Damage", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ChaosDamagePerCorruptedItemJewelCorrupted"] = { "1% increased Chaos Damage per equipped Corrupted Item", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["LifeLeechRatePerCorruptedItemJewelCorrupted"] = { "1% increased Life Leeched per second per equipped Corrupted Item", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ManaLeechRatePerCorruptedItemJewelCorrupted"] = { "1% increased Mana Leeched per second per equipped Corrupted Item", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["SilenceImmunityJewelCorrupted"] = { "You cannot be Cursed with Silence", weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["MovementVelocityCorrupted"] = { "(2-5)% increased Movement Speed", level = 1, weightKey = { "amulet", "boots", "default", }, weightVal = { 1000, 1000, 0, }, },
["MaxFrenzyChargesCorrupted"] = { "+1 to Maximum Frenzy Charges", level = 20, weightKey = { "boots", "amulet", "default", }, weightVal = { 1000, 1000, 0, }, },
["MaxPowerChargesCorrupted"] = { "+1 to Maximum Power Charges", level = 20, weightKey = { "two_hand_weapon", "default", }, weightVal = { 1000, 0, }, },
["MinionDamageCorrupted"] = { "Minions deal (15-20)% increased Damage", level = 1, weightKey = { "helmet", "amulet", "default", }, weightVal = { 1000, 1000, 0, }, },
["SocketedVaalGemsIncreaseCorrupted"] = { "+(1-2) to Level of Socketed Vaal Gems", level = 1, weightKey = { "helmet", "gloves", "boots", "body_armour", "shield", "default", }, weightVal = { 1000, 1000, 1000, 1000, 1000, 0, }, },
["DamageTakenFlatReductionCorrupted1"] = { "-(10-5) Physical Damage taken from Attacks", level = 1, weightKey = { "amulet", "shield", "default", }, weightVal = { 1000, 1000, 0, }, },
["DamageTakenFlatReductionCorrupted2"] = { "-(16-11) Physical Damage taken from Attacks", level = 30, weightKey = { "amulet", "shield", "default", }, weightVal = { 1000, 1000, 0, }, },
["DamageTakenFlatReductionCorrupted3"] = { "-(24-17) Physical Damage taken from Attacks", level = 60, weightKey = { "amulet", "shield", "default", }, weightVal = { 1000, 1000, 0, }, },
["FireDamageLifeLeechPermyriadCorrupted"] = { "0.2% of Fire Damage Leeched as Life", level = 50, weightKey = { "amulet", "quiver", "two_hand_weapon", "weapon", "default", }, weightVal = { 1000, 1000, 1000, 200, 0, }, },
["ColdDamageLifeLeechPermyriadCorrupted"] = { "0.2% of Cold Damage Leeched as Life", level = 50, weightKey = { "amulet", "quiver", "two_hand_weapon", "weapon", "default", }, weightVal = { 1000, 1000, 1000, 200, 0, }, },
["LightningDamageLifeLeechPermyriadCorrupted"] = { "0.2% of Lightning Damage Leeched as Life", level = 50, weightKey = { "amulet", "quiver", "two_hand_weapon", "weapon", "default", }, weightVal = { 1000, 1000, 1000, 200, 0, }, },
["IncreasedCastSpeedCorrupted"] = { "(4-6)% increased Cast Speed", level = 1, weightKey = { "no_caster_mods", "ring", "gloves", "focus", "default", }, weightVal = { 0, 500, 1000, 1000, 0, }, },
["ChanceToFleeCorrupted"] = { "5% chance to Cause Monsters to Flee", level = 1, weightKey = { "weapon", "default", }, weightVal = { 1000, 0, }, },
["BlockChanceCorrupted"] = { "(2-4)% Chance to Block", level = 1, weightKey = { "staff", "amulet", "default", }, weightVal = { 1000, 1000, 0, }, },
["LocalAddedChaosDamageCorrupted1"] = { "Adds (1-2) to (3-5) Chaos Damage", level = 1, weightKey = { "no_attack_mods", "weapon", "default", }, weightVal = { 0, 1000, 0, }, },
["LocalAddedChaosDamageCorrupted2"] = { "Adds (6-8) to (11-13) Chaos Damage", level = 20, weightKey = { "no_attack_mods", "weapon", "default", }, weightVal = { 0, 1000, 0, }, },
["LocalAddedChaosDamageCorrupted3"] = { "Adds (8-11) to (19-23) Chaos Damage", level = 40, weightKey = { "no_attack_mods", "weapon", "default", }, weightVal = { 0, 1000, 0, }, },
["AddedChaosDamageCorrupted1"] = { "Adds 1 to (2-3) Chaos Damage to Attacks", level = 1, weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 1000, 0, }, },
["AddedChaosDamageCorrupted2"] = { "Adds (3-4) to (6-8) Chaos Damage to Attacks", level = 20, weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 1000, 0, }, },
["AddedChaosDamageCorrupted3"] = { "Adds (7-9) to (11-13) Chaos Damage to Attacks", level = 40, weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 1000, 0, }, },
["SpellBlockChanceCorrupted"] = { "(2-4)% Chance to Block Spells", level = 1, weightKey = { "staff", "amulet", "shield", "default", }, weightVal = { 1000, 1000, 1000, 0, }, },
["AttackSpeedCorrupted"] = { "(4-8)% increased Attack Speed", level = 1, weightKey = { "no_attack_mods", "amulet", "default", }, weightVal = { 0, 1000, 0, }, },
["WeaponElementalDamageCorrupted"] = { "(6-12)% increased Elemental Damage with Weapons", level = 1, weightKey = { "no_attack_mods", "ring", "amulet", "default", }, weightVal = { 0, 1000, 1000, 0, }, },
["CullingStrikeCorrupted"] = { "Culling Strike", level = 1, weightKey = { "sword", "axe", "dagger", "wand", "bow", "claw", "default", }, weightVal = { 1000, 1000, 1000, 1000, 1000, 1000, 0, }, },
["ManaOnLifeLostCorrupted"] = { "(3-6)% of Damage taken gained as Mana when Hit", level = 1, weightKey = { "amulet", "ring", "shield", "default", }, weightVal = { 1000, 1000, 1000, 0, }, },
["MaximumResistanceCorrupted"] = { "+1% to all maximum Resistances", level = 1, weightKey = { "amulet", "body_armour", "default", }, weightVal = { 100, 200, 0, }, },
["AdditionalCurseCorrupted"] = { "Enemies can have 1 additional Curse", level = 1, weightKey = { "amulet", "default", }, weightVal = { 500, 0, }, },
["ChanceToAvoidFreezeCorruption"] = { "(10-20)% chance to Avoid being Frozen", level = 1, weightKey = { "amulet", "body_armour", "ring", "default", }, weightVal = { 500, 500, 100, 0, }, },
["ChanceToAvoidIgniteCorruption"] = { "(10-20)% chance to Avoid being Ignited", level = 1, weightKey = { "amulet", "body_armour", "shield", "default", }, weightVal = { 500, 500, 500, 0, }, },
["ChaosResistCorruption"] = { "+(2-4)% to Chaos Resistance", level = 1, weightKey = { "fishing_rod", "weapon", "jewel", "default", }, weightVal = { 0, 0, 0, 2000, }, },
["ChanceToDodgeCorruption"] = { "(2-4)% chance to Dodge Attacks", level = 1, weightKey = { "boots", "default", }, weightVal = { 1000, 0, }, },
["CannotBeKnockedBackCorruption"] = { "Cannot be Knocked Back", level = 1, weightKey = { "boots", "body_armour", "default", }, weightVal = { 1000, 1000, 0, }, },
["GemLevelCorruption"] = { "+1 to Level of Socketed Gems", level = 1, weightKey = { "boots", "gloves", "body_armour", "shield", "default", }, weightVal = { 1000, 1000, 1000, 1000, 0, }, },
["AvoidShockCorruption"] = { "(10-20)% chance to Avoid being Shocked", level = 1, weightKey = { "body_armour", "belt", "default", }, weightVal = { 1000, 1000, 0, }, },
["CannotBeLeechedFromCorruption"] = { "Enemies Cannot Leech Life From You", level = 1, weightKey = { "helmet", "default", }, weightVal = { 1000, 0, }, },
["DamageTakenFromManaBeforeLifeCorruption"] = { "When Hit, (3-5)% of Damage is taken from Mana before Life", level = 1, weightKey = { "helmet", "default", }, weightVal = { 1000, 0, }, },
["DamageConversionFireCorruption"] = { "(10-20)% of Physical Damage Converted to Fire Damage", level = 1, weightKey = { "quiver", "sceptre", "default", }, weightVal = { 500, 500, 0, }, },
["DamageConversionColdCorruption"] = { "(10-20)% of Physical Damage Converted to Cold Damage", level = 1, weightKey = { "quiver", "sceptre", "default", }, weightVal = { 500, 500, 0, }, },
["DamageConversionLighningCorruption"] = { "(10-20)% of Physical Damage Converted to Lightning Damage", level = 1, weightKey = { "quiver", "sceptre", "default", }, weightVal = { 500, 500, 0, }, },
["AdditionalArrowsCorruption"] = { "Adds an additional Arrow", level = 1, weightKey = { "no_attack_mods", "quiver", "bow", "default", }, weightVal = { 0, 1000, 500, 0, }, },
["AdditionalAOERangeCorruption"] = { "(4-6)% increased Area of Effect of Area Skills", level = 1, weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["IncreasedDurationCorruption"] = { "(5-8)% increased Skill Effect Duration", level = 1, weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["AdditionalTrapsCorruption_"] = { "Can have up to 1 additional Trap placed at a time", level = 1, weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["MaximumEnduranceChargesCorruption_"] = { "+1 to Maximum Endurance Charges", level = 1, weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["DualWieldBlockCorruption"] = { "(3-6)% additional Block Chance while Dual Wielding", level = 1, weightKey = { "sceptre", "axe", "mace", "wand", "one_hand_weapon", "default", }, weightVal = { 0, 0, 0, 0, 1000, 0, }, },
["PierceCurruption"] = { "(5-10)% chance of Arrows Piercing", level = 1, weightKey = { "no_attack_mods", "bow", "default", }, weightVal = { 0, 1000, 0, }, },
["GlobalPierceCorruption"] = { "(4-8)% chance of Projectiles Piercing", level = 1, weightKey = { "wand", "default", }, weightVal = { 1000, 0, }, },
["CurseOnHitTemporalChainsCurruption"] = { "Curse Enemies with level (10-12) Temporal Chains on Hit", level = 30, weightKey = { "gloves", "default", }, weightVal = { 400, 0, }, },
["CurseOnHitVulnerabilityCorruption"] = { "Curse Enemies with level (10-12) Vulnerability on Hit", level = 30, weightKey = { "gloves", "default", }, weightVal = { 400, 0, }, },
["CurseOnHitElementalWeaknessCorruption"] = { "Curse Enemies with level (10-12) Elemental Weakness on Hit", level = 30, weightKey = { "gloves", "default", }, weightVal = { 400, 0, }, },
["SupportedByCastOnStunCorruption"] = { "Socketed Gems are supported by level 12 Cast when Stunned", level = 35, weightKey = { "gloves", "helmet", "default", }, weightVal = { 1000, 1000, 0, }, },
["SupportedByCastOnCritCorruption"] = { "Socketed Gems are supported by level 12 Cast On Crit", level = 35, weightKey = { "gloves", "helmet", "default", }, weightVal = { 1000, 1000, 0, }, },
["SupportedByMeleeSplashCorruption"] = { "Socketed Gems are supported by level 10 Melee Splash", level = 20, weightKey = { "no_attack_mods", "wand", "one_hand_weapon", "default", }, weightVal = { 0, 0, 1000, 0, }, },
["SupportedByAddedFireDamageCorrupted"] = { "Socketed Gems are Supported by level 12 Added Fire Damage", level = 48, weightKey = { "two_hand_weapon", "mace", "default", }, weightVal = { 0, 1000, 0, }, },
["SupportedByStunCorrupted"] = { "Socketed Gems are supported by level 6 Stun", level = 38, weightKey = { "mace", "default", }, weightVal = { 1000, 0, }, },
["LocalMeleeWeaponRangeCorrupted"] = { "+(1-2) to Weapon range", level = 1, weightKey = { "no_attack_mods", "sceptre", "rapier", "wand", "bow", "weapon", "default", }, weightVal = { 0, 0, 0, 0, 0, 1000, 0, }, },
["SocketedSkillsManaMultiplierCorrupted"] = { "Socketed Skill Gems get a 95% Mana Multiplier", level = 1, weightKey = { "body_armour", "default", }, weightVal = { 1000, 0, }, },
["SupportedByElementalProliferationCorrupted"] = { "Socketed Gems are Supported by level 1 Elemental Proliferation", level = 12, weightKey = { "wand", "default", }, weightVal = { 1000, 0, }, },
["SupportedByAccuracyCorrupted_"] = { "Socketed Gems are supported by level 12 Additional Accuracy", level = 48, weightKey = { "no_attack_mods", "one_hand_weapon", "sword", "default", }, weightVal = { 0, 0, 1000, 0, }, },
["SupportedByMultistrikeCorrupted"] = { "Socketed Gems are supported by level 1 Multistrike", level = 28, weightKey = { "no_attack_mods", "two_hand_weapon", "sword", "default", }, weightVal = { 0, 0, 1000, 0, }, },
["SupportedByAreaOfEffectCorrupted_"] = { "Socketed Gems are Supported by level 1 Increased Area of Effect", level = 24, weightKey = { "staff", "default", }, weightVal = { 1000, 0, }, },
["SupportedByLifeLeechCorrupted"] = { "Socketed Gems are supported by level 15 Life Leech", level = 59, weightKey = { "claw", "default", }, weightVal = { 1000, 0, }, },
["SupportedByCriticalMultiplierCorrupted"] = { "Socketed Gems are supported by level 14 Increased Critical Damage", level = 35, weightKey = { "dagger", "default", }, weightVal = { 1000, 0, }, },
["SupportedByForkCorrupted"] = { "Socketed Gems are supported by level 1 Fork", level = 6, weightKey = { "bow", "default", }, weightVal = { 1000, 0, }, },
["SupportedByWeaponElementalDamageCorrupted_"] = { "Socketed Gems are supported by level 12 Weapon Elemental Damage", level = 24, weightKey = { "no_attack_mods", "sceptre", "default", }, weightVal = { 0, 1000, 0, }, },
["SupportedByFasterCastCorrupted"] = { "Socketed Gems are Supported by Level 10 Faster Casting", level = 24, weightKey = { "no_caster_mods", "sceptre", "default", }, weightVal = { 0, 1000, 0, }, },
["PuritySkillCorrupted"] = { "Grants level 15 Purity of Elements Skill", level = 45, weightKey = { "amulet", "belt", "default", }, weightVal = { 300, 1000, 0, }, },
["CriticalWeaknessSkillCorrupted"] = { "Grants level 10 Assassin's Mark Skill", level = 31, weightKey = { "gloves", "default", }, weightVal = { 1000, 0, }, },
["PurityOfFireSkillCorrupted_"] = { "Grants level 15 Purity of Fire Skill", level = 45, weightKey = { "amulet", "body_armour", "default", }, weightVal = { 150, 500, 0, }, },
["PurityOfColdSkillCorrupted"] = { "Grants level 15 Purity of Ice Skill", level = 45, weightKey = { "amulet", "body_armour", "default", }, weightVal = { 150, 500, 0, }, },
["PurityOfLightningSkillCorrupted"] = { "Grants level 15 Purity of Lightning Skill", level = 45, weightKey = { "amulet", "body_armour", "default", }, weightVal = { 150, 500, 0, }, },
["WrathSkillCorrupted"] = { "Grants level 7 Wrath Skill", level = 28, weightKey = { "helmet", "default", }, weightVal = { 330, 0, }, },
["HatredSkillCorrupted"] = { "Grants level 11 Hatred Skill", level = 44, weightKey = { "helmet", "default", }, weightVal = { 330, 0, }, },
["AngerSkillCorrupted"] = { "Grants level 15 Anger Skill", level = 56, weightKey = { "helmet", "default", }, weightVal = { 330, 0, }, },
["DeterminationSkillCorrupted"] = { "Grants level 16 Determination Skill", level = 61, weightKey = { "shield", "default", }, weightVal = { 330, 0, }, },
["GraceSkillCorrupted"] = { "Grants level 16 Grace Skill", level = 61, weightKey = { "shield", "default", }, weightVal = { 330, 0, }, },
["DisciplineSkillCorrupted"] = { "Grants level 16 Discipline Skill", level = 61, weightKey = { "shield", "default", }, weightVal = { 330, 0, }, },
["ProjectileWeaknessSkillCorrupted"] = { "Grants level 15 Projectile Weakness Skill", level = 58, weightKey = { "quiver", "default", }, weightVal = { 1000, 0, }, },
["ElementalWeaknessSkillCorrupted"] = { "Grants level 10 Elemental Weakness Skill", level = 31, weightKey = { "wand", "default", }, weightVal = { 1000, 0, }, },
["VulnerabilitySkillCorrupted"] = { "Grants level 10 Vulnerability Skill", level = 31, weightKey = { "axe", "default", }, weightVal = { 1000, 0, }, },
["ClaritySkillCorrupted1"] = { "Grants level 4 Clarity Skill", level = 19, weightKey = { "amulet", "belt", "default", }, weightVal = { 250, 350, 0, }, },
["ClaritySkillCorrupted2"] = { "Grants level 8 Clarity Skill", level = 32, weightKey = { "amulet", "belt", "default", }, weightVal = { 250, 350, 0, }, },
["ClaritySkillCorrupted3"] = { "Grants level 12 Clarity Skill", level = 47, weightKey = { "belt", "default", }, weightVal = { 350, 0, }, },
["ClaritySkillCorrupted4"] = { "Grants level 16 Clarity Skill", level = 59, weightKey = { "belt", "default", }, weightVal = { 350, 0, }, },
["FrostbiteSkillCorrupted"] = { "Grants level 14 Frostbite Skill", level = 46, weightKey = { "ring", "default", }, weightVal = { 500, 0, }, },
["FlammabilitySkillCorrupted"] = { "Grants level 14 Flammability Skill", level = 46, weightKey = { "ring", "default", }, weightVal = { 500, 0, }, },
["ConductivitySkillCorrupted"] = { "Grants level 14 Conductivity Skill", level = 46, weightKey = { "ring", "default", }, weightVal = { 500, 0, }, },
["TemporalChainsSkillCorrupted"] = { "Grants level 14 Temporal Chains Skill", level = 40, weightKey = { "boots", "default", }, weightVal = { 1000, 0, }, },
["HasteSkillCorrupted"] = { "Grants level 14 Haste Skill", level = 40, weightKey = { "boots", "default", }, weightVal = { 1000, 0, }, },
["ManaOnHitCorrupted"] = { "+(1-2) Mana gained for each Enemy hit by your Attacks", level = 40, weightKey = { "no_attack_mods", "ring", "default", }, weightVal = { 0, 500, 0, }, },
["VitalitySkillCorrupted"] = { "Grants level 15 Vitality Skill", level = 35, weightKey = { "belt", "default", }, weightVal = { 1000, 0, }, },
["FishingQuantityCorrupted"] = { "(5-10)% increased Quantity of Fish Caught", level = 1, weightKey = { "fishing_rod", "default", }, weightVal = { 1000, 0, }, },
["FishingRarityCorrupted"] = { "(5-10)% increased Rarity of Fish Caught", level = 1, weightKey = { "fishing_rod", "default", }, weightVal = { 1000, 0, }, },
["CastSpeedCorrupted"] = { "(10-20)% increased Cast Speed", level = 1, weightKey = { "no_caster_mods", "fishing_rod", "default", }, weightVal = { 0, 1000, 0, }, },
["CanCatchCorruptFishCorrupted"] = { "You can catch Corrupted Fish", level = 1, weightKey = { "fishing_rod", "default", }, weightVal = { 1000, 0, }, },
["ChaosResistJewelCorrupted"] = { "+(1-3)% to Chaos Resistance", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedCharacterSizeJewelCorrupted"] = { "1% reduced Character Size", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedChillDurationJewelCorrupted"] = { "(3-5)% reduced Chill Duration on You", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedFreezeDurationJewelCorrupted"] = { "(3-5)% reduced Freeze Duration on You", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedIgniteDurationJewelCorrupted"] = { "(3-5)% reduced Ignite Duration on You", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ReducedShockDurationJewelCorrupted"] = { "(3-5)% reduced Shock Duration on You", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["IncreasedChargeDurationJewelCorrupted_"] = { "(3-7)% increased Endurance, Frenzy and Power Charge Duration", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["AddedChaosDamageJewelCorrupted"] = { "Adds 1 to (2-3) Chaos Damage to Attacks", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ChanceToBeCritJewelCorrupted"] = { "(3-5)% additional Chance to receive a Critical Strike", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["DamageWhileDeadJewelCorrupted"] = { "(20-30)% increased Damage while Dead", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["VaalSkillDamageJewelCorrupted"] = { "(5-10)% increased Vaal Skill Damage", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ChaosDamagePerCorruptedItemJewelCorrupted"] = { "1% increased Chaos Damage per equipped Corrupted Item", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["LifeLeechRatePerCorruptedItemJewelCorrupted"] = { "1% increased Life Leeched per second per equipped Corrupted Item", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["ManaLeechRatePerCorruptedItemJewelCorrupted"] = { "1% increased Mana Leeched per second per equipped Corrupted Item", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
["SilenceImmunityJewelCorrupted"] = { "You cannot be Cursed with Silence", level = 1, weightKey = { "jewel", "default", }, weightVal = { 1000, 0, }, },
}

View File

@@ -1881,7 +1881,7 @@ skills["ExplosiveArrow"] = {
skill("castTime", 1),
skill("CritChance", 6),
skill("duration", 1), --"base_skill_effect_duration" = 1000
--"fuse_arrow_explosion_radius_+_per_fuse_arrow_orb" = 2
skill("radiusExtra", 2, { type = "Multiplier", var = "ExplosiveArrowFuse" }), --"fuse_arrow_explosion_radius_+_per_fuse_arrow_orb" = 2
--"active_skill_attack_damage_+%_final" = 0
--"skill_can_fire_arrows" = 1
--"base_is_projectile" = 1

View File

@@ -26,7 +26,7 @@ skills["BanditExplosiveArrow"] = {
skill("castTime", 1),
skill("CritChance", 6),
skill("duration", 1), --"base_skill_effect_duration" = 1000
--"fuse_arrow_explosion_radius_+_per_fuse_arrow_orb" = 2
skill("radiusExtra", 2, { type = "Multiplier", var = "ExplosiveArrowFuse" }), --"fuse_arrow_explosion_radius_+_per_fuse_arrow_orb" = 2
--"active_skill_attack_damage_+%_final" = 0
--"skill_can_fire_arrows" = 1
--"base_is_projectile" = 1

View File

@@ -583,6 +583,8 @@ mod = mod("Damage", "MORE", {val}, 0, 0, { type = "GlobalEffect", effectType = "
mod = skill("FireMin", {val}, { type = "Multiplier", var = "ExplosiveArrowFuse" })
[maximum_fire_damage_per_fuse_arrow_orb]
mod = skill("FireMax", {val}, { type = "Multiplier", var = "ExplosiveArrowFuse" })
[fuse_arrow_explosion_radius_+_per_fuse_arrow_orb]
mod = skill("radiusExtra", {val}, { type = "Multiplier", var = "ExplosiveArrowFuse" })
# Flame Surge
[flame_whip_damage_+%_final_vs_burning_enemies]
mod = mod("Damage", "MORE", {val}, bit.bor(ModFlag.Spell, ModFlag.Hit), 0, { type = "EnemyCondition", var = "Burning" })

View File

@@ -2,7 +2,7 @@ local corr = io.open("../Data/ModCorrupted.lua", "w")
corr:write('-- Item data (c) Grinding Gear Games\n\nreturn {\n')
for _, modKey in ipairs(Mods.GenerationType(5)) do
local mod = Mods[modKey]
corr:write('\t["', mod.Id, '"] = { "', table.concat(describeMod(mod), '", "'), '", weightKey = { ')
corr:write('\t["', mod.Id, '"] = { "', table.concat(describeMod(mod), '", "'), '", level = ', mod.Level, ', weightKey = { ')
for _, tagKey in ipairs(mod.SpawnWeight_TagsKeys) do
corr:write('"', Tags[tagKey].Id, '", ')
end

View File

@@ -1165,7 +1165,7 @@ function calcs.offence(env, actor)
output.FreezeChanceOnHit = output.FreezeChanceOnHit * freezeMult
output.FreezeChanceOnCrit = output.FreezeChanceOnCrit * freezeMult
end
local function calcSecondaryEffectBase(type, sourceHitDmg, sourceCritDmg)
-- Calculate the inflict chance and base damage of a secondary effect (bleed/poison/ignite/shock/freeze)
local chanceOnHit, chanceOnCrit = output[type.."ChanceOnHit"], output[type.."ChanceOnCrit"]

View File

@@ -131,6 +131,7 @@ function itemLib.parseItemRaw(item)
item.buffLines = 0
item.affixes = data.itemMods[item.base and item.base.type]
item.enchantments = data.enchantments[item.base and item.base.type]
item.corruptable = item.base and item.base.type ~= "Flask"
item.prefixes = { }
item.suffixes = { }
item.requirements = { }
@@ -344,6 +345,17 @@ function itemLib.normaliseQuality(item)
end
end
function itemLib.getModSpawnWeight(item, mod)
if item.base then
for i, key in ipairs(mod.weightKey) do
if item.base.tags[key] then
return mod.weightVal[i]
end
end
end
return 0
end
-- Create raw item data for given item
function itemLib.createItemRaw(item)
local rawLines = { }

View File

@@ -125,6 +125,11 @@ function main:Init()
self.controls.options = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 0, 0, 70, 20, "Options", function()
self:OpenOptionsPopup()
end)
self.controls.patreon = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 112, 0, 74, 20, "", function()
OpenURL("https://www.patreon.com/openarl")
end)
self.controls.patreon:SetImage("Assets/patreon_logo.png")
self.controls.patreon.tooltip = "Help support the development of Path of Building by pledging a monthly donation!"
self.controls.about = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorMain,"BOTTOMLEFT"}, 228, 0, 70, 20, "About", function()
self:OpenAboutPopup()
end)

View File

@@ -53,6 +53,11 @@ If you'd like to help support the development of Path of Building, I have a [Pat
![ss3](https://cloud.githubusercontent.com/assets/19189971/18089780/f0ff234a-6f04-11e6-8c88-6193fe59a5c4.png)
## Changelog
### 1.4.16 - 2017/05/27
* Items can now be corrupted via the new "Corrupt..." button that appears when viewing the item
* Explosive Arrow's additional radius per fuse is now factored into the area calculation
* Fixed an error that would sometimes appear when editing gems in the Skills tab
### 1.4.15 - 2017/05/26
This update adds support for level and attribute requirements:
* Item tooltips now show level and attribute requirements

View File

@@ -1,3 +1,7 @@
VERSION[1.4.16][2017/05/27]
* Items can now be corrupted via the new "Corrupt..." button that appears when viewing the item
* Explosive Arrow's additional radius per fuse is now factored into the area calculation
* Fixed an error that would sometimes appear when editing gems in the Skills tab
VERSION[1.4.15][2017/05/26]
This update adds support for level and attribute requirements:
* Item tooltips now show level and attribute requirements

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<PoBVersion>
<Version number="1.4.15"/>
<Version number="1.4.16"/>
<Source part="program" url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/"/>
<Source part="tree" url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/tree.zip"/>
<Source url="https://raw.githubusercontent.com/Openarl/PathOfBuilding/{branch}/runtime-win32.zip" part="runtime" platform="win32"/>
<File sha1="2fb719ed2a9648b2dd13a137f650b3c0e48705fa" name="Launch.lua" part="program"/>
<File sha1="72b9bea1871e94a643e4471fd84bbedbc7810336" name="UpdateCheck.lua" part="program"/>
<File sha1="4f17937f2b37784e169a3792b235f2a0a3961e61" name="UpdateApply.lua" part="program"/>
<File sha1="baff4205c303099738bbe690f8d5eb88dd926627" name="changelog.txt" part="program"/>
<File sha1="b13e9dfd3b5d071aea0396984ee3e53da99768f5" name="changelog.txt" part="program"/>
<File sha1="3ff73a3c46cb7bd8a53c9d47a893dd2b4c5c60ab" name="Classes/BuildListControl.lua" part="program"/>
<File sha1="dc2ffb55b4aae04b86886b25bbf219a301b21340" name="Classes/ButtonControl.lua" part="program"/>
<File sha1="9391d403c4ad8e59fd02fba76158acb4159e0562" name="Classes/CalcBreakdownControl.lua" part="program"/>
@@ -24,12 +24,12 @@
<File sha1="768c24f30a79f93b19d13f61668c5e30417989e9" name="Classes/ItemDBControl.lua" part="program"/>
<File sha1="6f289bf6318303831c3acafc35d37fe2b90e6609" name="Classes/ItemListControl.lua" part="program"/>
<File sha1="b7c3df4a3b9cdd19efac5d92273aa72d409fa833" name="Classes/ItemSlotControl.lua" part="program"/>
<File sha1="3e016a966fe4e0a2967b9e4792489033822fbdbc" name="Classes/ItemsTab.lua" part="program"/>
<File sha1="2fac2cf84168b57b90cbbf31780fb5cd35fc8e09" name="Classes/ItemsTab.lua" part="program"/>
<File sha1="62138c7db82d57d638a16610a26acd0de75d3486" name="Classes/LabelControl.lua" part="program"/>
<File sha1="015e7f6092cd978399956bd05d545fe45bca81d6" name="Classes/ListControl.lua" part="program"/>
<File sha1="75c943489d007c34793f6568c28cee2bc1843e75" name="Classes/MinionListControl.lua" part="program"/>
<File sha1="2e550ff8734f2dec70089fd33ae6f2f17a9d4a0d" name="Classes/ModDB.lua" part="program"/>
<File sha1="3edeff2ce51e378b930e2ceb4a585a41c25de9ca" name="Classes/ModList.lua" part="program"/>
<File sha1="26a3f874da803211cfd115feb724c618760af170" name="Classes/ModDB.lua" part="program"/>
<File sha1="ff94d2db3c05651b70d9a232b1fc0d136e462d71" name="Classes/ModList.lua" part="program"/>
<File sha1="9bc0d8791e7825e52070e96e7894d29fad70cf98" name="Classes/NotesTab.lua" part="program"/>
<File sha1="cf400bb69d6668bdb44f595572b84194ac728b72" name="Classes/PassiveSpec.lua" part="program"/>
<File sha1="2802110b05a2ebdf39e62c1e9cfcf72d9538f359" name="Classes/PassiveSpecListControl.lua" part="program"/>
@@ -40,7 +40,7 @@
<File sha1="261dcf54a4542e6160fd7024d8edf4fc095d9c71" name="Classes/SectionControl.lua" part="program"/>
<File sha1="8a913c7556ffc0467f6318361525bfd3ddaf01a7" name="Classes/SharedItemListControl.lua" part="program"/>
<File sha1="20f92cc3415aaf5797f3cd84290ca609861eef99" name="Classes/SkillListControl.lua" part="program"/>
<File sha1="57f6e0a859daf09b7874038efeaeaa06b9725a84" name="Classes/SkillsTab.lua" part="program"/>
<File sha1="f5c85a0c320dc1c05331c0a12b45bc85e252e39c" name="Classes/SkillsTab.lua" part="program"/>
<File sha1="6317bd9ba391832dccafcb62409a5ce2988d1928" name="Classes/SliderControl.lua" part="program"/>
<File sha1="ada27b91a3c466689111429105edd4ee28ad0c3f" name="Classes/TextListControl.lua" part="program"/>
<File sha1="c5344a84f4a6ffbfe56b66fb95a3e24b53fcca43" name="Classes/TreeTab.lua" part="program"/>
@@ -50,7 +50,7 @@
<File sha1="e305565e1bcff5d59f2f80101e253e0eec934a88" name="Modules/CalcActiveSkill.lua" part="program"/>
<File sha1="b2b8d55258d9763d7c7a4a9ca1f99be3973528a8" name="Modules/CalcBreakdown.lua" part="program"/>
<File sha1="8647664477fef0e771500b96342496c83ab3fe4f" name="Modules/CalcDefence.lua" part="program"/>
<File sha1="38252c61d450ec23c9fe1f2230dff3cc313466d8" name="Modules/CalcOffence.lua" part="program"/>
<File sha1="6a84c692e7b30164cd2960e39d49e01e3bfba453" name="Modules/CalcOffence.lua" part="program"/>
<File sha1="0368fc4c281661516c2d92b7a84f93eec5888414" name="Modules/CalcPerform.lua" part="program"/>
<File sha1="23c918fa7005af4413a9875571fe56946c76a931" name="Modules/Calcs.lua" part="program"/>
<File sha1="ddf0ec249af557c07037b32039017d469f55324e" name="Modules/CalcSections.lua" part="program"/>
@@ -58,8 +58,8 @@
<File sha1="435fe15e71f9e13c9a31a8ff1067b918cbdf9055" name="Modules/CalcTools.lua" part="program"/>
<File sha1="1a3f16372f27e7b94d373e6c61affb4ebe478b13" name="Modules/Common.lua" part="program"/>
<File sha1="68e77a84c09dedb98a92cef780201b9616cba377" name="Modules/Data.lua" part="program"/>
<File sha1="dea82a41d1c0439a5232cf8bfe75a1ef752b707d" name="Modules/ItemTools.lua" part="program"/>
<File sha1="8e4387c98e7fc1343c6b6e30549ac8a33f7e7ae3" name="Modules/Main.lua" part="program"/>
<File sha1="39034baecbcc74e0f6e7defcc1e587a109e51326" name="Modules/ItemTools.lua" part="program"/>
<File sha1="f539bef1718bf97558de4bc2619bc0d7186b6476" name="Modules/Main.lua" part="program"/>
<File sha1="ec585d4bb81c28fd2d10382bd9ec428a7a7a486a" name="Modules/ModParser.lua" part="program"/>
<File sha1="08bfd94f291b10dbdc75c94d7f2928c8bbd1a1d7" name="Modules/ModTools.lua" part="program"/>
<File sha1="c345cdcf374d271411aa424ab150c0edbb5a362d" name="Assets/game_ui_small.png" part="program"/>
@@ -71,18 +71,18 @@
<File sha1="b305198cafc6800aa5556da07a5eea699c718d3b" name="Data/EnchantmentHelmet.lua" part="program"/>
<File sha1="7bc9e8c0e5df8e16fc3defa60c73c38ea24df4b6" name="Data/Minions.lua" part="program"/>
<File sha1="a725cc402e3b8bbac143ca49695eeabbc1e2ae19" name="Data/Misc.lua" part="program"/>
<File sha1="3102768074c637528487c743cb808dad07f5b069" name="Data/ModCorrupted.lua" part="program"/>
<File sha1="55dec872a50b435f586ea082c7c6964acd8d6bfc" name="Data/ModCorrupted.lua" part="program"/>
<File sha1="d06292de8b169e3adedc7fda69edae6ac466442e" name="Data/ModFlask.lua" part="program"/>
<File sha1="15664631a501d837c5c6796217c663457f115bb1" name="Data/ModJewel.lua" part="program"/>
<File sha1="90887a3f98af6c461fe9af7b352400eb25691aac" name="Data/New.lua" part="program"/>
<File sha1="36c0fac086a945e035f1e9415f7389022b45a211" name="Data/Rares.lua" part="program"/>
<File sha1="6fc6fd86d7ee6e444db1d80b2b31991e68fc780a" name="Data/Spectres.lua" part="program"/>
<File sha1="ad64fe0ea07cf31c7922e407e1607c298aab0b55" name="Data/Skills/act_dex.lua" part="program"/>
<File sha1="d2b8f037d757f2be41e37fa7b32c98a09081e177" name="Data/Skills/act_dex.lua" part="program"/>
<File sha1="cded55d5b5743c728a945a9e688b898bad984649" name="Data/Skills/act_int.lua" part="program"/>
<File sha1="dd318d8e4f55b5e7de02fee83a4a5936e35d9a3e" name="Data/Skills/act_str.lua" part="program"/>
<File sha1="da6560e41a8aa3bea8388b7c8bfc815050545294" name="Data/Skills/minion.lua" part="program"/>
<File sha1="76e85fd0461be6583e03f8c9e7ee8f4676740ef3" name="Data/Skills/other.lua" part="program"/>
<File sha1="cf49cb911d6ce5a24d692f4fab3d2e0b6c500cd5" name="Data/Skills/spectre.lua" part="program"/>
<File sha1="e9fafe5b6bf2bca7aab2ae3569423008b670ea11" name="Data/Skills/spectre.lua" part="program"/>
<File sha1="20739d839fbbc647acf52cfa974a7d322816cfb1" name="Data/Skills/sup_dex.lua" part="program"/>
<File sha1="55368373e42507db72c603c5039dbbcc68febd57" name="Data/Skills/sup_int.lua" part="program"/>
<File sha1="9ae51b52302d1f2410f85b331f08628911199f68" name="Data/Skills/sup_str.lua" part="program"/>