<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ckb</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ckb"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/Ckb"/>
	<updated>2026-04-25T03:32:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Weight_adjustment&amp;diff=5253</id>
		<title>Weight adjustment</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Weight_adjustment&amp;diff=5253"/>
		<updated>2016-10-14T02:33:39Z</updated>

		<summary type="html">&lt;p&gt;Ckb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|weight_adjustment}}{{&lt;br /&gt;
#vardefine:return_type|int}}{{&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;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Returns the cumulative total of all familiar weight adjustments from equipment, effects, passive skills, and area modifiers.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Samples|&lt;br /&gt;
description=Checks to see how heavy a specified familiar is, including all weight-affecting effects.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
int fam_weight( familiar fam ) {&lt;br /&gt;
   return ( familiar_weight(fam) + weight_adjustment() );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|familiar_weight|my_familiar}}|&lt;br /&gt;
special=Returns 0 when not logged in.|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character]]&lt;/div&gt;</summary>
		<author><name>Ckb</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Familiar_weight&amp;diff=5256</id>
		<title>Familiar weight</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Familiar_weight&amp;diff=5256"/>
		<updated>2016-10-14T02:32:54Z</updated>

		<summary type="html">&lt;p&gt;Ckb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|familiar_weight}}{{&lt;br /&gt;
#vardefine:return_type|int}}{{&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|familiar|fam}}|&lt;br /&gt;
p1desc={{pspan|fam}} is the familiar type (e.g. Mosquito, not &amp;quot;Nos Feratu&amp;quot;)&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Returns the base weight of the specified familiar.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Samples|&lt;br /&gt;
description=Checks to see how heavy a specified familiar is, including all weight-adjusting effects.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
int fam_weight( familiar fam ) {&lt;br /&gt;
   return ( familiar_weight(fam) + weight_adjustment() );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|weight_adjustment|my_familiar}}|&lt;br /&gt;
special=Returns 0 when not logged in.|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character]]&lt;/div&gt;</summary>
		<author><name>Ckb</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Boolean_modifier&amp;diff=5038</id>
		<title>Boolean modifier</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Boolean_modifier&amp;diff=5038"/>
		<updated>2014-10-02T19:17:23Z</updated>

		<summary type="html">&lt;p&gt;Ckb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|boolean_modifier}}{{&lt;br /&gt;
#vardefine:return_type|boolean}}{{&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|str}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function2={{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|item|it}}|&lt;br /&gt;
parameter2={{Param|string|str}}|&lt;br /&gt;
p1desc={{pspan|it}} is the (optional) item in question|&lt;br /&gt;
p2desc={{pspan|str}} is the modifier name|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Accesses fields of your current modifiers for all of your current equipment and effects. This is the same mechanism that lets mafia decide whether you can adventure underwater, or how many songs you can keep in your head. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
For a list of fields that this function takes, see [[Modifiers#Boolean_Modifiers|Modifiers]].|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Simple Examples|&lt;br /&gt;
description=Tells you if you can adventure underwater or not.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
if(!(boolean_modifier(&amp;quot;Adventure Underwater&amp;quot;))||!(boolean_modifier(&amp;quot;Underwater Familiar&amp;quot;))) {&lt;br /&gt;
   print(&amp;quot;You can&#039;t adventure underwater.&amp;quot;, &amp;quot;red&amp;quot;);&lt;br /&gt;
   print(&amp;quot;Either you won&#039;t be able to breathe, or your familiar won&#039;t.&amp;quot;,&amp;quot;red&amp;quot;);&lt;br /&gt;
   exit;&lt;br /&gt;
}&lt;br /&gt;
print(&amp;quot;You can adventure underwater.&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
{{CodeSample|&lt;br /&gt;
description=Informs the player of how many accordion thief songs he can have active at one time.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
boolean four_songs = boolean_modifier(&amp;quot;four songs&amp;quot;);&lt;br /&gt;
   # plexiglass pendant and/or brimstone beret grant 4 songs total.&lt;br /&gt;
boolean extra_song = boolean_modifier(&amp;quot;additional song&amp;quot;);&lt;br /&gt;
   # La Hebilla del Cinturón de Lopez adds one song&lt;br /&gt;
int max_songs = 3 + to_int(four_songs) + to_int(extra_song);&lt;br /&gt;
print(&amp;quot;You can currently hold &amp;quot;+ max_songs +&amp;quot; songs in your head at a time.&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{SeeAlso|numeric_modifier}}|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modifier Functions]]&lt;/div&gt;</summary>
		<author><name>Ckb</name></author>
	</entry>
</feed>