Skip to content

Commit 45a72f0

Browse files
author
Christian Trzcinski
committed
Stoicism support
1 parent 4144b95 commit 45a72f0

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/Data/SkillStatMap.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,14 @@ return {
759759
["active_skill_damage_+%_final"] = {
760760
mod("Damage", "MORE", nil),
761761
},
762+
["support_no_fear_damage_+%_final_per_second_up_to_30%"] = {
763+
mod("Damage", "MORE", nil, 0, 0,
764+
{ type = "Condition", var = "UsingStoicism" },
765+
{ type = "Condition", var = "DodgeRolledRecently", neg = true },
766+
{ type = "Condition", var = "UsedTravelSkillRecently", neg = true },
767+
{ type = "Multiplier", var = "StoicismSeconds", limit = 20, limitTotal = true }
768+
),
769+
},
762770
["active_skill_damage_+%_final_against_heavy_stunned_enemies"] = {
763771
mod("Damage", "MORE", nil, 0, 0, { type = "ActorCondition", actor = "enemy", var = "HeavyStunned" }),
764772
},

src/Modules/ConfigOptions.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,15 @@ local configSettings = {
432432
{ var = "momentumDamage", type = "check", label = "Moved 2m during Skill use?", ifSkill = "Momentum", ifFlag = "CanPerformSkillWhileMoving", apply = function(val, modList, enemyModList)
433433
modList:NewMod("Condition:Moved2m", "FLAG", true, "Config")
434434
end },
435+
{ label = "Stoicism:", ifSkill = { "Stoicism I", "Stoicism II" } },
436+
{ var = "stoicismSeconds", type = "count", label = "Seconds building Stoicism I:", ifSkill = "Stoicism I", tooltip = "Seconds since last reset. Stoicism I: 1% more Damage per second (full at 20s).", apply = function(val, modList, enemyModList)
437+
modList:NewMod("Condition:UsingStoicism", "FLAG", true, "Config")
438+
modList:NewMod("Multiplier:StoicismSeconds", "BASE", m_min(m_max(val, 0), 20), "Config")
439+
end },
440+
{ var = "stoicismSecondsII", type = "count", label = "Seconds building Stoicism II:", ifSkill = "Stoicism II", tooltip = "Seconds since last reset. Stoicism II: 2% more Damage per second (full at 10s).", apply = function(val, modList, enemyModList)
441+
modList:NewMod("Condition:UsingStoicism", "FLAG", true, "Config")
442+
modList:NewMod("Multiplier:StoicismSeconds", "BASE", m_min(m_max(val, 0), 10), "Config")
443+
end },
435444
{ label = "Parry:", ifSkill = "Parry" },
436445
{ var = "parryActive", type = "check", label = "Enemy has Parry Debuff", ifSkill = "Parry", tooltip = "The Parry debuff grants:\n\tEnemies take 50% more Attack Damage", apply = function(val, modList, enemyModList)
437446
enemyModList:NewMod("Condition:ParryActive", "FLAG", true, "Config")

0 commit comments

Comments
 (0)