|
|
|
@ -39,14 +39,18 @@ Function AdjustValues(Bool bForceEnchantmentStrength) |
|
|
|
|
|
|
|
|
|
Float fMaxHealth = GetTargetMaxValue("Health") |
|
|
|
|
Float fMaxMagicka = GetTargetMaxValue("Magicka") |
|
|
|
|
If fMaxHealth < 0.0 || fMaxMagicka < 0.0 |
|
|
|
|
Return ; Bad current health or magicka to deal with, wait for better ones |
|
|
|
|
EndIf |
|
|
|
|
|
|
|
|
|
Target.SetAV("FavorPointsBonus", fNewModifier * 100.0) |
|
|
|
|
Target.ModAV("AttackDamageMult", fNewModifier - fOldModifier) |
|
|
|
|
AdjustTargetMainValue("Health", "FavorsPerDay", fMaxHealth, fNewModifier) |
|
|
|
|
AdjustTargetMainValue("Magicka", "FavorsPerDayTimer", fMaxMagicka, fNewModifier) |
|
|
|
|
|
|
|
|
|
if fMaxHealth > 0 |
|
|
|
|
AdjustTargetMainValue("Health", "FavorsPerDay", fMaxHealth, fNewModifier) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
if fMaxMagicka > 0 |
|
|
|
|
AdjustTargetMainValue("Magicka", "FavorsPerDayTimer", fMaxMagicka, fNewModifier) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
Float Function GetTargetMaxValue(String sValueName) |
|
|
|
|