Changes

→‎Contents: update for 1.6.4 (added SpecificBaitBuff + SpecificBaitMultiplier + CanUseTrainingRod)
Line 31: Line 31:  
</pre>
 
</pre>
   −
==Data format (Stardew Valley 1.5.6 and earlier)==
+
==Data format==
Data/Locations controls many things about locations.
  −
 
  −
Here is an example location:
  −
 
  −
<syntaxhighlight lang="json">
  −
"Beach": "372 .9 718 .1 719 .3 723 .3/372 .9 394 .5 718 .1 719 .3 723 .3/372 .9 718 .1 719 .3 723 .3/372 .4 392 .8 718 .05 719 .2 723 .2/129 -1 131 -1 147 -1 148 -1 152 -1 708 -1 267 -1/128 -1 130 -1 146 -1 149 -1 150 -1 152 -1 155 -1 708 -1 701 -1 267 -1/129 -1 131 -1 148 -1 150 -1 152 -1 154 -1 155 -1 705 -1 701 -1/708 -1 130 -1 131 -1 146 -1 147 -1 150 -1 151 -1 152 -1 154 -1 705 -1/384 .08 589 .09 102 .15 390 .25 330 1",
  −
</syntaxhighlight>
  −
 
  −
Breaking it down:
  −
{| class="wikitable"
  −
! Index
  −
! Entry
  −
! Explanation
  −
|-
  −
| 0
  −
| "372 .9 718 .1 719 .3 723 .3"
  −
| Spring forage. Item ID chance. No particular order required.
  −
|-
  −
| 1
  −
| "372 .9 394 .5 718 .1 719 .3 723 .3"
  −
| Summer forage. As above.
  −
|-
  −
| 2
  −
| "372 .9 718 .1 719 .3 723 .3"
  −
| Fall forage. As above.
  −
|-
  −
| 3
  −
| "372 .4 392 .8 718 .05 719 .2 723 .2"
  −
| Winter forage. As above.
  −
|-
  −
| 4
  −
| "129 -1 131 -1 147 -1 148 -1 152 -1 708 -1 267 -1"
  −
| Fish data for spring. Fish is ID zoneNumber ID zoneNumber. Some locations have multiple fishing locations. To seperate fish, the zoneNumber is used. It starts at -1, and some locations have 0, or even 1, to indicate the zone. For more information, see [[Modding:Fish_data]]
  −
|-
  −
| 5
  −
| "128 -1 130 -1 146 -1 149 -1 150 -1 152 -1 155 -1 708 -1 701 -1 267 -1"
  −
| Fish data for summer
  −
|-
  −
| 6
  −
| "129 -1 131 -1 148 -1 150 -1 152 -1 154 -1 155 -1 705 -1 701 -1"
  −
| Fish data for autumn
  −
|-
  −
| 7
  −
| "708 -1 130 -1 131 -1 146 -1 147 -1 150 -1 151 -1 152 -1 154 -1 705 -1"
  −
| Fish data for winter
  −
|-
  −
| 8
  −
| "384 .08 589 .09 102 .15 390 .25 330 1"
  −
| Artifact data. (Article data TBA): Artifacts should be added in increasing likelihood, and in format: ID chance ID chance, with chance being addressed in 0 to 1.
  −
|}
  −
 
  −
Note that not all fields are required: If you have no fish, you can just put -1 for the relevant fields, and if you have no forage, you can just put -1 for the relevant fields.
  −
 
  −
Examples are:
  −
 
  −
<pre>
  −
  "Farm": "-1/-1/-1/-1/-1/-1/-1/-1/382 .05 770 .1 390 .25 330 1",
  −
</pre>
  −
 
  −
This has no forage or fishing data (handled programmatically) so it's just -1.
  −
 
  −
In order to have artifacts work, custom locations need to add their data to this file, which can be done with mods such as Content Patcher.
  −
 
  −
==Data format (Stardew Valley 1.6 and later)==
  −
{{upcoming|1.6}}
  −
 
   
You can add or edit locations by editing the <samp>Data/Locations</samp> asset.
 
You can add or edit locations by editing the <samp>Data/Locations</samp> asset.
   Line 261: Line 195:  
| <samp>CuriosityLureBuff</samp>
 
| <samp>CuriosityLureBuff</samp>
 
| ''(Optional)'' The value to add to the spawn chance when the player has the [[Curiosity Lure]] equipped, if set to 0 or higher. This affects both the <samp>Chance</samp> field and the <samp>Data\Fish</samp> chance, if applicable. Default -1, which keeps the default behavior (i.e. no effect on the <samp>Chance</samp> field and a scaled boost to the <samp>Data\Fish</samp> chance).
 
| ''(Optional)'' The value to add to the spawn chance when the player has the [[Curiosity Lure]] equipped, if set to 0 or higher. This affects both the <samp>Chance</samp> field and the <samp>Data\Fish</samp> chance, if applicable. Default -1, which keeps the default behavior (i.e. no effect on the <samp>Chance</samp> field and a scaled boost to the <samp>Data\Fish</samp> chance).
 +
|-
 +
| <samp>SpecificBaitBuff</samp>
 +
| ''(Optional)'' A flat increase to the spawn chance when the player has a specific bait equipped which targets this fish. Default 0.
 +
|-
 +
| <samp>SpecificBaitMultiplier</samp>
 +
| ''(Optional)'' A multiplier applied to the spawn chance when the player has a specific bait equipped which targets this fish. Default 1.66.
 
|-
 
|-
 
| <samp>CatchLimit</samp>
 
| <samp>CatchLimit</samp>
 
| ''(Optional)'' The maximum number of this fish which can be caught by each player. This limit is permanent (i.e. once it's reached, that fish will never appear again). For example, legendary fish set this to one. Default -1 (no limit).
 
| ''(Optional)'' The maximum number of this fish which can be caught by each player. This limit is permanent (i.e. once it's reached, that fish will never appear again). For example, legendary fish set this to one. Default -1 (no limit).
 +
|-
 +
| <samp>CanUseTrainingRod</samp>
 +
| ''(Optional)'' Whether the player can catch this fish using a training rod. This can be <samp>true</samp> (always allowed), <samp>false</samp> (never allowed), or <samp>null</samp> (apply default logic, i.e. allowed for difficulty ratings under 50). Default null.
 
|-
 
|-
 
| <samp>IsBossFish</samp>
 
| <samp>IsBossFish</samp>
Line 429: Line 372:     
===Can I rename a location?===
 
===Can I rename a location?===
{{upcoming|1.6}}
  −
   
'''Renaming a location will permanently lose player changes made for the old name if you're not careful.'''
 
'''Renaming a location will permanently lose player changes made for the old name if you're not careful.'''
  
translators
8,404

edits