异星工厂修改文件隐藏武器解锁方法
- 来源:Fledgling
- 作者:墨非
- 编辑:墨非
枪械:
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(堆叠数量
}
}
玩家点评 (0人参与,0条评论)
热门评论
全部评论