Изменения

add page blocked by new user edit count filter
←[[Модификации:Индекс|Индекс]]

==Источник==
Данные о животных хранятся в <tt>'''Content\Data\FarmAnimals.xnb'''</tt>, Который можно распаковать с помощью [[Модификации:Редактирование XNB файлов#Распаковывание и упаковывание ресурсов|xnbcli]].

Вот пример для справки:

<tt>"Dinosaur": "1/0/107/-1/none/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/1/8/null/644/1000/Dinosaur/Coop"</tt>

==Основной формат==
Каждая запись в данных содержит '''ключ''' и '''значение''' состоящее из множества '''полей'''.

===Ключ===
<tt>Тип</tt> животного должен быть ключом, который существует в данных. Каждый ключ в данных должен быть уникальным.

===Значение===
Все записи имеют одинаковый формат значения, который нельзя переупорядочить. Каждое поле объясняется ниже.

{| class="wikitable"
|-
! индекс
! синтакс
! описание
|-
| 0
| <tt>{{t|Days to Produce}}</tt>
| Number of days for the animal to [[Animals#Produce|produce]]. Is affected by [[Animals#Animal_Care|friendship and happiness]] in some way. [[Sheep]] are affected by the [[Shepherd]] profession.
|-
| 1
| <tt>{{t|Age When Mature}}</tt>
| Number of days until mature.
|-
| 2
| <tt>{{t|Default Produce Index}}</tt>
| Index number for [[Animals#Produce|default produce item]] (ex <tt>184</tt> is "[[Milk]]"). Taken from [[Modding:Object data]].
|-
| 3
| <tt>{{t|Deluxe Produce Index}}</tt>
| Index number for [[Animals#Deluxe_and_Large_Products|deluxe produce item]] (ex <tt>186</tt> is "[[Large Milk]]"). Taken from [[Modding:Object data]].
|-
| 4
| <tt>{{t|Sound}}</tt>
| What sound clip the animal will use. Accepts all [https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/edit#gid=239695361 Sound Bank IDs].
|-
| 5-8
| <tt>{{t|Front and Back Bounding Box}}</tt>
| Unused data. In the form of <tt>x/y/width/height/</tt>. Can be all zeroes.
|-
| 9-12
| <tt>{{t|Sideways Bounding Box}}</tt>
| Unused data. In the form of <tt>x/y/width/height/</tt>. Can be all zeroes.
|-
| 13
| <tt>{{t|Harvest Type}}</tt>
| Accepts <tt>0</tt> (lay like [[Chickens]]), <tt>1</tt> (grab with a [[tool]]), or <tt>2</tt> (unused - seen only on the Hog and sets name to "It"). [[Pigs]] have a <tt>harvest type</tt> of <tt>1</tt> and a <tt>harvest tool</tt> of <tt>null</tt>, but their [[Truffle]] finding capability is limited to animals that have a <tt>type</tt> that contains "Pig".
|-
| 14
| <tt>{{t|Show Different Texture When Ready for Harvest}}</tt>
| Used for indicating an animal with a secondary texture. Accepts <tt>true</tt> or <tt>false</tt>. Must have a <tt>Sheared</tt> texture loaded such as <tt>Animals/ShearedSheep.xnb</tt>.
|-
| 15
| <tt>{{t|Building Type}}</tt>
| [[Animals#Housing|Building]] which the animal can live in such as <tt>Coop</tt> or <tt>Barn</tt>. Matches to [[Modding:Blueprint data|blueprints]] that have the building type in its name.
|-
| 16-17
| <tt>{{t|Front and Back Sprite Width/Height}}</tt>
| Size in pixels of front and back sprites. [[Coop]] animals such as [[Chickens]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
|-
| 18-19
| <tt>{{t|Sideways Sprite Width/Height}}</tt>
| Size in pixels of sideways sprites. [[Coop]] animals such as [[Chickens]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
|-
| 20
| <tt>{{t|Fullness Drain}}</tt>
| Daily amount taken from the animal's [[Animals#Food|fullness]] value.
|-
| 21
| <tt>{{t|Happiness Drain}}</tt>
| Daily amount taken from the animal's [[Animals#Mood|happiness]] value.
|-
| 21
| <tt>{{t|Harvest Tool}}</tt>
| Which [[tool]] is needed to harvest [[Animals#Produce|produce]] from animal with a <tt>harvest type</tt> of <tt>1</tt>. Accepts <tt>null</tt> (no tool) or any [[tool]] such as <tt>Milk Pail</tt> or <tt>Shears</tt>.
|-
| 23
| <tt>{{t|Meat Index}}</tt>
| Unused data. Index number for meat [[Modding:Object data|objects]]. May be used by mods such as [https://www.nexusmods.com/stardewvalley/mods/1538 Animal Husbandry].
|-
| 24
| <tt>{{t|Price}}</tt>
| Used to calculate the amount you get for [[Animals#Selling Animals|selling]] an animal. This is not the cost of the animal when purchasing from [[Marnie's Ranch]].
|-
| 25
| <tt>{{t|Display Type}}</tt>
| Name to display for the animal's <tt>type</tt>. Used for non-English language compatibility, but is also present in English version.
|-
| 26
| <tt>{{t|Display Building}}</tt>
| Name to display for what <tt>building type</tt> the animal lives in. Used for non-English language compatibility, but is also present in English version.
|}

[[Category:Модификации]]

[[en:Modding:Animal data]]