<?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%2Fillum</id>
	<title>Manual:DIL Manual/illum - 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%2Fillum"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/illum&amp;action=history"/>
	<updated>2026-11-23T20:59:24Z</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/illum&amp;diff=2884&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/illum&amp;diff=2884&amp;oldid=prev"/>
		<updated>2026-11-14T23:11:01Z</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;= illum =&lt;br /&gt;
'''Field''' (integer, read-only; units: all).&lt;br /&gt;
&lt;br /&gt;
 u.illum : integer&lt;br /&gt;
&lt;br /&gt;
The part of a unit's [[Manual:DIL Manual/bright|bright]] that comes from what is inside it: the light that shines out of an open transparent container (a glass lantern with a candle in it). It is 0 for units that aren't transparent (&amp;lt;code&amp;gt;UNIT_FL_TRANS&amp;lt;/code&amp;gt; in [[Manual:DIL Manual/flags|flags]]) or are closed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;u.bright - u.illum&amp;lt;/code&amp;gt; is the unit's own brightness.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* Setting or clearing &amp;lt;code&amp;gt;UNIT_FL_TRANS&amp;lt;/code&amp;gt; through &amp;lt;code&amp;gt;.flags&amp;lt;/code&amp;gt; in DIL doesn't recount the light; the wizard &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; command does.&lt;br /&gt;
* On null it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin shine_report(item : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (item.illum &amp;gt; 0)&lt;br /&gt;
      act(&amp;quot;Light shines out of $2n.&amp;quot;, A_ALWAYS, self, item, null, TO_CHAR);&lt;br /&gt;
   if (item.bright - item.illum &amp;gt; 0)&lt;br /&gt;
      act(&amp;quot;$2n itself is shining.&amp;quot;, A_ALWAYS, self, item, null, TO_CHAR);&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether a container shines because of what is in it, or by itself.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/bright|bright]]&lt;br /&gt;
* [[Manual:DIL Manual/light|light]]&lt;br /&gt;
* [[Manual:DIL Manual/flags|flags]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>