<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Outfit_pieces</id>
	<title>Outfit pieces - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Outfit_pieces"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Outfit_pieces&amp;action=history"/>
	<updated>2026-04-25T02:03:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Outfit_pieces&amp;diff=7420&amp;oldid=prev</id>
		<title>Bale: r9018 new function</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Outfit_pieces&amp;diff=7420&amp;oldid=prev"/>
		<updated>2011-02-08T05:38:26Z</updated>

		<summary type="html">&lt;p&gt;r9018 new function&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|outfit_pieces}}{{&lt;br /&gt;
#vardefine:return_type|item [int]}}{{&lt;br /&gt;
#vardefine:aggregate|yes}}{{&lt;br /&gt;
&lt;br /&gt;
FunctionPage|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
&lt;br /&gt;
function1={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
parameter1={{Param|string|outfit}}|&lt;br /&gt;
p1desc={{Pspan|outfit}} is the name of an outfit|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=This function returns an array of the items which compose an outfit. This works for both KoL standard outfits and custom outfits. If {{Pspan|outfit}} is not a valid outfit, then this will return an empty aggregate.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Sample|&lt;br /&gt;
description=The following code will determine if you can currently equip a given outfit.|&lt;br /&gt;
code=&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
boolean can_equip(string testOutfit) {&lt;br /&gt;
   if(count(outfit_pieces(testOutfit)) == 0) {&lt;br /&gt;
      print(testOutfit + &amp;quot; is not a valid outfit!&amp;quot;, &amp;quot;red&amp;quot;);&lt;br /&gt;
      return false;&lt;br /&gt;
   }&lt;br /&gt;
   foreach key,doodad in outfit_pieces(testOutfit)&lt;br /&gt;
      if(!can_equip(doodad)) return false;&lt;br /&gt;
   return true;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|outfit|have_outfit}}|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Equipment]]&lt;/div&gt;</summary>
		<author><name>Bale</name></author>
	</entry>
</feed>