第1行: |
第1行: |
| ←[[模组:目录|目录]] | | ←[[模组:目录|目录]] |
| {{翻译}} | | {{翻译}} |
− | 此页面解释如何在游戏中创造和编辑农场中的[[ 动物]]
| + | This page explains how to create and edit in-game [[Animals|farm animals]]. |
| | | |
− | == 数据格式== | + | ==Data format== |
− | 你可以在文件<samp>Data/FarmAnimals</samp> 中添加或编辑农场家禽/牲畜。
| + | You can add or edit farm animals by editing the <samp>Data/FarmAnimals</samp> [[Modding:Editing XNB files|asset]]. |
| | | |
− | 其数据是由以下字符串组成: | + | This consists of a string → model lookup, where... |
− | === 主要信息=== | + | * The key is a [[Modding:Common data field types#Unique string ID|unique string ID]] for the farm animal type. |
| + | * The value is a model with the fields listed below. |
| + | |
| + | ===Main info=== |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | ! 字段 | + | ! field |
− | ! 说明 | + | ! effect |
| |- | | |- |
| | <samp>DisplayName</samp> | | | <samp>DisplayName</samp> |
− | | 是一个可标记字符串用来注释动物的种类 | + | | A [[Modding:Tokenizable strings|tokenizable string]] for the animal type's display name. |
| |- | | |- |
| | <samp>House</samp> | | | <samp>House</samp> |
第20行: |
第23行: |
| |- | | |- |
| | <samp>Gender</samp> | | | <samp>Gender</samp> |
− | | ''( 可选项)'' 用于描述动物的性别 | + | | ''(Optional)'' The possible genders for the animal type. Currently this only affects the text shown after purchasing the animal, like "''Great! I'll send little <name> to [his/her] new home right away''". Default <samp>Female</samp>. |
| | | |
− | 可能的数据是:
| + | The possible values are: |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | ! 值 | + | ! value |
− | ! 说明 | + | ! effect |
| |- | | |- |
| | <samp>Male</samp><br /><samp>Female</samp> | | | <samp>Male</samp><br /><samp>Female</samp> |
− | | 农场的动物性别固定为雄性(male)或雌性(female) | + | | Farm animals of this type are always male or always female. |
| |- | | |- |
| | <samp>MaleOrFemale</samp> | | | <samp>MaleOrFemale</samp> |
− | | 动物性别随机分配 | + | | The gender of each animal is randomized based on its internal unique ID. |
| |} | | |} |
| |} | | |} |
| | | |
− | === 动物商店=== | + | ===Animal shop=== |
| These fields affect how this farm animal type is shown in [[Marnie's Ranch|Marnie's animal shop]]. Animals are automatically listed if they have a valid <samp>PurchasePrice</samp> value. | | These fields affect how this farm animal type is shown in [[Marnie's Ranch|Marnie's animal shop]]. Animals are automatically listed if they have a valid <samp>PurchasePrice</samp> value. |
| | | |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | ! 字段 | + | ! field |
− | ! 说明 | + | ! effect |
| |- | | |- |
| | <samp>PurchasePrice</samp> | | | <samp>PurchasePrice</samp> |