Changes

Jump to navigation Jump to search
→‎Objects: Add attribution from Modding:Migrate to Stardew Valley 1.6 (main author Pathoschild, with formatting fixes by Margotbean). This applies to several earlier revisions of mine as well on this page. +Cleanup
Line 498: Line 498:  
* The value (after the colon) is the data pertaining to that object, with the fields listed below. The objects with keys 516–534 (<samp>Ring.ringLowerIndexRange</samp> through <samp>Ring.ringUpperIndexRange</samp>) and 801 (wedding ring) are hardcoded as rings.
 
* The value (after the colon) is the data pertaining to that object, with the fields listed below. The objects with keys 516–534 (<samp>Ring.ringLowerIndexRange</samp> through <samp>Ring.ringUpperIndexRange</samp>) and 801 (wedding ring) are hardcoded as rings.
   −
Field values are described below:
+
Field values are described below (Copied from [[Modding:Migrate to Stardew Valley 1.6]]):
    
====Basic info====
 
====Basic info====
Line 613: Line 613:  
|}
 
|}
 
|}
 
|}
{| class="wikitable"
+
 
|-
  −
! Field
  −
! Data Type
  −
! Effect<ref>See <samp>GameData.Objects.ObjectData</samp></ref>
  −
|-
  −
| Type
  −
| string
  −
| The item's general type, like Arch (artifact) or Minerals.
  −
Types appear to be apocryphal data from early in the game's development. As such, some of them are not very well understood. The types used in <samp>Data/Objects</samp> and their purposes (as is currently understood) are as follows:
  −
*<samp>Ring</samp>, used for all rings, even the [[Wedding Ring]]. Category is 0 (signifying an omitted category), though every <samp>Ring</samp> type is automatically given the category <samp>-96</samp>.
  −
*<samp>Fish</samp>, used not only for fish but all items gained through fishing. Always paired with <samp>-4</samp> for true fish or <samp>-20</samp> for junk items such as [[Joja Cola]].
  −
*<samp>Arch</samp>, used for artifacts, presumably standing for "archaeology." Category is ommitted, though every <samp>Arch</samp> type is automatically given the category <samp>0</samp>. Is ''not'' used for Gems or Minerals. '''Adding custom items of the <samp>Arch</samp> type is not recommended, as it can break all Artifact Spots in the game.'''
  −
*<samp>asdf</samp>, used for a handful of items the player isn't intended to ever have in their inventory, such as an Artifact Spot or Secret Note. Category is ommitted.
  −
*<samp>Seeds</samp>, used for seeds, starters, shoots, etc. Always paired with the category <samp>-74</samp>.
  −
*<samp>Crafting</samp>, used for a variety of crafted items. Notably, however, there are some non-craftable items with this type: all tree seeds, various "Weeds", the [[Dwarvish Translation Guide]], [[Coffee]], [[Stardrop]], [[Galaxy Soul]], [[Horse Flute]], and supply crates. Category is either 0 (omitted) or <samp>-8</samp>, <samp>-24</samp>, or <samp>-74</samp>.
  −
*<samp>Quest</samp>, used for quest items as well as [[Golden Coconut|Golden Coconuts]]. Category is ommitted.
  −
*<samp>Basic</samp>, a general type for a myriad of items.
  −
*<samp>Cooking</samp>, used for cooked items. Not used for cooking ingredients. Always paired with category <samp>-7</samp>.
  −
*<samp>Minerals</samp>, used for Gems and Minerals. Paired with categories <samp>-2</samp> or <samp>-12</samp>, respectively.
  −
|-
  −
| 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.
  −
|-
  −
| Price
  −
| integer
  −
| The gold price of the item when sold by the player. This is not the price when bought from a shop.
  −
|-
  −
| 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.
  −
|-
  −
| GeodeDrops
  −
| <samp>List</samp> of <samp>ObjectGeodeDropData</samp>, stored in the game code in <samp>GameData.Objects.ObjectGeodeDropData</samp>.
  −
| The items that can be dropped when this item is broken open as a geode, or null.
  −
|-
  −
| ArtifactSpotChances
  −
| <samp>Dictionary</samp> of string keys and float values.
  −
| If this is an artifact (i.e. Type is Arch), the chance that it can be found by digging artifact spots in each location.
  −
|-
  −
| ExcludeFromFishingCollection
  −
| boolean
  −
| Whether to exclude this item from the fishing collection and perfection score.
  −
|-
  −
| ExcludeFromShippingCollection
  −
| boolean
  −
| Whether to exclude this item from the shipping collection and perfection score.
  −
|-
  −
| ExcludeFromRandomSale
  −
| boolean
  −
| Whether to exclude this item from shops when selecting random items to sell.
  −
|-
  −
| ContextTags
  −
| <samp>List</samp> of strings.
  −
| The custom [[#Context_tags|context tags]] to add for this item (in addition to the tags added automatically based on the other object data).
  −
|-
  −
| CustomFields
  −
| <samp>Dictionary</samp> of string keys and string values.
  −
| Custom fields ignored by the base game, for use by mods.
  −
|-
  −
|}
      
===Notes===
 
===Notes===
46

edits

Navigation menu