CDDA大灾变MOD教程3期(配方)

关于如何添加物品配方以及物品配方的格式说明

注意,我只推荐你通过搜索来获取你的游戏本体里面的json,因为游戏在不断的更新,有些内容会变,但大体还是不变的。所以,最好不要直接复制我的json

先看栗子

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"type": "recipe",
"activity_level": "MODERATE_EXERCISE",
"result": "char_smoker",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_TOOLS",
"skill_used": "fabrication",
"skills_required": [ "cooking", 2 ],
"difficulty": 2,
"time": "1 h 10 m",
"reversible": true,
"decomp_learn": 1,
"book_learn": [ [ "textbook_fabrication", 2 ], [ "manual_fabrication", 3 ], [ "cookbook", 3 ] ],
"qualities": [
{ "id": "HAMMER", "level": 3 },
{ "id": "SAW_M", "level": 1 },
{ "id": "SCREW", "level": 1 },
{ "id": "WRENCH", "level": 1 }
],
"tools": [ [ [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ], [ "soldering_iron", 75 ], [ "oxy_torch", 10 ] ] ],
"proficiencies": [ { "proficiency": "prof_metalworking" } ],
"components": [ [ [ "pilot_light", 1 ] ], [ [ "scrap", 4 ] ], [ [ "metal_tank_little", 1 ] ] ]
}

好,现在可能有点看不懂,那么我们换成中文加上注释

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"type": "recipe", //type类型,这里我们做配方,所以填recipe
"activity_level": "MODERATE_EXERCISE", //消耗体力类型,也许跟锻炼系统有关
"result": "char_smoker", //成品,现在这里面的是便携式木炭烤架(char_smoker)
"category": "CC_OTHER", //大分类
"subcategory": "CSC_OTHER_TOOLS", //子分类
"skill_used": "fabrication", //制作物品使用的技能
"skills_required": [ "cooking", 2 ], //制作物品需要满足的技能
"difficulty": 2, //制作难度
"time": "1 h 10 m", //制作时间
"reversible": true, //是否可逆,就是一个鸡蛋可以做出鸡蛋煎饼,把这个写成true,这个鸡蛋煎饼就可以拆解成鸡蛋
"decomp_learn": 1, //逆向工程?
"book_learn": [ [ "textbook_fabrication", 2 ], [ "manual_fabrication", 3 ], [ "cookbook", 3 ] ], //可以从什么书里面学到这个配方,比如你把核弹的配方里面的book_learn加上“煎饼果子入门基础”,你就可以从《煎饼果子入门基础》学到怎么做核弹
"qualities": [
{ "id": "HAMMER", "level": 3 },
{ "id": "SAW_M", "level": 1 },
{ "id": "SCREW", "level": 1 },
{ "id": "WRENCH", "level": 1 }
], //所需工具等级
"tools": [ [ [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ], [ "soldering_iron", 75 ], [ "oxy_torch", 10 ] ] ], //所需工具属性,后面的数字是消耗数量
"proficiencies": [ { "proficiency": "prof_metalworking" } ], //制作所需专长
"components": [ [ [ "pilot_light", 1 ] ], [ [ "scrap", 4 ] ], [ [ "metal_tank_little", 1 ] ] ] //制作材料,后面的是数量
}

好,那么原版的大分类显然是满足不了我们的,那怎么添加新的大分类和子分类呢,我直接举个例子

1
2
3
4
5
6
7
8
9
10
{
"type": "recipe_category",
"id": "CC_aaa", //分类id
"recipe_subcategories": [
"CSC_ALL", //这个不用动
"CSC_aaa_bbb", //子分类
"CSC_aaa_ccc", //子分类
"CSC_aaa_ddd" //子分类
]
}

Ok,本期教程到此结束,谢谢大家。

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2021 星界棱镜子
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信