This commit is contained in:
2023-05-13 23:27:09 +09:00
parent 6d4ede4661
commit d826d3d1e1
15 changed files with 412 additions and 310 deletions

View File

@@ -1,5 +1,37 @@
local items = require 'config'
local research_modifier = {
--[[
['electric-turret'] = {
'energy-weapons-damage-1',
'energy-weapons-damage-2',
'energy-weapons-damage-3',
'energy-weapons-damage-4',
'energy-weapons-damage-5',
'energy-weapons-damage-6',
'energy-weapons-damage-7'
},
]]
['ammo-turret'] = {
'physical-projectile-damage-1',
'physical-projectile-damage-2',
'physical-projectile-damage-3',
'physical-projectile-damage-4',
'physical-projectile-damage-5',
'physical-projectile-damage-6',
'physical-projectile-damage-7'
},
['fluid-turret'] = {
'refined-flammables-1',
'refined-flammables-2',
'refined-flammables-3',
'refined-flammables-4',
'refined-flammables-5',
'refined-flammables-6',
'refined-flammables-7'
}
}
-- entity
local function EE(source, tier)
local item = table.deepcopy(data.raw[source.type][source.ref_name])
@@ -74,6 +106,18 @@ end
-- tech
local function ET(source, tier)
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier})
if source.type == 'ammo-turret' or source.type == 'fluid-turret' then
for i=1, #research_modifier[source.type], 1 do
for j=1, #data.raw.technology[research_modifier[source.type][i]].effects, 1 do
if (data.raw.technology[research_modifier[source.type][i]].effects[j].type == 'turret-attack') then
if (data.raw.technology[research_modifier[source.type][i]].effects[j].turret_id == source.ref_name) then
table.insert(data.raw.technology[research_modifier[source.type][i]].effects, {type='turret-attack', turret_id=source.name .. '-' .. tier, modifier=data.raw.technology[research_modifier[source.type][i]].effects[j].modifier})
end
end
end
end
end
end
for _, v in pairs(items) do

View File

@@ -1,8 +1,8 @@
{
"name": "PHI-WE",
"version": "1.0.3",
"version": "1.0.4",
"factorio_version": "1.1",
"date": "2023-05-09",
"date": "2023-05-13",
"title": "Phidias Warfare",
"author": "PHIDIAS0303",
"contributers": "",

View File

@@ -27,3 +27,9 @@ flamethrower-turret-2=Fires a stream of burning liquid at enemies.
flamethrower-turret-3=Fires a stream of burning liquid at enemies.
radar-2=Scans the nearby sectors, and actively reveals an area around it.
radar-3=Scans the nearby sectors, and actively reveals an area around it.
[modifier-description]
gun-turret-2-attack-bonus=Gun turret damage: +__1__
gun-turret-3-attack-bonus=Gun turret damage: +__1__
flamethrower-turret-2-attack-bonus=Fire damage: +__1__
flamethrower-turret-3-attack-bonus=Fire damage: +__1__

View File

@@ -3,8 +3,8 @@ laser-turret-2=レーザータレット 2
laser-turret-3=レーザータレット 3
gun-turret-2=ガンタレット 2
gun-turret-3=ガンタレット 3
flamethrower-turret-2=火炎放射 2
flamethrower-turret-3=火炎放射 3
flamethrower-turret-2=火炎放射タレット 2
flamethrower-turret-3=火炎放射タレット 3
radar-2=レーダー 2
radar-3=レーダー 3
@@ -13,8 +13,8 @@ laser-turret-2=レーザータレット 2
laser-turret-3=レーザータレット 3
gun-turret-2=ガンタレット 2
gun-turret-3=ガンタレット 3
flamethrower-turret-2=火炎放射 2
flamethrower-turret-3=火炎放射 3
flamethrower-turret-2=火炎放射タレット 2
flamethrower-turret-3=火炎放射タレット 3
radar-2=レーダー 2
radar-3=レーダー 3
@@ -27,3 +27,9 @@ flamethrower-turret-2=敵に火のついた液体を投射します。
flamethrower-turret-3=敵に火のついた液体を投射します。
radar-2=近隣の領域をスキャンし、その周囲のエリアを探索します。
radar-3=近隣の領域をスキャンし、その周囲のエリアを探索します。
[modifier-description]
gun-turret-2-attack-bonus=ガンタレットダメージ: +__1__
gun-turret-3-attack-bonus=ガンタレットダメージ: +__1__
flamethrower-turret-2-attack-bonus=火炎放射タレット ダメージ: +__1__
flamethrower-turret-3-attack-bonus=火炎放射タレット ダメージ: +__1__

View File

@@ -27,3 +27,9 @@ flamethrower-turret-2=噴射燃燒的油料燒灼敵人。
flamethrower-turret-3=噴射燃燒的油料燒灼敵人。
radar-2=掃描並顯示附近的未知區域。
radar-3=掃描並顯示附近的未知區域。
[modifier-description]
gun-turret-2-attack-bonus=機槍炮塔傷害:+__1__
gun-turret-3-attack-bonus=機槍炮塔傷害:+__1__
flamethrower-turret-2-attack-bonus=火焰噴射炮塔傷害:+__1__
flamethrower-turret-3-attack-bonus=火焰噴射炮塔傷害:+__1__

View File

@@ -27,3 +27,9 @@ flamethrower-turret-2=噴射燃燒的油料燒灼敵人。
flamethrower-turret-3=噴射燃燒的油料燒灼敵人。
radar-2=掃描並顯示附近的未知區域。
radar-3=掃描並顯示附近的未知區域。
[modifier-description]
gun-turret-2-attack-bonus=機槍炮塔傷害:+__1__
gun-turret-3-attack-bonus=機槍炮塔傷害:+__1__
flamethrower-turret-2-attack-bonus=火焰噴射炮塔傷害:+__1__
flamethrower-turret-3-attack-bonus=火焰噴射炮塔傷害:+__1__