<?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=My_effects</id>
	<title>My effects - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=My_effects"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_effects&amp;action=history"/>
	<updated>2026-04-25T01:33:14Z</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=My_effects&amp;diff=7883&amp;oldid=prev</id>
		<title>Relyk: fix if unsatisfactory</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_effects&amp;diff=7883&amp;oldid=prev"/>
		<updated>2012-08-16T19:00:48Z</updated>

		<summary type="html">&lt;p&gt;fix if unsatisfactory&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|my_effects}}{{&lt;br /&gt;
#vardefine:return_type|int [effect]}}{{&lt;br /&gt;
#vardefine:aggregate|yes}}{{&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 an array of the character&amp;#039;s current effects and their durations. Intrinsic effects have a duration of -1.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Sample|&lt;br /&gt;
description=The following shrugs off any Accordion Thief buffs currently active.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
int [effect] currentEffects = my_effects(); // Array of current active effects&lt;br /&gt;
foreach buff in currentEffects{&lt;br /&gt;
	skill currentEffect = to_skill(buff);&lt;br /&gt;
	if (currentEffect.class == $class[accordion thief] &amp;amp;&amp;amp; currentEffect.buff) // True if AT buff&lt;br /&gt;
	{&lt;br /&gt;
		cli_execute(&amp;quot;uneffect &amp;quot; + to_string(buff));&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|have_effect}}|&lt;br /&gt;
cli_equiv=The CLI command &amp;quot;effects&amp;quot; gives information on all of your current effect durations.|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Skills and Effects]]&lt;/div&gt;</summary>
		<author><name>Relyk</name></author>
	</entry>
</feed>