Changes

Jump to navigation Jump to search
→‎Big craftables: WIP: Update to 1.6 Data Format
Line 609: Line 609:  
Big craftables are objects which can be placed in the world and are two tiles tall (instead of one like objects).
 
Big craftables are objects which can be placed in the world and are two tiles tall (instead of one like objects).
   −
They have their data in <samp>Data/BigCraftableInformation</samp>, their in-game sprites in <samp>TileSheets/Craftables</samp>, and their code in <samp>StardewValley.Object</samp> (with the <code>bigCraftable.Value = true</code> flag).
+
They have their data in <samp>Data/BigCraftables</samp>, their in-game sprites in <samp>TileSheets/Craftables</samp>, and their code in <samp>StardewValley.Object</samp> (with the <code>bigCraftable.Value = true</code> flag).
    
===Data format===
 
===Data format===
The big craftables data in <samp>Data/BigCraftableInformation</samp> consists of an integer→string dictionary with entries like this:
+
The big craftables data in <samp>Data/BigCraftables</samp> consists of an integer→string dictionary with entries like this:
    
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
   "19": "Oil Maker/50/-300/Crafting -9/Makes gourmet truffle oil./true/true/0/Oil Maker"
+
   "19": {
 +
    "Name": "Oil Maker",
 +
    "DisplayName": "[LocalizedText Strings\\BigCraftables:OilMaker_Name]",
 +
    "Description": "[LocalizedText Strings\\BigCraftables:OilMaker_Description]",
 +
    "Price": 50,
 +
    "Fragility": 0,
 +
    "CanBePlacedOutdoors": true,
 +
    "CanBePlacedIndoors": true,
 +
    "IsLamp": false,
 +
    "Texture": null,
 +
    "SpriteIndex": 19,
 +
    "ContextTags": null,
 +
    "CustomFields": null
 +
  }
 
</syntaxhighlight>
 
</syntaxhighlight>
   Line 622: Line 635:  
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! index
+
! Field
! field
+
! Data Type
! effect
+
! Effect<ref>See <samp>GameData.BigCraftables.BigCraftableData</samp></ref>
 
|-
 
|-
| 0
+
| Name
| name
+
| string
 
| The internal item name (and display name in English).
 
| The internal item name (and display name in English).
 
|-
 
|-
| 1
   
| price
 
| price
| The gold price when sold by the player.
+
| integer
 +
| The gold price when sold by the player. This is not the price when bought from a shop.
 
|-
 
|-
| 2
   
| edibility
 
| edibility
 +
|
 
| See edibility for [[#Objects|object data]]. Always set to <samp>-300</samp> (inedible) for vanilla items.
 
| See edibility for [[#Objects|object data]]. Always set to <samp>-300</samp> (inedible) for vanilla items.
 
|-
 
|-
| 3
   
| type and category
 
| type and category
 +
|
 
| See type and category for [[#Objects|object data]]. Always set to <samp>Crafting -9</samp> for vanilla items.
 
| See type and category for [[#Objects|object data]]. Always set to <samp>Crafting -9</samp> for vanilla items.
 
|-
 
|-
| 4
   
| description
 
| description
 +
|
 
| The translated item description shown in-game.
 
| The translated item description shown in-game.
 
|-
 
|-
| 5
   
| outdoors
 
| outdoors
 +
|
 
| Whether the item can be placed outdoors (<samp>true</samp> or <samp>false</samp>).
 
| Whether the item can be placed outdoors (<samp>true</samp> or <samp>false</samp>).
 
|-
 
|-
| 6
   
| indoors
 
| indoors
 +
|
 
| Whether the item can be placed indoors (<samp>true</samp> or <samp>false</samp>).
 
| Whether the item can be placed indoors (<samp>true</samp> or <samp>false</samp>).
 
|-
 
|-
| 7
   
| fragility
 
| fragility
 +
|
 
| How the item is removed by tools. Possible values:
 
| How the item is removed by tools. Possible values:
 
{| class="wikitable"
 
{| class="wikitable"
46

edits

Navigation menu