443
edits
m (Inno moved page Code Analysis/Food Effect to Elin:Code Analysis/Food Effect: Wrong namespace...can someone delete this redirect page?) |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Spoiler}} | {{Spoiler}} | ||
{{Version|23.67}} | |||
'''Food Effect''' is one of the most important part of Elin and Elona. As the saying goes "you are what you eat." We shall put the entire code here, and track any changes affecting the biggest part of the game: cooking and eating. | '''Food Effect''' is one of the most important part of Elin and Elona. As the saying goes "you are what you eat." We shall put the entire code here, and track any changes affecting the biggest part of the game: cooking and eating. | ||
| Line 319: | Line 320: | ||
* If food is raw, -50%. | * If food is raw, -50%. | ||
* If human flesh, with canniblism, +100%, without canniblism, -50%. | * If human flesh, with canniblism, +100%, without canniblism, -50%. | ||
* If food is | * If food is rotten, and user don't have protection, -100%. | ||
* 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]] | ||
edits