You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[pob2-port] Add support for Loyalty/damage taken from Companion's Life before you (#9922)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding-PoE2#2159
* Fix merge issues and compact code
* Automatically calcs life pools
Automatically calcs life values for the different minion types
Also compacts the defence code into loops so it's easier to add more mods in the future
---------
Co-authored-by: ltogniolli <ltogniolli@users.noreply.github.com>
Co-authored-by: LocalIdentity <localidentity2@gmail.com>
@@ -1387,8 +1394,7 @@ function calcs.offence(env, actor, activeSkill)
1387
1394
"Totems Summoned: "..output.TotemsSummoned..(env.configInput.TotemsSummonedand" ^8(overridden from the Configuration tab)" or" ^8(can be overridden in the Configuration tab)"),
{ var="TotalSpectreLife", type="integer", label="Total Spectre Life:", ifMod="takenFromSpectresBeforeYou", ifSkill="Raise Spectre", includeTransfigured=true, tooltip="The total life of your Spectres that can be taken before yours (used by jinxed juju)", apply=function(val, modList, enemyModList)
{ var="TotalMinionLife", type="integer", label="Minion Life override:", ifMod="takenFromMinionBeforeYou", tooltip="Overrides the automatically calculated Life of the minion supported by Companionship.", apply=function(val, modList, enemyModList)
{ var="TotalTotemLife", type="integer", label="Total Totem Life:", ifOption="conditionHaveTotem", ifMod="takenFromTotemsBeforeYou", tooltip="The total life of your Totems (excluding Vaal Rejuvenation Totem) that can be taken before yours (used by totem mastery)", apply=function(val, modList, enemyModList)
{ var="TotalSpectreLife", type="integer", label="Total Spectre Life override:", ifMod="takenFromSpectresBeforeYou", ifSkill="Raise Spectre", includeTransfigured=true, tooltip="Overrides the automatically calculated total Life of your Spectres that can be taken before yours (used by Jinxed Juju).", apply=function(val, modList, enemyModList)
{ var="TotalRadianceSentinelLife", type="integer", label="Total life pool of Sentinel of Radiance", ifMod="takenFromRadianceSentinelBeforeYou", apply=function(val, modList, enemyModList)
{ var="TotalTotemLife", type="integer", label="Nearest Totem Life override:", ifOption="conditionHaveTotem", ifMod="takenFromTotemsBeforeYou", tooltip="Overrides the automatically calculated Life of your nearest Totem (excluding Vaal Rejuvenation Totem) that can be taken before yours (used by Totem Mastery).", apply=function(val, modList, enemyModList)
{ var="TotalVoidSpawnLife", type="integer", label="Total life pool of Void Spawn", ifMod="takenFromVoidSpawnBeforeYou", apply=function(val, modList, enemyModList)
{ var="TotalRadianceSentinelLife", type="integer", label="Sentinel of Radiance Life override:", ifMod="takenFromRadianceSentinelBeforeYou", tooltip="Overrides the automatically calculated Life of your Sentinel of Radiance that can be taken before yours.", apply=function(val, modList, enemyModList)
{ var="TotalVaalRejuvenationTotemLife", type="integer", label="Total Vaal Rejuvenation Totem Life:", ifSkill= { "Vaal Rejuvenation Totem" }, ifMod="takenFromVaalRejuvenationTotemsBeforeYou", tooltip="The total life of your Vaal Rejuvenation Totems that can be taken before yours", apply=function(val, modList, enemyModList)
{ var="TotalVoidSpawnLife", type="integer", label="Total Void Spawn Life override:", ifMod="takenFromVoidSpawnBeforeYou", tooltip="Overrides the automatically calculated total Life of your Void Spawns that can be taken before yours.", apply=function(val, modList, enemyModList)
{ var="TotalStoneGolemLife", type="integer", label="Stone Golem Life override:", ifSkill="Summon Stone Golem of Safeguarding", ifMod="takenFromStoneGolemBeforeYou", tooltip="Overrides the automatically calculated Life of your Stone Golem of Safeguarding that can be taken before yours.", apply=function(val, modList, enemyModList)
{ var="TotalVaalRejuvenationTotemLife", type="integer", label="Vaal Rejuvenation Totem Life override:", ifSkill="Vaal Rejuvenation Totem", ifMod="takenFromVaalRejuvenationTotemsBeforeYou", tooltip="Overrides the automatically calculated Life of your Vaal Rejuvenation Totem that can be taken before yours.", apply=function(val, modList, enemyModList)
{ label="^xAF6025Balance of Terror ^7Curse Disable:", ifCond= { "SelfCastConductivity", "SelfCastDespair", "SelfCastElementalWeakness", "SelfCastEnfeeble", "SelfCastFlammability", "SelfCastFrostbite", "SelfCastPunishment", "SelfCastTemporalChains", "SelfCastVulnerability" } },
805
811
{ var="balanceOfTerrorSelfCastConductivity", type="check", label="Conductivity self-only", ifSkill="Conductivity", ifCond="SelfCastConductivity", tooltip="Counts Conductivity as self-cast for Balance of Terror without applying it to enemies." },
0 commit comments