Jump to content

Elin:Code Analysis/Unclassified: Difference between revisions

Line 290: Line 290:


<syntaxhighlight lang="c#" line="1">
<syntaxhighlight lang="c#" line="1">
if (!c.IsPCParty)
{
num3 *= 2;
}
num3 = num3 * (100 + c.Evalue(1235) * 10) / (100 + c.Evalue(1234) * 10 + c.Evalue(1236) * 15);
num3 = num3 * (100 + c.Evalue(1235) * 10) / (100 + c.Evalue(1234) * 10 + c.Evalue(1236) * 15);
c.hunger.Mod(-num3);
c.hunger.Mod(-num3);
Line 295: Line 299:


* After calculation of nutrition, the fillingness of the food is increased by 10% for light eater, decreased by 10% for heavy eater, and 15% for Norlanders.
* After calculation of nutrition, the fillingness of the food is increased by 10% for light eater, decreased by 10% for heavy eater, and 15% for Norlanders.
* If the character is not in PC party, the fillingness increases by 100%.


=== Is this food tasty? ===
=== Is this food tasty? ===
399

edits