Skip to content

Commit 4c597a5

Browse files
author
Christian Trzcinski
committed
Stoicism support
1 parent 4144b95 commit 4c597a5

2 files changed

Lines changed: 14 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", limitVar = "StoicismCap", 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@ 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:", ifSkill = { "Stoicism I", "Stoicism II" }, tooltip = "Seconds since last reset. Stoicism I: 1%/s (full 20s). Stoicism II: 2%/s (full 10s).", 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+
modList:NewMod("Multiplier:StoicismCap", "BASE", 20, "Config")
440+
end },
435441
{ label = "Parry:", ifSkill = "Parry" },
436442
{ 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)
437443
enemyModList:NewMod("Condition:ParryActive", "FLAG", true, "Config")

0 commit comments

Comments
 (0)