Line 437: |
Line 437: |
| | | |
| ==Clothing== | | ==Clothing== |
− | <span style="color: red;">TODO</span> | + | Clothing consists of cosmetic items that can be equipped in the player's [[Tailoring|pants and shirt]] slots. |
| + | |
| + | They have their data in <samp>Data/ClothingInformation</samp>, their in-game sprites in <samp>Characters/Farmer/pants</samp> & <samp>Characters/Farmer/shirts</samp>, and their code in <samp>StardewValley.Objects.Clothing</samp>. |
| + | |
| + | ===Data format=== |
| + | The clothing data in <samp>Data/ClothingInformation</samp> consists of an integer→string dictionary with entries like this: |
| + | |
| + | <syntaxhighlight lang="json"> |
| + | "1282": "Tomato Shirt/Tomato Shirt/A shirt that answers the big question: 'Tomatoes are'... (but the rest is smudged)./282/-1/50/255 0 0/false/Shirt/Sleeveless" |
| + | </syntaxhighlight> |
| + | |
| + | For each entry in the data asset, the key is the item's <samp>ParentSheetIndex</samp> (offset by 1000 for shirts) and the value is a slash-delimited string with these fields: |
| + | |
| + | {| class="wikitable" |
| + | |- |
| + | ! index |
| + | ! field |
| + | ! effect |
| + | |- |
| + | | 0 |
| + | | name |
| + | | The internal item name (and display name in English). |
| + | |- |
| + | | 1 |
| + | | display name |
| + | | The translated item name shown in-game. |
| + | |- |
| + | | 2 |
| + | | description |
| + | | The translated item description shown in-game. |
| + | |- |
| + | | 3 |
| + | | male index |
| + | | The sprite index in the clothing spritesheet for male characters. |
| + | |- |
| + | | 4 |
| + | | female index |
| + | | The sprite index in the clothing spritesheet for female characters, or <samp>-1</samp> to use the male index. |
| + | |- |
| + | | 5 |
| + | | price |
| + | | The price when purchased from shops. |
| + | |- |
| + | | 6 |
| + | | default color |
| + | | The default color, specified in space-delimited RGB with each channel being an integer from 0 (no color) to 255 (full color). For example, <samp>255 0 0</samp> for full red. |
| + | |- |
| + | | 7 |
| + | | dyeable |
| + | | Whether the clothing can be [[Dyeing|dyed]] (<samp>true</samp> or <samp>false</samp>). |
| + | |- |
| + | | 8 |
| + | | Type |
| + | | The clothing type. One of <samp>Pants</samp>, <samp>Shirt</samp>, or <s><samp>Accessory</samp></s> (unimplemented). |
| + | |- |
| + | | 9 |
| + | | extra data |
| + | | A comma-delimited list of tags attached to the item (unrelated to [[#Context tags|context tags]]). The values recognized by the game are <samp>Prismatic</samp> (adds a shifting rainbow effect) and <samp>Sleeveless</samp> (disables drawing the sleeve color over the player's arms). |
| + | |} |
| | | |
| ==Furniture== | | ==Furniture== |