Elin:Code Analysis/Feats: Difference between revisions

No edit summary
Line 633: Line 633:
** This debuff will also apply to any character not in your party but in your faction, so beware.
** This debuff will also apply to any character not in your party but in your faction, so beware.


=== featCanniblism (Canniblism) ===
<syntaxhighlight lang="c#" line="1">
if (EClass.rnd(c.IsHuman ? 5 : 20) == 0)
{
c.SetFeat(1205, 1, msg: true);
flag4 = true;
}
      ...
        if (flag4)
{
c.SetInt(31, EClass.world.date.GetRaw() + 10080);
}
}
else if (flag4 && c.GetInt(31) < EClass.world.date.GetRaw())
{
c.SetFeat(1205, 0, msg: true);
}
<syntaxhighlight lang="c#" line="1">
* If you don't have this feat, and you eat human flesh, there is a 20% chance that you will gain the Canniblism feat.
** If you are not human (i.e. if you don't consider eating human flesh as Canniblism), there is still 5% chance you will get this feat.
* This feat will only last for 10080 minutes in game, i.e. a week of in game time. If you have another piece, this timer will refresh.


[[Category:EN]]
[[Category:EN]]
[[Category:Elin Spoiler]]
[[Category:Elin Spoiler]]
443

edits