Release 1.4.143

- Updated mod cache
- Fixed error when comparing different version trees
- Fixed Snakepit chain modifier
This commit is contained in:
Openarl
2019-06-09 17:48:09 +12:00
parent 7d666fc6a2
commit 0cbf4556ee
8 changed files with 23 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ local function mergeKeystones(env)
for _, name in ipairs(modDB:List(nil, "Keystone")) do
if not env.keystonesAdded[name] then
env.keystonesAdded[name] = true
modDB:AddList(env.build.spec.tree.keystoneMap[name].modList)
modDB:AddList(env.spec.tree.keystoneMap[name].modList)
end
end
end
@@ -580,7 +580,7 @@ function calcs.perform(env)
end
end
for _, name in ipairs(env.minion.modDB:List(nil, "Keystone")) do
env.minion.modDB:AddList(env.build.spec.tree.keystoneMap[name].modList)
env.minion.modDB:AddList(env.spec.tree.keystoneMap[name].modList)
end
doActorAttribsPoolsConditions(env, env.minion)
end

View File

@@ -186,7 +186,7 @@ function calcs.initEnv(build, mode, override)
-- Initialise modifier database with base values
local modDB = new("ModDB")
env.modDB = modDB
local classStats = build.spec.tree.characterData[env.classId]
local classStats = env.spec.tree.characterData[env.classId]
for _, stat in pairs({"Str","Dex","Int"}) do
modDB:NewMod(stat, "BASE", classStats["base_"..stat:lower()], "Base")
end
@@ -379,7 +379,7 @@ function calcs.initEnv(build, mode, override)
end
end } }
for _, func in ipairs(funcList) do
local node = build.spec.nodes[slot.nodeId]
local node = env.spec.nodes[slot.nodeId]
t_insert(env.radiusJewelList, {
nodes = node.nodesInRadius[item.jewelRadiusIndex],
func = func.func,

View File

@@ -1385,7 +1385,7 @@ local specialModList = {
["arrows that pierce deal (%d+)%% increased damage"] = function(num) return { mod("Damage", "INC", num, nil, bor(ModFlag.Attack, ModFlag.Projectile), { type = "StatThreshold", stat = "PierceCount", threshold = 1 }) } end,
["projectiles gain (%d+)%% of non%-chaos damage as extra chaos damage per chain"] = function(num) return { mod("NonChaosDamageGainAsChaos", "BASE", num, nil, ModFlag.Projectile, { type = "PerStat", stat = "Chain" }) } end,
["left ring slot: projectiles from spells cannot chain"] = { flag("CannotChain", nil, bor(ModFlag.Spell, ModFlag.Projectile), { type = "SlotNumber", num = 1 }) },
["right ring slot: projectiles from spells chain %+1 times"] = { mod("ChainCount", "BASE", 1, nil, bor(ModFlag.Spell, ModFlag.Projectile), { type = "SlotNumber", num = 2 }) },
["right ring slot: projectiles from spells chain %+1 times"] = { mod("ChainCountMax", "BASE", 1, nil, bor(ModFlag.Spell, ModFlag.Projectile), { type = "SlotNumber", num = 2 }) },
["projectiles from spells cannot pierce"] = { flag("CannotPierce", nil, ModFlag.Spell) },
-- Leech/Gain on Hit
["cannot leech life"] = { flag("CannotLeechLife") },