Skip to content

Commit a0042dd

Browse files
dhope1106Tonkat
authored andcommitted
Add support for 0.3 Giant's Blood change (PathOfBuildingCommunity#1208)
* changes to fix issue where CI wasn't correctly overriding life before conversions (like conversion to ES from GhostWrithe) occur * added support for new "Halves the amount of Life granted by Strength" mod on Giant's Blood keystone * removing prior CI commit accidentally included in this branch
1 parent 2d7d11d commit a0042dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Modules/CalcPerform.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ local function doActorAttribsConditions(env, actor)
363363
end
364364
if not modDB:Flag(nil, "NoStrengthAttributeBonuses") then
365365
if not modDB:Flag(nil, "NoStrBonusToLife") then
366+
if modDB:Flag(nil, "HalvesLifeFromStrength") then
367+
inherentAttributeMultiplier = inherentAttributeMultiplier * 0.5
368+
end
366369
modDB:NewMod("Life", "BASE", output.Str * 2 * inherentAttributeMultiplier, "Strength")
367370
end
368371
end

src/Modules/ModParser.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,6 +2131,7 @@ local specialModList = {
21312131
mod("SpellSuppressionChance", "OVERRIDE", 0, "Acrobatics"),
21322132
},
21332133
["maximum chance to dodge spell hits is (%d+)%%"] = function(num) return { mod("SpellDodgeChanceMax", "OVERRIDE", num, "Acrobatics") } end,
2134+
["halves the amount of life granted by strength"] = { flag("HalvesLifeFromStrength")},
21342135
["dexterity provides no bonus to evasion rating"] = { flag("NoDexBonusToEvasion") },
21352136
["dexterity provides no inherent bonus to evasion rating"] = { flag("NoDexBonusToEvasion") },
21362137
["your hits can't be evaded"] = { flag("CannotBeEvaded") },

0 commit comments

Comments
 (0)