Skip to content

Added support for Decree of Loyalty mods - #2497

Open
ntcarlson wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
ntcarlson:decree_of_loyalty
Open

Added support for Decree of Loyalty mods#2497
ntcarlson wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
ntcarlson:decree_of_loyalty

Conversation

@ntcarlson

Copy link
Copy Markdown

Add support for the following Decree of Loyalty unique modifiers:

  • Convert 1% of maximum Life to twice as much Armour per 1% Chaos Resistance above 0%
  • Defend with (150-200)% of Armour while you have Energy Shield

I left the final "Damage over time cannot bypass Energy Shield" modifier unimplemented because I am not sure how to handle it.

Steps taken to verify a working solution:

  • Verified that life and armour values match in-game values on several test characters, including one with more than 100% life converted to other stats.

Before screenshot:

20260831_19h20m53s_grim

After screenshot:

20260831_19h34m48s_grim 20260831_19h34m19s_grim 20260831_19h34m09s_grim

These are "Convert 1% of maximum Life to twice as much Armour per 1%
Chaos Resistance above 0%" and "Defend with (150-200)% of Armour while
you have Energy Shield".
Comment thread src/Modules/ModParser.lua Outdated
["you can socket an additional copy of each lineage support gem, in different skills"] = { mod("MaxLineageCount", "BASE", 1) },
["you can socket (%d+) additional copies of each lineage support gem, in different skills"] = function(num) return { mod("MaxLineageCount", "BASE", num) } end,
["convert 1%% of maximum life to twice as much armour per 1%% chaos resistance above 0%%"] = {
mod("LifeConvertToArmour", "BASE", 1, { type = "PerStat", stat = "ChaosResist"}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use a function to grab the convert and the per chaos res value, not use hard coded 1% for each

@ntcarlson ntcarlson Sep 1, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I corrected that issue. I wasn't sure whether the numbers should be integers or decimals, but I made it accept decimal values as well

@LocalIdentity LocalIdentity added the enhancement New feature, calculation, or mod label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, calculation, or mod

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants