Changes

Jump to navigation Jump to search
Line 534: Line 534:  
|-
 
|-
 
| Category
 
| Category
 +
| integer
 
| The item category, usually matching a constant like <samp>Object.flowersCategory</samp>. [[#Categories|Categories]] are either 0 (omitted category) or a negative integer. They are frequently referenced in other parts of the game.
 
| The item category, usually matching a constant like <samp>Object.flowersCategory</samp>. [[#Categories|Categories]] are either 0 (omitted category) or a negative integer. They are frequently referenced in other parts of the game.
 
|-
 
|-
 
| Price
 
| Price
 +
| integer
 
| The gold price of the item when sold by the player. This is not the price when bought from a shop.
 
| The gold price of the item when sold by the player. This is not the price when bought from a shop.
 
|-
 
|-
 
| Texture
 
| Texture
 +
| string
 
| The asset name for the texture containing the item's sprite, or null for Maps/springobjects.
 
| The asset name for the texture containing the item's sprite, or null for Maps/springobjects.
 
|-
 
|-
 
| SpriteIndex
 
| SpriteIndex
 +
| integer
 
| The sprite's index in the spritesheet.
 
| The sprite's index in the spritesheet.
 
|-
 
|-
 
| Edibility
 
| Edibility
 +
| integer
 
| A numeric value that determines how much energy (edibility × 2.5) and health
 
| A numeric value that determines how much energy (edibility × 2.5) and health
 
edibility × 1.125) is restored when this item is eaten. An item with an edibility
 
edibility × 1.125) is restored when this item is eaten. An item with an edibility
Line 554: Line 559:  
|-
 
|-
 
| IsDrink
 
| IsDrink
 +
| boolean
 
| Whether to drink the item instead of eating it. Ignored if the item isn't edible per its Edibility.
 
| Whether to drink the item instead of eating it. Ignored if the item isn't edible per its Edibility.
 
|-
 
|-
| Buffs  
+
| Buffs
| The buffs to apply to the player when this item is eaten, if any. Ignored if the item isn't edible per its Edibility. This field is a <samp>List</samp> of <samp>ObjectBuffData</samp>, stored in the game code in <samp>StardewValley.GameData.Objects.ObjectBuffData</samp>.
+
| <samp>List</samp> of <samp>ObjectBuffData</samp>, stored in the game code in <samp>StardewValley.GameData.Objects.ObjectBuffData</samp>.
 +
| The buffs to apply to the player when this item is eaten, if any. Ignored if the item isn't edible per its Edibility.
 
|-
 
|-
 
| GeodeDropsDefaultItems
 
| GeodeDropsDefaultItems
 +
| boolean
 
| If true, the item will drop a default item when broken as a geode. If GeodeDrops is also set, there's a 50% chance of choosing a value from that list instead.
 
| If true, the item will drop a default item when broken as a geode. If GeodeDrops is also set, there's a 50% chance of choosing a value from that list instead.
 
|-
 
|-
 
| GeodeDrops
 
| GeodeDrops
 +
| <samp>List</samp> of <samp>ObjectGeodeDropData</samp>, stored in the game code in <samp>StardewValley.GameData.Objects.ObjectGeodeDropData</samp>.
 
| The items that can be dropped when this item is broken open as a geode, or null.
 
| The items that can be dropped when this item is broken open as a geode, or null.
 
|-
 
|-
46

edits

Navigation menu