Item type

From Kolmafia
Revision as of 18:06, 6 March 2010 by imported>Heeheehee
Jump to navigation Jump to search



needs(code_samples);

Function Syntax

string item_type(item check_me )

  • check_me is the equipment to check

Returns the type of equipment that check_me is categorized as. Possible values are hat, sword, staff, chefstaff, whip, shield, offhand, pants, accessory, familiar equipment, shirt and container.

See Also

weapon_hands() | weapon_type()

Special

For non-equipment, this function returns an empty string.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • Please edit in any missing values.

Also returns ...weapon, accordion, artsything, autopult, axe, bag, banjo, bazooka, blowgun, bong, boomerang, booze, bow, can, catapult, club, crop, crossbow, cymbals, disco ball, drink helper, drum, euphemisms, familiar larva, fish, flail, flute, food, food helper, frisbee, guitar, gun, hat, horn, hp restore, hp+mp restore, knife, knuckles, laser cannon, mace, machine gun, mp restore, pistol, polearm, polearm?, radio, rattle, rifle, rod, sack, saucepan, sitar, sling, slingshot, snowsack, spear, spring, sticker, superball, theremin, umbrella, utensil, violin, wand, whistle, yoyo, and zap wand. See discussion for examples. --Heeheehee 18:05, 6 March 2010 (UTC)