Line 720: |
Line 720: |
| The item IDs in <tt>ObjectInformation.xnb</tt> correspond to the images in the sprite sheet <tt>Content\Maps\springobjects.xnb</tt>. The sprites are numbered from the top left starting with zero. | | The item IDs in <tt>ObjectInformation.xnb</tt> correspond to the images in the sprite sheet <tt>Content\Maps\springobjects.xnb</tt>. The sprites are numbered from the top left starting with zero. |
| | | |
− | ==Category List== | + | ==Categories== |
− | Most (but not all) items specify a negative integer category, in addition to a text category. A list of items that specify numeric categories is shown below. | + | Most items have a category, represented by a negative integer separate from the type name. In code, you can get an item's category value from <tt>item.category</tt>, and its translated name from <tt>item.getCategoryName()</tt>. Here are the valid categories: |
| | | |
| + | {| class="wikitable sortable" |
| + | |- |
| + | ! value |
| + | ! internal constant |
| + | ! English translation |
| + | |- |
| + | | -2 |
| + | | <tt>Object.GemCategory</tt> |
| + | | Mineral |
| + | |- |
| + | | -4 |
| + | | <tt>Object.FishCategory</tt> |
| + | | Fish |
| + | |- |
| + | | -5 |
| + | | <tt>Object.EggCategory</tt> |
| + | | Animal Product |
| + | |- |
| + | | -6 |
| + | | <tt>Object.MilkCategory</tt> |
| + | | Animal Product |
| + | |- |
| + | | -7 |
| + | | <tt>Object.CookingCategory</tt> |
| + | | Cooking |
| + | |- |
| + | | -8 |
| + | | <tt>Object.CraftingCategory</tt> |
| + | | Crafting |
| + | |- |
| + | | -9 |
| + | | <tt>Object.BigCraftableCategory</tt> |
| + | | |
| + | |- |
| + | | -12 |
| + | | <tt>Object.mineralsCategory</tt> |
| + | | Mineral |
| + | |- |
| + | | -14 |
| + | | <tt>Object.meatCategory</tt> |
| + | | Animal Product |
| + | |- |
| + | | -15 |
| + | | <tt>Object.metalResources</tt> |
| + | | Resource |
| + | |- |
| + | | -16 |
| + | | <tt>Object.buildingResources</tt> |
| + | | Resource |
| + | |- |
| + | | -17 |
| + | | <tt>Object.sellAtPierres</tt> |
| + | | |
| + | |- |
| + | | -18 |
| + | | <tt>Object.sellAtPierresAndMarnies</tt> |
| + | | Animal Product |
| + | |- |
| + | | -19 |
| + | | <tt>Object.fertilizerCategory</tt> |
| + | | Fertilizer |
| + | |- |
| + | | -20 |
| + | | <tt>Object.junkCategory</tt> |
| + | | Trash |
| + | |- |
| + | | -21 |
| + | | <tt>Object.baitCategory</tt> |
| + | | Bait |
| + | |- |
| + | | -22 |
| + | | <tt>Object.tackleCategory</tt> |
| + | | Fishing Tackle |
| + | |- |
| + | | -23 |
| + | | <tt>sellAtFishShopCategory</tt> |
| + | | |
| + | |- |
| + | | -24 |
| + | | <tt>Object.furnitureCategory</tt> |
| + | | Decor |
| + | |- |
| + | | -25 |
| + | | <tt>Object.ingredientsCategory</tt> |
| + | | Cooking |
| + | |- |
| + | | -26 |
| + | | <tt>Object.artisanGoodsCategory</tt> |
| + | | Artisan Goods |
| + | |- |
| + | | -27 |
| + | | <tt>Object.syrupCategory</tt> |
| + | | Artisan Goods |
| + | |- |
| + | | -28 |
| + | | <tt>Object.monsterLootCategory</tt> |
| + | | Monster Loot |
| + | |- |
| + | | -29 |
| + | | <tt>Object.equipmentCategory</tt> |
| + | | |
| + | |- |
| + | | -74 |
| + | | <tt>Object.SeedsCategory</tt> |
| + | | Seed |
| + | |- |
| + | | -75 |
| + | | <tt>Object.VegetableCategory</tt> |
| + | | Vegetable |
| + | |- |
| + | | -79 |
| + | | <tt>Object.FruitsCategory</tt> |
| + | | Fruit |
| + | |- |
| + | | -80 |
| + | | <tt>Object.flowersCategory</tt> |
| + | | Flower |
| + | |- |
| + | | -81 |
| + | | <tt>Object.GreensCategory</tt> |
| + | | Forage |
| + | |- |
| + | | -95 |
| + | | <tt>Object.hatCategory</tt> |
| + | | |
| + | |- |
| + | | -96 |
| + | | <tt>Object.ringCategory</tt> |
| + | | |
| + | |- |
| + | | -98 |
| + | | <tt>Object.weaponCategory</tt> |
| + | | |
| + | |- |
| + | | -99 |
| + | | <tt>Object.toolCategory</tt> |
| + | | |
| + | |} |
| + | |
| + | Here's a dump of the vanilla items for each category: |
| {{collapse|Items with numeric categories|content=<source lang="yaml"> | | {{collapse|Items with numeric categories|content=<source lang="yaml"> |
| -81: Wild Horseradish, Daffodil, Leek, Dandelion, Cave Carrot, Sap, Morel, Chanterelle, Holly, Spring Onion, Common Mushroom, Hazelnut, Winter Root, Snow Yam, Red Mushroom, Purple Mushroom | | -81: Wild Horseradish, Daffodil, Leek, Dandelion, Cave Carrot, Sap, Morel, Chanterelle, Holly, Spring Onion, Common Mushroom, Hazelnut, Winter Root, Snow Yam, Red Mushroom, Purple Mushroom |