- Aug 8, 2020
- 2,719
- 7,843
Looks like no. In python code 'CritChanceBoostSelf' meets in two different instantsWhen I say "sofia's perk" actually I mean this is a perk given to player after beating sofia; it's one of the perks you can choose, not one she has for herself.
So, in both cases, the stat in on player, but they have opposite descriptions, but both have positive values. One of them should be negative. So, as you said, if an enemy has a 50% crit chance:
player with none of those perks: 50% chance of taking crit
player with enduring body: 50% + 10% = 60% chance of taking crit
player with touch of ecstasy: 50% + 5% = 55% chance of taking crit
Maybe it isnt flat addition, % values could be multiplied (50% * 10% = 55%), but the point is, one of the skills is wrong, right?
Python:
for perk in theTarget.perks:
p = 0
while p < len(perk.PerkType):
if perk.PerkType[p] == "CritChanceBoostSelf":<-here
critMod += perk.EffectPower[p]
p += 1
p = 0
def getCritReduction(target):<- returns crit damage reduction on target
critRedMod = 0
for perk in target.perks:
p = 0
while p < len(perk.PerkType):
if perk.PerkType[p] == "CritChanceBoostSelf":<- and here
critRedMod += perk.EffectPower[p]
p += 1
#critRedMod += target.stats.Luck*0.2 - 1
return critRedMod