首页>单机游戏
异星工厂原始版本隐藏武器解锁方法
时间:2016-12-13 作者:Fledgling

  异星工厂是由slpwnd制作发行的一款模拟经营类作品,在游戏中玩家的飞船坠落的在了异星球,在玩家需要利用星球上的资源生存下来并建立一个工厂,今天为大家带来异星工厂原始版本隐藏武器解锁方法。

异星工厂原始版本隐藏武器解锁方法

  找到游戏文件位置

  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"

  }

  另外附上枪械与专属弹药数据,不放图样地址,想修改弹药动画效果的可以自己找

  [page]

  弹药:

  X:\Factorio\data\base\prototypes\item\ammo.lua

  查找如下字符串

  name = "railgun-dart",

  找到如下段落

  {

  type = "ammo",

  name = "railgun-dart",

  icon = "__base__/graphics/icons/railgun-ammo.png",

  flags = {"goes-to-main-inventory"},

  ammo_type =

  {

  category = "railgun",

  target_type = "direction",

  action =

  {

  type = "line",(弹药效果类型

  range = 25,(距离,附图中距离为128

  width = 0.5,(宽度,为伤害实际宽度,不是效果宽度,附图中距离为32

  source_effects =

  {

  type = "create-entity",

  entity_name = "railgun-beam"(弹药实体

  },

  action_delivery =

  {

  type = "instant",(造成伤害的方式

  target_effects =

  {

  type = "damage",

  damage = { amount = 100, type="physical"}(伤害数值与类型

  }

  }

  }

  },

  magazine_size = 5,(每发弹夹弹药数量

  subgroup = "ammo",

  order = "c[railgun]",

  stack_size = 200(堆叠数量

  }

  枪械:

  X:\Factorio\data\base\prototypes\item\gun.lua

  查找如下字符串

  name = "railgun",

  找到如下段落

  {

  type = "gun",

  name = "railgun",

  icon = "__base__/graphics/icons/railgun.png",

  flags = {"goes-to-main-inventory"},

  subgroup = "gun",

  order = "c[railgun]",

  attack_parameters =

  {

  ammo_category = "railgun",

  cooldown = 2 * 60,(冷却时间

  movement_slow_down_factor = 0.6,(攻击中移动速度倍率

  projectile_creation_distance = 0.6,(弹药开始攻击的距离

  range = 20,(最大攻击范围,与弹药距离不冲突,弹药中的为弹药长度与宽度,这里是鼠标指示位置在距离人物多远可以发射

  sound =

  {

  {

  filename = "__base__/sound/railgun.wav",

  volume = 0.8(音量

  }

  }

  },

  stack_size = 4(堆叠数量

  }

  }

上一篇:异星工厂新手向虫巢常识 异星工厂虫巢介绍
下一篇:热血传奇道士宝宝大全 道士宝宝的更迭
相关文章
相关游戏