Skip to content

Commit

Permalink
Add support for Sacrifice anomalous quality mod (#6807)
Browse files Browse the repository at this point in the history
* Add support for Sacrifice anomalous quality mod

The `base_skill_cost_life_instead_of_mana_%` stat from sacrifice anomalous quality wasn't mapped and thus not taken into account for cost calculations.

* Remove dead variable

---------

Co-authored-by: LocalIdentity <[email protected]>
  • Loading branch information
lepideble and LocalIdentity authored Dec 1, 2023
1 parent c7292c1 commit 9d80834
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Data/ModCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9926,7 +9926,7 @@ c["Skills Chain +1 times"]={{[1]={flags=0,keywordFlags=0,name="ChainCountMax",ty
c["Skills Chain +2 times"]={{[1]={flags=0,keywordFlags=0,name="ChainCountMax",type="BASE",value=2}},nil}
c["Skills Chain an additional time while at maximum Frenzy Charges"]={{[1]={[1]={stat="FrenzyCharges",thresholdStat="FrenzyChargesMax",type="StatThreshold"},flags=0,keywordFlags=0,name="ChainCountMax",type="BASE",value=1}},nil}
c["Skills Cost +3 Rage"]={{[1]={flags=0,keywordFlags=0,name="RageCostBase",type="BASE",value=3}},nil}
c["Skills Cost Life instead of 30% of Mana Cost"]={{[1]={flags=0,keywordFlags=0,name="HybridManaAndLifeCost_Life",type="BASE",value=30},[2]={flags=0,keywordFlags=0,name="HybridManaAndLifeCost_Mana",type="BASE",value=70}},nil}
c["Skills Cost Life instead of 30% of Mana Cost"]={{[1]={flags=0,keywordFlags=0,name="HybridManaAndLifeCost_Life",type="BASE",value=30}},nil}
c["Skills Cost Life instead of Mana"]={{[1]={flags=0,keywordFlags=0,name="CostLifeInsteadOfMana",type="FLAG",value=true}},nil}
c["Skills Cost no Mana during Effect"]={{[1]={[1]={type="Condition",var="UsingFlask"},flags=0,keywordFlags=0,name="ManaCost",type="MORE",value=-100}},nil}
c["Skills Fire 3 additional Projectiles for 4 seconds after"]={{[1]={flags=0,keywordFlags=0,name="ProjectileCount",type="BASE",value=3}}," after "}
Expand Down
3 changes: 3 additions & 0 deletions src/Data/SkillStatMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ return {
["base_skill_cost_life_instead_of_mana"] = {
flag("CostLifeInsteadOfMana"),
},
["base_skill_cost_life_instead_of_mana_%"] = {
mod("HybridManaAndLifeCost_Life", "BASE", nil),
},
["base_active_skill_totem_level"] = {
skill("totemLevel", nil),
},
Expand Down
1 change: 0 additions & 1 deletion src/Modules/ModParser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4539,7 +4539,6 @@ local specialModList = {
} end,
["skills cost life instead of (%d+)%% of mana cost"] = function(num) return {
mod("HybridManaAndLifeCost_Life", "BASE", num),
mod("HybridManaAndLifeCost_Mana", "BASE", 100 - num),
} end,
["(%d+)%% increased cost of arc and crackling lance"] = function(num) return {
mod("Cost", "INC", num, { type = "SkillName", skillNameList = { "Arc", "Crackling Lance" } }),
Expand Down

0 comments on commit 9d80834

Please sign in to comment.