Factorio 原始版本隱藏武器解鎖方法

25 四月

廣告

來源:異星工廠吧

作者:Alone_player

 


遊戲本身自帶,只是製作組隱藏瞭解鎖方式,非MOD武器,效果挺好看的,就是距離較近,如果更改射程可以真正意義上變成超遠距離直線殺傷武器電磁炮,粗又硬,如下圖
修改後的效果,沒有修改彈藥圖效寬度,注意看森林:

修改後的實際攻擊範圍:

下面附上解鎖方法:

找到遊戲檔位置
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(堆疊數量
}
}

 

 

廣告

發表迴響

你的電子郵件位址並不會被公開。