Difference between pages "Have familiar" and "Talk:Can equip"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Eliteofdelete
 
imported>StDoodle
(Created page with '(moved) by --~~~~ Correct. Torso isn't taken into account, either. This may be a bug. --Heeheehee 17:46, 6 March 2010 (UTC)')
 
Line 1: Line 1:
{{
+
(moved) by --[[User:StDoodle|StDoodle]] 18:08, 6 March 2010 (UTC)
#vardefine:name|have_familiar}}{{
 
#vardefine:return_type|boolean}}{{
 
  
FunctionPage|
+
Correct. Torso isn't taken into account, either. This may be a bug. --Heeheehee 17:46, 6 March 2010 (UTC)
name={{#var:name}}|
 
 
 
function1={{Function|
 
name={{#var:name}}|
 
aggregate={{#var:aggregate}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
parameter1={{Param|familiar|check_me}}|
 
p1desc={{Pspan|check_me}} is the familiar to check for|
 
}}|
 
 
 
function_description=Returns true if you have the specified familiar {{pspan|check_me}}, and false otherwise. The familiar will be detected if it is active or in your Terrarium. It will not notice familiar hatchlings since those are items, not familiars and need to be detected separately.</p>
 
 
 
<p>Mafia will not detect transformations of familiars due to wardrobe or doppleshifting, so this function is incapable of detecting such transformation if it is called during combat.|
 
 
 
code1={{CodeSample|
 
title=Code Samples|
 
description=Lists out all the familiars you currently have and the total number you have over the total available.|
 
code=
 
<syntaxhighlight>
 
int total, have;
 
foreach it in $familiars[] {
 
  total += 1;
 
  if (have_familiar(it)) {
 
      print("You have the familiar "+it+"!", "blue");
 
      have +=1;
 
  }
 
}
 
print("");
 
print("You have "+have+"/"+total+" available familiars.", "green");
 
</syntaxhighlight>|
 
 
 
}}|
 
 
 
see_also={{SeeAlso|use_familiar}}|
 
cli_equiv=The CLI command "familiar" with the parameter "list" functions similarly.|
 
special= Note that in Bad Moon it only checks the familiars you have acquired in the current run.|
 
}}
 
 
 
[[Category:Equipment]]
 

Revision as of 18:08, 6 March 2010

(moved) by --StDoodle 18:08, 6 March 2010 (UTC)

Correct. Torso isn't taken into account, either. This may be a bug. --Heeheehee 17:46, 6 March 2010 (UTC)