Talk:Item type
Examples for All Item Types
Examples for all item types:
...weapon: ridiculously overelaborate ninja weapon
accessory: dope gangsta bling-bling
accordion: stolen accordion
artsything: Periodical Paintbrush
autopult: automatic catapult
axe: rubber axe
bag: Chester's bag of candy
banjo: stone banjo
bazooka: fish bazooka
blowgun: didgeridooka
bong: beer bong
boomerang: star boomerang
booze: ice-cold Sir Schlitz
bow: slightly peevedbow
can: can of fake snow
catapult: beer-a-pult
chefstaff: Staff of the Short Order Cook
club: seal-clubbing club
container: Mr. Container
crop: origami riding crop
crossbow: basic meat crossbow
cymbals: finger cymbals
disco ball: disco ball
drink helper: divine champagne flute
drum: tambourine
euphemisms: flaming juggler's balls
familiar equipment: serrated proboscis extension
familiar larva: mosquito larva
fish: halibut
flail: third-hand nunchaku
flute: ocarina of space
food: spicy noodles
food helper: Ol' Scratch's salad fork
frisbee: ultimate ultimate frisbee
guitar: acoustic guitarrr
gun: Red Rover BB gun
hat: helmet turtle
horn: dented harmonica
hp restore: Doc Galaktik's Pungent Unguent
hp+mp restore: green pixel potion
knife: asparagus knife
knuckles: candy knuckles
laser cannon: magilaser blastercannon
mace: Mace of the Tortoise
machine gun: armgun
mp restore: Knob Goblin seltzer
offhand: detective skull
pants: mariachi pants
pistol: grease gun
polearm: Knob Goblin elite polearm
polearm?: bill bec-de-bardiche glaive-guisarme
radio: ga-ga radio
rattle: bone rattle
rifle: bounty-hunting rifle
rod: Ruby Rod
sack: sack of doorknobs
saucepan: saucepan
shield: star buckler
shirt: Mr. Shirt
sitar: massive sitar
sling: double-barreled sling
slingshot: slingshot
snowsack: Frosty's snowball sack
spear: wooden stakes
spring: Coily™
staff: spooky stick
sticker: scratch 'n' sniff unicorn sticker
superball: Spooky Putty ball
sword: sweet ninja sword
theremin: pocket theremin
umbrella: titanium assault umbrella
utensil: pasta spoon
violin: world's smallest violin
wand: Wand of Nagamar
whip: cool whip
whistle: magic whistle
yoyo: lead yo-yo
zap wand: pine wand
--Heeheehee 18:08, 6 March 2010 (UTC)
Classification: Equipment?
I think this function should be in the Item Management page, not the Equipment page. Although it does return a diverse type of equipments, it also tells you about types that are not equipments (familiar larva, mp restore, etc.). I think to_slot()
is sufficient for determining exactly what kind of equipment an item is (excluding shields). --PhilmASTErpLus 03:02, 6 July 2010 (UTC)
- Quite right. Even the code sample involves booze and food. In a related vein, what's with the special note that it always returns an empty string for non-equipment? It returns an empty string for some non-equipment (black pixel, clown skin, divine noisemaker), but not others (sugar shard, lemon, pine wand, barrrnacle) --Bale 05:59, 6 July 2010 (UTC)
- Bale, I'm pretty sure I copy-pasta'd that from previous info. As for a list... is this by chance on the Coldfront wiki somewhere? If so, we should just link to that, as maintaining such a list is probably beyond what can be expected on this site. --StDoodle (#1059825) 07:56, 6 July 2010 (UTC)
- Poking around a bit. I found Item Types, but mafia does not support all those item types. Combat items for instance return a blank string. I think Heeheehee pulled that info out of the source. --Bale 08:28, 6 July 2010 (UTC)
- Heeheehee, is there a specific file that we could point to on the repo for mafia that would allow those who are curious to see the full, updated list? I hesitate to give this its own page, as I just don't see the use beyond weapon types. Though I could be missing something. --StDoodle (#1059825) 10:31, 6 July 2010 (UTC)
- No list, as far as I'm concerned. I think I generated a map, using something like:
ash item[string]map; foreach i in $items[] if(!map contains i.item_type()) map[i.item_type()] = i; foreach i in map print(i+": "+map[i]);
- Found them -- Lines 588-632 of EquipmentDatabase.java list all of the non-weapons; all of the weapons can be found starting with line 430 of equipment.txt. --Heeheehee 17:02, 6 July 2010 (UTC)