Changes

Jump to navigation Jump to search
Line 508: Line 508:  
*<samp>Minerals</samp>, used for Gems and Minerals. Paired with categories <samp>-2</samp> or <samp>-12</samp>, respectively.
 
*<samp>Minerals</samp>, used for Gems and Minerals. Paired with categories <samp>-2</samp> or <samp>-12</samp>, respectively.
 
|-
 
|-
 +
| Category
 +
| 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
 +
| The gold price of the item when sold by the player. This is not the price when bought from a shop.
 +
|-
 +
| Texture
 +
| The asset name for the texture containing the item's sprite, or null for Maps/springobjects.
 +
|-
 +
| SpriteIndex
 +
| The sprite's index in the spritesheet.
 +
|-
 +
| Edibility
 +
| 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
 +
of -300 can't be eaten, values from -299 to -1 reduce health and energy, and
 +
zero can be eaten but doesn't change health/energy.
    +
This is ignored for Rings.
 +
|-
 +
| 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>.
 
|}
 
|}
  
46

edits

Navigation menu