<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Ffull</id>
	<title>Manual:DIL Manual/full - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Ffull"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/full&amp;action=history"/>
	<updated>2026-11-22T23:20:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/full&amp;diff=2925&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/full&amp;diff=2925&amp;oldid=prev"/>
		<updated>2026-11-14T23:13:05Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= full =&lt;br /&gt;
'''Field''' (integer, read/write; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.full : integer&lt;br /&gt;
&lt;br /&gt;
How well fed the player is. Higher is better: 24 is full, below 0 the player is hungry. The &amp;lt;code&amp;gt;stomach@update&amp;lt;/code&amp;gt; program lowers it every mud hour, and update.zon's &amp;lt;code&amp;gt;gain_cond&amp;lt;/code&amp;gt; keeps it between -96 and 24 and tells the player: &amp;quot;hungry&amp;quot; from 3 down, then &amp;quot;very hungry&amp;quot;, &amp;quot;starving&amp;quot; and &amp;quot;starving to death&amp;quot;. Eating raises it.&lt;br /&gt;
&lt;br /&gt;
A value of 48 or more is never changed by &amp;lt;code&amp;gt;gain_cond&amp;lt;/code&amp;gt;: the player doesn't get hungry.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Players only. On an NPC, an object, a room or null the field fails.&lt;br /&gt;
* Stored as an 8-bit signed number: values outside -128 to 127 wrap around. Keep to -96 to 24, or 48 for &amp;quot;never hungry&amp;quot;.&lt;br /&gt;
* A program that assigns it should clamp it to 24 itself, as basis.zon does.&lt;br /&gt;
* While full or thirst is below 0, a player regains hit points, mana and endurance more slowly, and when they are low enough, loses them (vmelimits.cpp).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin feed(u : unitptr, amount : integer);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (u.type != UNIT_ST_PC)&lt;br /&gt;
      return;&lt;br /&gt;
   if (u.full &amp;gt;= 48)&lt;br /&gt;
      return;&lt;br /&gt;
   u.full := u.full + amount;&lt;br /&gt;
   if (u.full &amp;gt; 24)&lt;br /&gt;
      u.full := 24;&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Feeds a player without going over full, as the food in basis.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/thirst|thirst]]&lt;br /&gt;
* [[Manual:DIL Manual/drunk|drunk]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>