代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。

原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html



一五八.全人物可制造瓦丝格雷斯矛、瓦丝格雷斯帽

	用MT管理器打开游戏目录/assets/DLC0002/scripts/recipes.lua文件,在Recipe("trap_teeth", {Ingredient("log", 1),Ingredient("rope", 1),Ingredient("houndstooth", 1)}, RECIPETABS.WAR,  TECH.SCIENCE_TWO)的下一行插入以下内容:

Recipe("spear_wathgrithr", {Ingredient("twigs", 2), Ingredient("flint", 2), Ingredient("goldnugget", 2)}, RECIPETABS.WAR, TECH.SCIENCE_ONE, nil, nil, nil, nil, true)
Recipe("wathgrithrhat", {Ingredient("goldnugget", 2), Ingredient("rocks", 2)}, RECIPETABS.WAR, TECH.SCIENCE_ONE, nil, nil, nil, nil, true)

	即可在战斗选项(画着两把剑)下,用2个树枝、2个燧石、2个黄金制造瓦丝格雷斯矛,用2个黄金、2个石头制造瓦丝格雷斯帽