Changes

Jump to navigation Jump to search
Line 445: Line 445:  
The object data in <samp>Data/Objects</samp> consists of a string→ObjectData dictionary (where ObjectData is defined in the game code in <samp>StardewValley.GameData.Objects.ObjectData</samp>). It has entries like this:
 
The object data in <samp>Data/Objects</samp> consists of a string→ObjectData dictionary (where ObjectData is defined in the game code in <samp>StardewValley.GameData.Objects.ObjectData</samp>). It has entries like this:
 
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
  "18": {
+
"201": {
    "Name": "Daffodil",
+
  "Name": "Complete Breakfast",
    "DisplayName": "[LocalizedText Strings\\Objects:Daffodil_Name]",
+
  "DisplayName": "[LocalizedText Strings\\Objects:CompleteBreakfast_Name]",
    "Description": "[LocalizedText Strings\\Objects:Daffodil_Description]",
+
  "Description": "[LocalizedText Strings\\Objects:CompleteBreakfast_Description]",
    "Type": "Basic",
+
  "Type": "Cooking",
    "Category": -81,
+
  "Category": -7,
    "Price": 30,
+
  "Price": 350,
    "Texture": null,
+
  "Texture": null,
    "SpriteIndex": 18,
+
  "SpriteIndex": 201,
    "Edibility": 0,
+
  "Edibility": 80,
    "IsDrink": false,
+
  "IsDrink": false,
     "Buffs": null,
+
  "Buffs": [
     "GeodeDropsDefaultItems": false,
+
     {
    "GeodeDrops": null,
+
      "Id": "Food",
    "ArtifactSpotChances": null,
+
      "BuffId": null,
    "ExcludeFromFishingCollection": false,
+
      "IconTexture": null,
    "ExcludeFromShippingCollection": false,
+
      "IconSpriteIndex": 0,
    "ExcludeFromRandomSale": false,
+
      "Duration": 600,
    "ContextTags": [
+
      "IsDebuff": false,
      "color_yellow",
+
      "GlowColor": null,
      "forage_item",
+
      "CustomAttributes": {
      "season_spring"
+
        "FarmingLevel": 2.0,
    ],
+
        "FishingLevel": 0.0,
    "CustomFields": null
+
        "MiningLevel": 0.0,
 +
        "LuckLevel": 0.0,
 +
        "ForagingLevel": 0.0,
 +
        "MaxStamina": 50.0,
 +
        "MagneticRadius": 0.0,
 +
        "Speed": 0.0,
 +
        "Defense": 0.0,
 +
        "Attack": 0.0
 +
      },
 +
      "CustomFields": null
 +
     }
 +
  ],
 +
  "GeodeDropsDefaultItems": false,
 +
  "GeodeDrops": null,
 +
  "ArtifactSpotChances": null,
 +
  "ExcludeFromFishingCollection": false,
 +
  "ExcludeFromShippingCollection": false,
 +
  "ExcludeFromRandomSale": false,
 +
  "ContextTags": [
 +
    "color_yellow",
 +
    "food_breakfast"
 +
  ],
 +
  "CustomFields": null
 
   }
 
   }
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 530: Line 552:  
| IsDrink
 
| IsDrink
 
| Whether to drink the item instead of eating it. Ignored if the item isn't edible per <samp>StardewValley.GameData.Objects.ObjectData.Edibility</samp>.
 
| Whether to drink the item instead of eating it. Ignored if the item isn't edible per <samp>StardewValley.GameData.Objects.ObjectData.Edibility</samp>.
 +
|-
 +
 
|}
 
|}
  
46

edits

Navigation menu