From 20b93f37d8eae1795e156bacab49fc5606b3314a Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Sat, 17 Oct 2020 05:58:04 +1100 Subject: [PATCH] Change mod to use old wording --- Modules/ConfigOptions.lua | 9 +++------ Modules/ModParser-3_0.lua | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Modules/ConfigOptions.lua b/Modules/ConfigOptions.lua index fd30bed3..538c43a6 100644 --- a/Modules/ConfigOptions.lua +++ b/Modules/ConfigOptions.lua @@ -624,11 +624,8 @@ return { { var = "conditionOnConsecratedGround", type = "check", label = "Are you on Consecrated Ground?", tooltip = "In addition to allowing any 'while on Consecrated Ground' modifiers to apply,\nConsecrated Ground grants 6% Life Regeneration to players and allies.", apply = function(val, modList, enemyModList) modList:NewMod("Condition:OnConsecratedGround", "FLAG", true, "Config", { type = "Condition", var = "Combat" }) end }, - { var = "conditionOnFungalGround", type = "check", label = "Are you on Fungal Ground?", ifCond = "CreateFungalGround", tooltip = "Allies on your Fungal Ground gain 10% of Non-Chaos Damage as extra Chaos Damage.", apply = function(val, modList, enemyModList) - modList:NewMod("Condition:OnFungalGround", "FLAG", true, "Config", { type = "Condition", var = "Combat" }, { type = "Condition", var = "CreateFungalGround" }) - modList:NewMod("MinionModifier", "LIST", { mod = modLib.createMod("Condition:OnFungalGround", "FLAG", true, "Config") }, { type = "Condition", var = "Combat" }, { type = "Condition", var = "CreateFungalGround" }) - modList:NewMod("NonChaosDamageGainAsChaos", "BASE", 10, "Fungal Ground", { type = "Condition", var = "OnFungalGround" }) - modList:NewMod("MinionModifier", "LIST", { mod = modLib.createMod("NonChaosDamageGainAsChaos", "BASE", 10, "Fungal Ground", { type = "Condition", var = "OnFungalGround" }) }) + { var = "conditionOnFungalGround", type = "check", label = "Are you on Fungal Ground?", ifCond = "OnFungalGround", tooltip = "Allies on your Fungal Ground gain 10% of Non-Chaos Damage as extra Chaos Damage.", apply = function(val, modList, enemyModList) + modList:NewMod("Condition:OnFungalGround", "FLAG", true, "Config", { type = "Condition", var = "Combat" }) end }, { var = "conditionOnBurningGround", type = "check", label = "Are you on Burning Ground?", ifCond = "OnBurningGround", implyCond = "Burning", tooltip = "This also implies that you are Burning.", apply = function(val, modList, enemyModList) modList:NewMod("Condition:OnBurningGround", "FLAG", true, "Config", { type = "Condition", var = "Combat" }) @@ -1143,7 +1140,7 @@ return { modList:NewMod("CritChance", "BASE", 1, "Config", { type = "ActorCondition", actor = "enemy", var = "OnProfaneGround" }) modList:NewMod("MinionModifier", "LIST", { mod = modLib.createMod("CritChance", "BASE", 1, "Config", { type = "ActorCondition", actor = "enemy", var = "OnProfaneGround" }) }) end }, - { var = "conditionEnemyOnFungalGround", type = "check", label = "Is the enemy on Fungal Ground?", ifCond = "CreateFungalGround", tooltip = "Enemies on your Fungal Ground deal 10% less Damage.", apply = function(val, modList, enemyModList) + { var = "conditionEnemyOnFungalGround", type = "check", label = "Is the enemy on Fungal Ground?", ifCond = "OnFungalGround", tooltip = "Enemies on your Fungal Ground deal 10% less Damage.", apply = function(val, modList, enemyModList) enemyModList:NewMod("Condition:OnFungalGround", "FLAG", true, "Config", { type = "Condition", var = "Effective" }) end }, { var = "conditionEnemyInChillingArea", type = "check", label = "Is the enemy in a Chilling area?", ifEnemyCond = "InChillingArea", apply = function(val, modList, enemyModList) diff --git a/Modules/ModParser-3_0.lua b/Modules/ModParser-3_0.lua index b8193a07..d2b96337 100644 --- a/Modules/ModParser-3_0.lua +++ b/Modules/ModParser-3_0.lua @@ -2453,8 +2453,8 @@ local specialModList = { ["nearby enemies are crushed while you have least (%d+) rage"] = function(num) return { mod("EnemyPhysicalDamageReduction", "BASE", -15, { type = "MultiplierThreshold", var = "Rage", threshold = num }) } end, ["enemies on fungal ground you kill explode, dealing 5%% of their life as chaos damage"] = {}, ["you have fungal ground around you while stationary"] = { - flag("Condition:CreateFungalGround"), - mod("Dummy", "DUMMY", 1, { type = "Condition", var = "CreateFungalGround" }), -- Make the Configuration option appear + mod("ExtraAura", "LIST", { mod = mod("NonChaosDamageGainAsChaos", "BASE", 10) }, { type = "Condition", varList = { "OnFungalGround", "Stationary" } }), + mod("EnemyModifier", "LIST", { mod = mod("Damage", "MORE", -10) }, { type = "ActorCondition", actor = "enemy", varList = { "OnFungalGround", "Stationary" } }), }, ["create profane ground instead of consecrated ground"] = { flag("Condition:CreateProfaneGround"),