本模组允许内容包为特定宠物品种添加毛色选项。
操作方式
- 创建新游戏时,点击宠物图标选择毛色;也可按住模组键(默认 左 Shift)并按切换宠物的方向键。
- 游戏中,将鼠标悬停在宠物上,按住毛色键(默认 左 Ctrl)并滚动鼠标滚轮,可更改该宠物的毛色。
- 按住品种键(默认 左 Alt)并滚动,可更改品种。
- 按住类型键(默认 右 Alt)并滚动,可更改类型。
内容包制作
可以通过以下方式为指定品种添加毛色:
- 替换该品种的整张纹理;还需提供图标纹理。
- 替换默认纹理中的指定颜色。
- 为纹理着色;可与前两种方式之一结合使用。
可设置 DisplayName,作为鼠标悬停在宠物图标上时显示的提示标题。
替换纹理示例:
{
"Format": "2.7.0",
"Changes": [
{
"Action": "EditData",
"Target": "aedenthorn.PetCoats/dict",
"Entries": {
"{{ModId}}.GermanShepard": {
"DisplayName": "German Shepard",
"PetType": "Dog",
"PetBreed": "1",
"TexturePath": "{{ModId}}.GermanShepard/texture",
"IconTexturePath": "{{ModId}}.GermanShepard/iconTexture"
}
}
},
{
"Action": "Load",
"Target": "{{ModId}}.GermanShepard/texture",
"FromFile": "assets/GermanShepard.png"
},
{
"Action": "Load",
"Target": "{{ModId}}.GermanShepard/iconTexture",
"FromFile": "assets/GermanShepardIcon.png"
}
]
}
颜色替换示例:
{
"Format": "2.7.0",
"Changes": [
{
"Action": "EditData",
"Target": "aedenthorn.PetCoats/dict",
"Entries": {
"{{ModId}}.GermanShepard": {
"DisplayName": "German Shepard",
"PetType": "Dog",
"PetBreed": "1",
"Swap": {
"81,34,16": "57,35,27",
"125,54,25": "83,63,55",
"56,19,2": "39,21,13",
"39,21,13": "255,174,78",
"202,109,25": "165,120,79"
}
}
}
}
]
}
颜色替换的键和值应为 3 或 4 个 0–255 数值(R、G、B;A 可选)。模组会精确匹配键对应的颜色,并将像素替换为指定值。
着色示例:
{
"Format": "2.7.0",
"Changes": [
{
"Action": "EditData",
"Target": "aedenthorn.PetCoats/dict",
"Entries": {
"{{ModId}}.BorderCollie": {
"DisplayName": "Border Collie",
"PetType": "Dog",
"PetBreed": "3",
"Tint": {
"R": 155,
"G": 155,
"B": 155
}
}
}
}
]
}
**前置需求:**Content Patcher。
源码:GitHub
来源与文件
- 原作者:aedenthorn
- 原项目:Pet Coats
- 文件:Pet Coats(ID:152084)
文件说明
Changes:
Added key to change pet type
Nexus ID
前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。
<!-- aoe-mods-source:nexusmods:stardewvalley:40750 -->
下载模块
共 1 个来源立即下载推荐来源
