Changes

→‎Concession data: add info from Modding:Migrate to Stardew Valley 1.6 (main author Pathoschild, with formatting fixes by BarleyZP)
Line 753: Line 753:  
|-
 
|-
 
| <samp>ID</samp>
 
| <samp>ID</samp>
| Counting from 0, what number concession this is in the list.
+
| A [[Modding:Common_data_field_types#Unique_string_ID|unique string ID]] to identify this entry.
 
|-
 
|-
 
| <samp>Name</samp>
 
| <samp>Name</samp>
Line 769: Line 769:  
| <samp>ItemTags</samp>
 
| <samp>ItemTags</samp>
 
| A list of tags which describe the concession, used to determine an NPC's reaction to it. Can be any arbitrary string; the ones currently used in the game are: <samp>Sweet</samp>, <samp>Candy</samp>, <samp>Drink</samp>, <samp>Hot</samp>, <samp>Healthy</samp>, <samp>Cold</samp>, <samp>Joja</samp>, <samp>Sour</samp>, <samp>Fatty</samp>, <samp>Salty</samp>, <samp>Sandwich</samp>, <samp>Burger</samp>, and <samp>Gourmet</samp>.
 
| A list of tags which describe the concession, used to determine an NPC's reaction to it. Can be any arbitrary string; the ones currently used in the game are: <samp>Sweet</samp>, <samp>Candy</samp>, <samp>Drink</samp>, <samp>Hot</samp>, <samp>Healthy</samp>, <samp>Cold</samp>, <samp>Joja</samp>, <samp>Sour</samp>, <samp>Fatty</samp>, <samp>Salty</samp>, <samp>Sandwich</samp>, <samp>Burger</samp>, and <samp>Gourmet</samp>.
 +
|-
 +
| <samp>Texture</samp>
 +
| The asset name for the texture containing the concession's sprite.
 +
|-
 +
| <samp>SpriteIndex</samp>
 +
| The index within the <samp>Texture</samp> for the concession sprite, where 0 is the top-left sprite.
 
|}
 
|}
 +
 +
For example, this content pack adds a new 'Pufferchick Pop' concession with a custom image:
 +
{{#tag:syntaxhighlight|<nowiki>
 +
{
 +
    "Format": "</nowiki>{{Content Patcher version}}<nowiki>",
 +
    "Changes": [
 +
        {
 +
            "Action": "EditData",
 +
            "Target": "Data/Concessions",
 +
            "Entries": {
 +
                "{{ModId}}_PufferchickPop": {
 +
                    "Id": "{{ModId}}_PufferchickPop",  // must specify ID again when creating a new entry
 +
                    "Name": "{{ModId}}_PufferchickPop", // best practice to match the ID, since it's sometimes used as an alternate ID
 +
                    "DisplayName": "Pufferchick Pop",
 +
                    "Description": "A cute cake pop shaped like a pufferchick.",
 +
                    "Price": 25,
 +
                    "Texture": "{{InternalAssetKey: assets/pufferchick-pop.png}}" // an image in your content pack
 +
                    "SpriteIndex": 0
 +
                }
 +
            }
 +
        }
 +
    ]
 +
}</nowiki>|lang=javascript}}
    
== Concession tastes ==
 
== Concession tastes ==
138

edits