diff --git a/PHI-WE/data.lua b/PHI-WE/data.lua index 43589d3..cf31684 100644 --- a/PHI-WE/data.lua +++ b/PHI-WE/data.lua @@ -28,6 +28,15 @@ local items = { min = 2, max = 3, range = 30 + }, + ['radar'] = { + enabled = true, + type = 'radar', + name = 'radar', + ref_name = 'radar', + tech = 'automation', + min = 2, + max = 3 } } @@ -38,9 +47,12 @@ 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 ^ (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' or source.type == 'ammo-turret' or source.type == 'fluid-turret' then + 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)) + end if source.type == 'electric-turret' then item.attack_parameters.damage_modifier = item.attack_parameters.damage_modifier * 2 @@ -51,6 +63,10 @@ local function EE(source, tier) item.energy_source.buffer_capacity = 12816 * (2 ^ (tier - 1)) .. 'kJ' elseif source.type == 'fluid-turret' then item.prepare_range = 35 + (2 * (tier - 1)) + elseif source.type == 'radar' then + item.max_distance_of_sector_revealed = item.max_distance_of_sector_revealed + (2 * tier) + item.max_distance_of_nearby_sector_revealed = item.max_distance_of_nearby_sector_revealed + (2 * tier) + item.energy_usage = item.energy_usage * (1 + (0.5 * tier)) end -- item.animation.layers[1].filename = graphics_location .. source .. '-e.png' diff --git a/PHI-WE/info.json b/PHI-WE/info.json index 8cdaaca..2bb0e06 100644 --- a/PHI-WE/info.json +++ b/PHI-WE/info.json @@ -1,8 +1,8 @@ { "name": "PHI-WE", - "version": "1.0.1", + "version": "1.0.2", "factorio_version": "1.1", - "date": "2023-04-27", + "date": "2023-05-08", "title": "Phidias Warfare", "author": "PHIDIAS0303", "contributers": "", diff --git a/PHI-WE/locale/en/locale.cfg b/PHI-WE/locale/en/locale.cfg index 8180de4..1ec0ab4 100644 --- a/PHI-WE/locale/en/locale.cfg +++ b/PHI-WE/locale/en/locale.cfg @@ -5,6 +5,8 @@ gun-turret-2=Gun turret 2 gun-turret-3=Gun turret 3 flamethrower-turret-2=Flamethrower turret 2 flamethrower-turret-3=Flamethrower turret 3 +radar-2=Radar 2 +radar-3=Radar 3 [entity-name] laser-turret-2=Laser turret 2 @@ -13,9 +15,15 @@ gun-turret-2=Gun turret 2 gun-turret-3=Gun turret 3 flamethrower-turret-2=Flamethrower turret 2 flamethrower-turret-3=Flamethrower turret 3 +radar-2=Radar 2 +radar-3=Radar 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. +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. diff --git a/PHI-WE/locale/ja/locale.cfg b/PHI-WE/locale/ja/locale.cfg index 68a4af8..98e6bd5 100644 --- a/PHI-WE/locale/ja/locale.cfg +++ b/PHI-WE/locale/ja/locale.cfg @@ -5,6 +5,8 @@ gun-turret-2=ガンタレット 2 gun-turret-3=ガンタレット 3 flamethrower-turret-2=火炎放射器 2 flamethrower-turret-3=火炎放射器 3 +radar-2=レーダー 2 +radar-3=レーダー 3 [entity-name] laser-turret-2=レーザータレット 2 @@ -13,6 +15,8 @@ gun-turret-2=ガンタレット 2 gun-turret-3=ガンタレット 3 flamethrower-turret-2=火炎放射器 2 flamethrower-turret-3=火炎放射器 3 +radar-2=レーダー 2 +radar-3=レーダー 3 [entity-description] laser-turret-2=電気のみで稼動する高度な防衛施設。 @@ -21,3 +25,5 @@ gun-turret-2=弾薬を補充する必要がある基本的な防衛施設。 gun-turret-3=弾薬を補充する必要がある基本的な防衛施設。 flamethrower-turret-2=敵に火のついた液体を投射します。 flamethrower-turret-3=敵に火のついた液体を投射します。 +radar-2=近隣の領域をスキャンし、その周囲のエリアを探索します。 +radar-3=近隣の領域をスキャンし、その周囲のエリアを探索します。 diff --git a/PHI-WE/locale/zh-CN/locale.cfg b/PHI-WE/locale/zh-CN/locale.cfg index e59012f..4a13385 100644 --- a/PHI-WE/locale/zh-CN/locale.cfg +++ b/PHI-WE/locale/zh-CN/locale.cfg @@ -5,6 +5,8 @@ gun-turret-2=機槍炮塔 2 gun-turret-3=機槍炮塔 3 flamethrower-turret-2=火焰噴射器 2 flamethrower-turret-3=火焰噴射器 3 +radar-2=雷達 2 +radar-3=雷達 3 [entity-name] laser-turret-2=雷射炮塔 2 @@ -13,6 +15,8 @@ gun-turret-2=機槍炮塔 2 gun-turret-3=機槍炮塔 3 flamethrower-turret-2=火焰噴射器 2 flamethrower-turret-3=火焰噴射器 3 +radar-2=雷達 2 +radar-3=雷達 3 [entity-description] laser-turret-2=僅需電力即可運轉的先進防禦工事。 @@ -21,3 +25,5 @@ gun-turret-2=基礎防禦設施,須裝填彈匣。 gun-turret-3=基礎防禦設施,須裝填彈匣。 flamethrower-turret-2=噴射燃燒的油料燒灼敵人。 flamethrower-turret-3=噴射燃燒的油料燒灼敵人。 +radar-2=掃描並顯示附近的未知區域。 +radar-3=掃描並顯示附近的未知區域。 diff --git a/PHI-WE/locale/zh-TW/locale.cfg b/PHI-WE/locale/zh-TW/locale.cfg index e59012f..4a13385 100644 --- a/PHI-WE/locale/zh-TW/locale.cfg +++ b/PHI-WE/locale/zh-TW/locale.cfg @@ -5,6 +5,8 @@ gun-turret-2=機槍炮塔 2 gun-turret-3=機槍炮塔 3 flamethrower-turret-2=火焰噴射器 2 flamethrower-turret-3=火焰噴射器 3 +radar-2=雷達 2 +radar-3=雷達 3 [entity-name] laser-turret-2=雷射炮塔 2 @@ -13,6 +15,8 @@ gun-turret-2=機槍炮塔 2 gun-turret-3=機槍炮塔 3 flamethrower-turret-2=火焰噴射器 2 flamethrower-turret-3=火焰噴射器 3 +radar-2=雷達 2 +radar-3=雷達 3 [entity-description] laser-turret-2=僅需電力即可運轉的先進防禦工事。 @@ -21,3 +25,5 @@ gun-turret-2=基礎防禦設施,須裝填彈匣。 gun-turret-3=基礎防禦設施,須裝填彈匣。 flamethrower-turret-2=噴射燃燒的油料燒灼敵人。 flamethrower-turret-3=噴射燃燒的油料燒灼敵人。 +radar-2=掃描並顯示附近的未知區域。 +radar-3=掃描並顯示附近的未知區域。