This commit is contained in:
2023-04-27 20:41:06 +09:00
parent 2571ea8862
commit 6b484db057
21 changed files with 1802 additions and 47 deletions

View File

@@ -2,3 +2,13 @@
data.raw['electric-turret']['laser-turret'].fast_replaceable_group = 'laser-turret'
data.raw['electric-turret']['laser-turret-2'].fast_replaceable_group = data.raw['electric-turret']['laser-turret'].fast_replaceable_group
data.raw['electric-turret']['laser-turret-3'].fast_replaceable_group = data.raw['electric-turret']['laser-turret-2'].fast_replaceable_group
-- gun turret
data.raw['ammo-turret']['gun-turret'].fast_replaceable_group = 'gun-turret'
data.raw['ammo-turret']['gun-turret-2'].fast_replaceable_group = data.raw['ammo-turret']['gun-turret'].fast_replaceable_group
data.raw['ammo-turret']['gun-turret-3'].fast_replaceable_group = data.raw['ammo-turret']['gun-turret-2'].fast_replaceable_group
-- gun turret
data.raw['fluid-turret']['flamethrower-turret'].fast_replaceable_group = 'flamethrower-turret'
data.raw['fluid-turret']['flamethrower-turret-2'].fast_replaceable_group = data.raw['fluid-turret']['flamethrower-turret'].fast_replaceable_group
data.raw['fluid-turret']['flamethrower-turret-3'].fast_replaceable_group = data.raw['fluid-turret']['flamethrower-turret-2'].fast_replaceable_group

View File

@@ -6,7 +6,28 @@ local items = {
ref_name = 'laser-turret',
tech = 'laser-turret',
min = 2,
max = 3
max = 3,
range = 24
},
['gun-turret'] = {
enabled = true,
type = 'ammo-turret',
name = 'gun-turret',
ref_name = 'gun-turret',
tech = 'gun-turret',
min = 2,
max = 3,
range = 18
},
['flamethrower-turret'] = {
enabled = true,
type = 'fluid-turret',
name = 'flamethrower-turret',
ref_name = 'flamethrower-turret',
tech = 'flamethrower',
min = 2,
max = 3,
range = 30
}
}
@@ -17,12 +38,19 @@ local function EE(source, tier)
item.name = source.name .. '-' .. tier
item.minable.result = source.name .. '-' .. tier
item.max_health = item.max_health * tier
item.attack_parameters.damage_modifier = 2 * (2 ^ (tier - source.min + 1))
item.attack_parameters.damage_modifier = (2 ^ (tier - 1))
item.attack_parameters.range = source.range + (2 * (tier - 1))
item.call_for_help_radius = 40 + (2 * (tier - 1))
if source.type == 'electric-turret' then
item.energy_source.input_flow_limit = tonumber(string.match(item.energy_source.input_flow_limit, '%d+')) * (2 ^ (tier - source.min + 1)) .. 'kW'
item.energy_source.buffer_capacity = tonumber(string.match(item.energy_source.buffer_capacity, '%d+')) * (2 ^ (tier - source.min + 1)) .. 'kW'
item.attack_parameters.damage_modifier = item.attack_parameters.damage_modifier * 2
item.glow_light_intensity = 1
item.attack_parameters.ammo_type.action.action_delivery.max_length = source.range + (2 * (tier - 1))
item.attack_parameters.ammo_type.energy_consumption = 800 * (2 ^ (tier - 1)) .. 'kJ'
item.energy_source.input_flow_limit = 9600 * (2 ^ (tier - 1)) .. 'kW'
item.energy_source.buffer_capacity = 12816 * (2 ^ (tier - 1)) .. 'kJ'
elseif source.type == 'fluid-turret' then
item.prepare_range = 35 + (2 * (tier - 1))
end
-- item.animation.layers[1].filename = graphics_location .. source .. '-e.png'

View File

