Changes

92 bytes added ,  18:48, 4 November 2021
m
Text replacement - "tt>" to "samp>"
Line 2: Line 2:     
==Raw data==
 
==Raw data==
Animal data is stored in <tt>Content\Data\FarmAnimals.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
+
Animal data is stored in <samp>Content\Data\FarmAnimals.xnb</samp>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
    
{{collapse|Data|content=<syntaxhighlight lang="json">
 
{{collapse|Data|content=<syntaxhighlight lang="json">
Line 28: Line 28:     
===Key===
 
===Key===
An animal's <tt>type</tt> must be a key that exists in the data. Each key in the data must be unique.
+
An animal's <samp>type</samp> must be a key that exists in the data. Each key in the data must be unique.
    
===Value===
 
===Value===
Line 49: Line 49:  
| 2
 
| 2
 
| {{t|default produce index}}
 
| {{t|default produce index}}
| The [[Modding:Object data|item ID]] for the [[Animals#Produce|default produce item]] (e.g. <tt>184</tt> is [[Milk]]).
+
| The [[Modding:Object data|item ID]] for the [[Animals#Produce|default produce item]] (e.g. <samp>184</samp> is [[Milk]]).
 
|-
 
|-
 
| 3
 
| 3
 
| {{t|deluxe produce index}}
 
| {{t|deluxe produce index}}
| The [[Modding:Object data|item ID]] for the [[Animals#Deluxe and Large Products|deluxe produce item]] (e.g. <tt>186</tt> is [[Large Milk]]).
+
| The [[Modding:Object data|item ID]] for the [[Animals#Deluxe and Large Products|deluxe produce item]] (e.g. <samp>186</samp> is [[Large Milk]]).
 
|-
 
|-
 
| 4
 
| 4
Line 61: Line 61:  
| 5-12
 
| 5-12
 
| {{t|bounding boxes}}
 
| {{t|bounding boxes}}
| Unused data. The front & back (5-8) and sideways (9-12) bounding boxes, in the form of <tt>x/y/width/height</tt>. Can be all zeroes.
+
| Unused data. The front & back (5-8) and sideways (9-12) bounding boxes, in the form of <samp>x/y/width/height</samp>. Can be all zeroes.
 
|-
 
|-
 
| 13
 
| 13
 
| {{t|harvest type}}
 
| {{t|harvest type}}
| How the animal produces items. The possible values are <tt>0</tt> (lay like [[Chickens]]), <tt>1</tt> (grab with a [[tool]]), and <tt>2</tt> (unused - seen only on the Hog and sets name to "It"). [[Pigs]] have a {{t|harvest type}} of <tt>1</tt> and a {{t|harvest tool}} of <tt>null</tt>, but their [[Truffle]] finding capability is limited to animals that have a <tt>type</tt> that contains "Pig".
+
| How the animal produces items. The possible values are <samp>0</samp> (lay like [[Chickens]]), <samp>1</samp> (grab with a [[tool]]), and <samp>2</samp> (unused - seen only on the Hog and sets name to "It"). [[Pigs]] have a {{t|harvest type}} of <samp>1</samp> and a {{t|harvest tool}} of <samp>null</samp>, but their [[Truffle]] finding capability is limited to animals that have a <samp>type</samp> that contains "Pig".
 
|-
 
|-
 
| 14
 
| 14
 
| {{t|change texture when item ready}}
 
| {{t|change texture when item ready}}
| Whether the animal should use a secondary texture when you can harvest an item. Can be <tt>true</tt> or <tt>false</tt>. Must have a <tt>Sheared</tt> texture loaded such as <tt>Animals/ShearedSheep.xnb</tt>.
+
| Whether the animal should use a secondary texture when you can harvest an item. Can be <samp>true</samp> or <samp>false</samp>. Must have a <samp>Sheared</samp> texture loaded such as <samp>Animals/ShearedSheep.xnb</samp>.
 
|-
 
|-
 
| 15
 
| 15
 
| {{t|building type}}
 
| {{t|building type}}
| The [[Animals#Housing|building]] in which the animal can live. This must be a [[Modding:Blueprint data|blueprint type]], like <tt>Coop</tt> or <tt>Barn</tt>.
+
| The [[Animals#Housing|building]] in which the animal can live. This must be a [[Modding:Blueprint data|blueprint type]], like <samp>Coop</samp> or <samp>Barn</samp>.
 
|-
 
|-
 
| 16-19
 
| 16-19
 
| {{t|sprite size}}
 
| {{t|sprite size}}
| The front & back sprite (16-17) and sideways (18-19) sprite width/height in pixels. [[Coop]] animals such as [[Chickens]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
+
| The front & back sprite (16-17) and sideways (18-19) sprite width/height in pixels. [[Coop]] animals such as [[Chickens]] are <samp>16/16</samp> and [[Barn]] animals such as [[Cows]] are <samp>32/32</samp>.
 
|-
 
|-
 
| 20
 
| 20
Line 89: Line 89:  
| 22
 
| 22
 
| {{t|harvest tool}}
 
| {{t|harvest tool}}
| Which [[tool]] is needed to harvest [[Animals#Produce|produce]] from animal with a {{t|harvest type}} of <tt>1</tt>. This can be <tt>null</tt> (no tool) or any [[tool]] such as <tt>Milk Pail</tt> or <tt>Shears</tt>.
+
| Which [[tool]] is needed to harvest [[Animals#Produce|produce]] from animal with a {{t|harvest type}} of <samp>1</samp>. This can be <samp>null</samp> (no tool) or any [[tool]] such as <samp>Milk Pail</samp> or <samp>Shears</samp>.
 
|-
 
|-
 
| 23
 
| 23
106,306

edits