异星工厂(Factorio)中玩家该怎么解锁隐藏武器呢?下面就来分享一下异星工厂隐藏武器解锁方法,给大家一个参考。
异星工厂隐藏武器解锁方法
找到游戏文件位置
X:\Factorio\data\base\prototypes\technology\technology.lua
查找字符串:
name = "military-3",
找到如下字符串
{
type = "technology",
name = "military-3",
icon = "__base__/graphics/technology/military.png",
effects =
{
--[[(这行消掉
{
type = "unlock-recipe",
recipe = "railgun"
},
{
type = "unlock-recipe",
recipe = "railgun-dart"
},]]--(这行逗号之后消掉
{
type = "unlock-recipe",
被去掉的为隐藏解锁科技的命令
如此一来尚未解锁军工事3科技的玩家在解锁军工事3后就会正常解锁电磁炮及专属弹药
如果已经解锁过军工业3的可以使用下面的方法
将刚才的字符段中
--[[
{
type = "unlock-recipe",
recipe = "railgun"
},
{
type = "unlock-recipe",
recipe = "railgun-dart"
},]]--
这段删除
并在文件最后部分
{
type = "unlock-recipe",
recipe = "science-pack-3"
}
},
order = "b-c"
}(这里右大括号后添加逗号,英文键盘
这里
}
)
在标注这里的地方插入空格,复制如下字符串,并根据提示修改,中文及左边的左小括号为提示内容,复制的时候请自行删去
{
type = "technology",
name = "railgun",
icon = "__base__/graphics/icons/railgun.png",
effects =
{
{
type = "unlock-recipe",
recipe = "railgun"
},
{
type = "unlock-recipe",
recipe = "railgun-dart"
},
},
prerequisites = {"steel-processing"},(这里为前置科技,研发完前置科技即可研发本科技解锁电磁枪,这里为钢科技,想直接解锁的可以直接将本行删去,但会减去不少解锁深层科技的成就感
unit =
{
count = 1000,(需要科技包组数,结合下方即需要4种科技包各1000个
ingredients =
{
{"alien-science-pack", 1}, (外星科技包 紫 (这里四行为需要的科技包类型,可以自行删减
{"science-pack-1", 1},(科技包1 红
{"science-pack-2", 1},(科技包2 绿
{"science-pack-3", 1}(科技包3 蓝
},
time = 60(研究一轮所需时间
},
order = "k-b"
}
另外附上枪械与专属弹药数据,不放图样地址,想修改弹药动画效果的可以自己找
……