单机游戏首页>游戏攻略 > 游戏攻略 > 异星工厂原始版本隐藏武器解锁方法

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

时间:2016-12-13 10:24:57 来源:小皮单机游戏 作者:Fledgling 我要评论

  弹药:

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

  }

  }

相关阅读
相关下载