Jump to content

Elin:Code Analysis/Feats: Difference between revisions

no edit summary
No edit summary
Line 229: Line 229:
** In other words, in order to trigger this effect, you have to first hit the enemy.
** In other words, in order to trigger this effect, you have to first hit the enemy.


=== featPaladin (Devout) ===
<syntaxhighlight lang="c#" line="1">
public void RefreshFaithElement()
{
        ...
SourceElement.Row row2 = EClass.sources.elements.alias.TryGetValue("featGod_" + row.id + "1");
if (row2 != null)
{
faithElements.SetBase(row2.id, 1);
}
if (!HasCondition<ConExcommunication>())
{
int[] array = row.elements;
int num = GetPietyValue() * (120 + Evalue(1407) * 15) / 100;
for (int i = 0; i < array.Length; i += 2)
{
int num2 = array[i + 1] * num / 50;
if (array[i] == 79)
{
num2 = EClass.curve(num2, array[i + 1] * 2, 10, 50);
}
if (num2 >= 20 && array[i] >= 950 && array[i] < 970)
{
num2 = 20;
}
faithElements.SetBase(array[i], Mathf.Max(num2, 1));
}
}
faithElements.SetParent(this);
}
</syntaxhighlight>
* The benefit of feat Devout is about 12.5% per level of that feat (15 of 120).


[[Category:EN]]
[[Category:EN]]
[[Category:Elin Spoiler]]
[[Category:Elin Spoiler]]
362

edits