Elin:Code Analysis/Food Effect: Difference between revisions

no edit summary
No edit summary
Line 322: Line 322:


* The final value will be the tastfulness of a dish, >100 great, 70-100 good, 50-70, so so, 30-50 average, <30 bad.
* The final value will be the tastfulness of a dish, >100 great, 70-100 good, 50-70, so so, 30-50 average, <30 bad.
=== Eating a God? Sure! ===
<syntaxhighlight lang="c#" line="1">
case "god":
{
int int2 = c.GetInt(117);
if (int2 < 10)
{
foreach (Element value2 in c.elements.dict.Values)
{
if (value2.IsMainAttribute)
{
c.elements.ModPotential(value2.id, 2);
}
}
}
c.Say("little_eat", c);
c.PlaySound("ding_potential");
c.elements.ModExp(306, -1000);
c.SetInt(117, int2 + 1);
break;
}
</syntaxhighlight>
* For each piece of "god meat" consumed, your base potential of all primary attributes (STR, MAG, etc.) will be increased by 2.
** This effect will only work 10 times, so total increase of 20 base potential.
* You faith skill will be decreased by 1000 experience, i.e. 1 level ('''Need Confirmation''') per piece of meat eaten.
** This effect will continue to happen even if you stand to not gain any benefit from it.


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

edits