diff --git a/PHI-CL/data-updates.lua b/PHI-CL/data-updates.lua index a67469e..812ad10 100644 --- a/PHI-CL/data-updates.lua +++ b/PHI-CL/data-updates.lua @@ -153,6 +153,34 @@ if settings.startup['PHI-CT'].value then table.insert(data.raw.technology['automation'].effects, {type='unlock-recipe', recipe='trash-pipe'}) table.insert(data.raw.technology['automation'].effects, {type='unlock-recipe', recipe='trash-pipe-return'}) end + + if settings.startup['PHI-CT-MINER'].value then + local item = table.deepcopy(data.raw['item']['electric-mining-drill']) + item.name = 'large-area-electric-mining-drill' + item.place_result = 'large-area-electric-mining-drill' + item.order = 'zc' + data:extend({item}) + + local entity = table.deepcopy(data.raw['mining-drill']['electric-mining-drill']) + entity.name = 'large-area-electric-mining-drill' + entity.minable.result = 'large-area-electric-mining-drill' + entity.max_health = entity.max_health * 16 + entity.energy_usage = (tonumber(string.match(entity.energy_usage, '%d+')) * 16) .. 'kW' + entity.resource_searching_radius = 12.49 + entity.mining_speed = entity.mining_speed * 16 + entity.energy_source.emissions_per_minute = entity.energy_source.emissions_per_minute * 16 + entity.module_specification.module_slots = 8 + data:extend({entity}) + + data:extend({{ + type = 'recipe', + name = 'large-area-electric-mining-drill', + energy_required = 2, + enabled = true, + ingredients = {{'electric-mining-drill', 16}}, + result = 'large-area-electric-mining-drill' + }}) + end end if settings.startup['PHI-EQ-ARMOR'].value then diff --git a/PHI-CL/locale/en/locale.cfg b/PHI-CL/locale/en/locale.cfg index b76feee..a02ebad 100644 --- a/PHI-CL/locale/en/locale.cfg +++ b/PHI-CL/locale/en/locale.cfg @@ -254,6 +254,8 @@ trash-chest=Trash chest trash-pipe=Trash pipe +large-area-electric-mining-drill=Large area electric mining drill + [item-description] solar-panel-mk2-equipment=Provides power for equipment modules. solar-panel-mk3-equipment=Provides power for equipment modules. @@ -511,6 +513,8 @@ trash-chest=Trash chest trash-pipe=Trash pipe +large-area-electric-mining-drill=Large area electric mining drill + [entity-description] accumulator-2=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case. accumulator-3=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case. @@ -707,6 +711,8 @@ oil-pump=Pumps fluid super-radar=Scans the nearby sectors, and actively reveals an area around it. +large-area-electric-mining-drill=Large area electric mining drill + [equipment-name] solar-panel-mk2-equipment=Portable solar panel MK2 solar-panel-mk3-equipment=Portable solar panel MK3 @@ -896,9 +902,10 @@ PHI-PB-FFRLM=Force following robots lifetime modifier PHI-CT-OIL=Oil PHI-CT-RADAR=Radar -PHI-CT-TILE=World Tile +PHI-CT-TILE=World tile PHI-CT-TILE-CHOICE=Tile choice -PHI-CT-TRASH=Trash Chest +PHI-CT-TRASH=Trash chest +PHI-CT-MINER=Large miner [mod-setting-description] PHI-EN-SOLAR-TIER=Default 8 ; Disable 1 diff --git a/PHI-CL/locale/ja/locale.cfg b/PHI-CL/locale/ja/locale.cfg index bebdf46..e6729b4 100644 --- a/PHI-CL/locale/ja/locale.cfg +++ b/PHI-CL/locale/ja/locale.cfg @@ -254,6 +254,8 @@ trash-chest=ごみチェスト trash-pipe=ごみパイプ +large-area-electric-mining-drill=大型電動掘削機 + [item-description] solar-panel-mk2-equipment=装備用モジュールに電力を供給します。 solar-panel-mk3-equipment=装備用モジュールに電力を供給します。 @@ -511,6 +513,8 @@ trash-chest=ごみチェスト trash-pipe=ごみパイプ +large-area-electric-mining-drill=大型電動掘削機 + [entity-description] accumulator-2=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。 accumulator-3=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。 @@ -707,6 +711,8 @@ oil-pump=オイルポンプ super-radar=近隣の領域をスキャンし、その周囲のエリアを探索します。 +large-area-electric-mining-drill=大型電動掘削機 + [equipment-name] solar-panel-mk2-equipment=携帯ソーラーパネルモジュール2代目 solar-panel-mk3-equipment=携帯ソーラーパネルモジュール3代目 @@ -899,6 +905,7 @@ PHI-CT-RADAR=レーダー PHI-CT-TILE=ワールドタイル PHI-CT-TILE-CHOICE=ドタイル選択 PHI-CT-TRASH=ごみチェスト +PHI-CT-MINER=大型電動掘削機 [mod-setting-description] PHI-EN-SOLAR-TIER=デフォルト 8 ; 止める 1 diff --git a/PHI-CL/locale/zh-CN/locale.cfg b/PHI-CL/locale/zh-CN/locale.cfg index c9e0b80..a59c6ee 100644 --- a/PHI-CL/locale/zh-CN/locale.cfg +++ b/PHI-CL/locale/zh-CN/locale.cfg @@ -254,6 +254,8 @@ trash-chest=垃圾箱 trash-pipe=垃圾管 +large-area-electric-mining-drill=大型電能採礦機 + [item-description] solar-panel-mk2-equipment=替裝備的模組供電。 solar-panel-mk3-equipment=替裝備的模組供電。 @@ -511,6 +513,8 @@ trash-chest=垃圾箱 trash-pipe=垃圾管 +large-area-electric-mining-drill=大型電能採礦機 + [entity-description] accumulator-2=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。 accumulator-3=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。 @@ -707,6 +711,8 @@ oil-pump=抽油泵 super-radar=掃描並顯示附近的未知區域。 +large-area-electric-mining-drill=大型電能採礦機 + [equipment-name] solar-panel-mk2-equipment=攜帶式太陽能板2代 solar-panel-mk3-equipment=攜帶式太陽能板3代 @@ -899,6 +905,7 @@ PHI-CT-RADAR=雷達 PHI-CT-TILE=世界地磚 PHI-CT-TILE-CHOICE=地磚選擇 PHI-CT-TRASH=垃圾箱 +PHI-CT-MINER=大型電能採礦機 [mod-setting-description] PHI-EN-SOLAR-TIER=預設 8 ; 停用 1 diff --git a/PHI-CL/locale/zh-TW/locale.cfg b/PHI-CL/locale/zh-TW/locale.cfg index c9e0b80..a59c6ee 100644 --- a/PHI-CL/locale/zh-TW/locale.cfg +++ b/PHI-CL/locale/zh-TW/locale.cfg @@ -254,6 +254,8 @@ trash-chest=垃圾箱 trash-pipe=垃圾管 +large-area-electric-mining-drill=大型電能採礦機 + [item-description] solar-panel-mk2-equipment=替裝備的模組供電。 solar-panel-mk3-equipment=替裝備的模組供電。 @@ -511,6 +513,8 @@ trash-chest=垃圾箱 trash-pipe=垃圾管 +large-area-electric-mining-drill=大型電能採礦機 + [entity-description] accumulator-2=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。 accumulator-3=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。 @@ -707,6 +711,8 @@ oil-pump=抽油泵 super-radar=掃描並顯示附近的未知區域。 +large-area-electric-mining-drill=大型電能採礦機 + [equipment-name] solar-panel-mk2-equipment=攜帶式太陽能板2代 solar-panel-mk3-equipment=攜帶式太陽能板3代 @@ -899,6 +905,7 @@ PHI-CT-RADAR=雷達 PHI-CT-TILE=世界地磚 PHI-CT-TILE-CHOICE=地磚選擇 PHI-CT-TRASH=垃圾箱 +PHI-CT-MINER=大型電能採礦機 [mod-setting-description] PHI-EN-SOLAR-TIER=預設 8 ; 停用 1 diff --git a/PHI-CL/migrations/migrations.lua b/PHI-CL/migrations/migrations.lua index 33e46b3..d7dbc1b 100644 --- a/PHI-CL/migrations/migrations.lua +++ b/PHI-CL/migrations/migrations.lua @@ -109,5 +109,10 @@ for _, force in pairs(game.forces) do recipes['trash-pipe'].enabled = true recipes['trash-pipe'].reload() end + + if settings.startup['PHI-CT-MINER'].value then + recipes['large-area-electric-mining-drill'].enabled = true + recipes['large-area-electric-mining-drill'].reload() + end end end diff --git a/PHI-CL/settings.lua b/PHI-CL/settings.lua index f898479..d14182c 100644 --- a/PHI-CL/settings.lua +++ b/PHI-CL/settings.lua @@ -478,6 +478,12 @@ data:extend({ setting_type = 'startup', default_value = true, order = 'JA03' + }, { + type = 'bool-setting', + name = 'PHI-CT-MINER', + setting_type = 'startup', + default_value = true, + order = 'JA04' }, { type = 'bool-setting', name = 'PHI-CT-TILE',