異星工廠修改文件隱藏武器解鎖方法
- 來源: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,(最大攻擊范圍,與彈藥距離不沖突,彈藥中的為彈藥長度與寬度,這里是鼠標指示位置在距離人物多遠可以發(fā)射
sound =
{
{
filename = "__base__/sound/railgun.wav",
volume = 0.8(音量
}
}
},
stack_size = 4(堆疊數(shù)量
}
}

玩家點評 (0人參與,0條評論)
熱門評論
全部評論