• 首页 | 软件教程 | 游戏教程 | 新闻资讯 |
    您的位置 里诺软件教程 -> 异星工厂游戏隐藏的武器和弹药如何解锁?_异星工厂隐藏武器和弹药解锁方法一览
    异星工厂游戏隐藏的武器和弹药如何解锁?_异星工厂隐藏武器和弹药解锁方法一览
    文章出自:里诺软件教程  编辑时间:2018-02-05


      异星工厂游戏中有非常多强大的隐藏武器和弹药,属性比起游戏中已经可以轻松获得的武器强大不少,很多玩家都想知道隐藏的武器如何解锁使用,下面里诺小编为大家带来一篇解锁教程,赶紧跟着里诺小编一起了解一下吧。


      异星工厂游戏隐藏武器弹药解锁方法一览:

      找到游戏文件位置
      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"
      }
      另外附上枪械与专属弹药数据,不放图样地址,想修改弹药动画效果的可以自己找


      弹药:

      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(堆叠数量
      }
      }



    -

    Copyright © 2005-2017 里诺软件教程 版权所有 All Rights Reserved 更新时间: 2018-02-05 16:06:07