@@ -1,13 +1,13 @@
{
"name": "PHI-WE",
"version": "1.0.0",
"version": "1.0.1",
"factorio_version": "1.1",
"date": "2023-04-21",
"title": "Phidias Warfare Equipment",
"date": "2023-04-27",
"title": "Phidias Warfare",
"author": "PHIDIAS0303",
"contributers": "",
"homepage": "",
"description": "Warfare Equipment",
"description": "Warfare",
"dependencies": [
"base >= 1.1.0"
]

View File

@@ -1,11 +1,21 @@
[item-name]
laser-turret-2=Laser turret 2
laser-turret-3=Laser turret 3
gun-turret-2=Gun turret 2
gun-turret-3=Gun turret 3
flamethrower-turret-2=Flamethrower turret 2
flamethrower-turret-3=Flamethrower turret 3
[entity-name]
laser-turret-2=Laser turret 2
laser-turret-3=Laser turret 3
gun-turret-2=Gun turret 2
gun-turret-3=Gun turret 3
flamethrower-turret-2=Flamethrower turret 2
flamethrower-turret-3=Flamethrower turret 3
[entity-description]
laser-turret-2=Advanced defensive buildings that only require electricity.
laser-turret-3=Advanced defensive buildings that only require electricity.
gun-turret-2=Basic defensive buildings that must be refilled with magazines.
gun-turret-3=Basic defensive buildings that must be refilled with magazines.

View File

@@ -1,11 +1,23 @@
[item-name]
laser-turret-2=レーザータレット 2
laser-turret-3=レーザータレット 3
gun-turret-2=ガンタレット 2
gun-turret-3=ガンタレット 3
flamethrower-turret-2=火炎放射器 2
flamethrower-turret-3=火炎放射器 3
[entity-name]
laser-turret-2=レーザータレット 2
laser-turret-3=レーザータレット 3
gun-turret-2=ガンタレット 2
gun-turret-3=ガンタレット 3
flamethrower-turret-2=火炎放射器 2
flamethrower-turret-3=火炎放射器 3
[entity-description]
laser-turret-2=電気のみで稼動する高度な防衛施設。
laser-turret-3=電気のみで稼動する高度な防衛施設。
gun-turret-2=弾薬を補充する必要がある基本的な防衛施設。
gun-turret-3=弾薬を補充する必要がある基本的な防衛施設。
flamethrower-turret-2=敵に火のついた液体を投射します。
flamethrower-turret-3=敵に火のついた液体を投射します。

View File

@@ -1,11 +1,23 @@
[item-name]
laser-turret-2=雷射炮塔 2
laser-turret-3=雷射炮塔 3
gun-turret-2=機槍炮塔 2
gun-turret-3=機槍炮塔 3
flamethrower-turret-2=火焰噴射器 2
flamethrower-turret-3=火焰噴射器 3
[entity-name]
laser-turret-2=雷射炮塔 2
laser-turret-3=雷射炮塔 3
gun-turret-2=機槍炮塔 2
gun-turret-3=機槍炮塔 3
flamethrower-turret-2=火焰噴射器 2
flamethrower-turret-3=火焰噴射器 3
[entity-description]
laser-turret-2=僅需電力即可運轉的先進防禦工事。
laser-turret-3=僅需電力即可運轉的先進防禦工事。
gun-turret-2=基礎防禦設施,須裝填彈匣。
gun-turret-3=基礎防禦設施,須裝填彈匣。
flamethrower-turret-2=噴射燃燒的油料燒灼敵人。
flamethrower-turret-3=噴射燃燒的油料燒灼敵人。

View File

@@ -1,11 +1,23 @@
[item-name]
laser-turret-2=雷射炮塔 2
laser-turret-3=雷射炮塔 3
gun-turret-2=機槍炮塔 2
gun-turret-3=機槍炮塔 3
flamethrower-turret-2=火焰噴射器 2
flamethrower-turret-3=火焰噴射器 3
[entity-name]
laser-turret-2=雷射炮塔 2
laser-turret-3=雷射炮塔 3
gun-turret-2=機槍炮塔 2
gun-turret-3=機槍炮塔 3
flamethrower-turret-2=火焰噴射器 2
flamethrower-turret-3=火焰噴射器 3
[entity-description]
laser-turret-2=僅需電力即可運轉的先進防禦工事。
laser-turret-3=僅需電力即可運轉的先進防禦工事。
gun-turret-2=基礎防禦設施,須裝填彈匣。
gun-turret-3=基礎防禦設施,須裝填彈匣。
flamethrower-turret-2=噴射燃燒的油料燒灼敵人。
flamethrower-turret-3=噴射燃燒的油料燒灼敵人。