diff --git a/README.md b/README.md index 170736f..17e738a 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,6 @@ This mod should just work, but I specifically added compatibility for the follow + [Bob's Warfare](https://mods.factorio.com/mod/bobplates) - more turrets (MK2-MK5) + [Bob's Metals, Chemicals and Intermediates](https://mods.factorio.com/mod/bobplates) - replace recipe ingredients similar to how Bob's Warfare depends on it -+ [Informatron](https://mods.factorio.com/mod/informatron) - informational page to explain functions and dangers -+ [Factorio Wiki Mod](https://mods.factorio.com/mod/wiki) - informational topic to explain functions and dangers -+ [Booktorio](https://mods.factorio.com/mod/Booktorio) - informational thread to explain functions and dangers ### Locale If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/Rocket_Turrets/tree/master/locale). I'd be happy to add your language and credits to the next release. Especially the polish translation is in need of a proper informational page. diff --git a/changelog.txt b/changelog.txt index db33569..3b1a759 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 1.1.2 +Date: 2022-08-10 + Changes: + - Added tips&tricks page + - Removed integrations for Factorio Wiki Mod, Booktorio and Informatron +--------------------------------------------------------------------------------------------------- Version: 1.1.1 Date: 2021-09-06 Locale: diff --git a/control.lua b/control.lua deleted file mode 100644 index adf702e..0000000 --- a/control.lua +++ /dev/null @@ -1,5 +0,0 @@ ---control.lua - -require("integrations.informatron.control") -require("integrations.wiki.control") -require("integrations.Booktorio.control") \ No newline at end of file diff --git a/data.lua b/data.lua index dd1a57a..f6c717f 100644 --- a/data.lua +++ b/data.lua @@ -4,17 +4,24 @@ require("prototypes.entity") require("prototypes.item") require("prototypes.recipe") require("prototypes.technology") +require("prototypes.tips") + +-- only add tips category "misc" if not already exists +if not data.raw["tips-and-tricks-item-category"]["misc"] then + data:extend({ + misc_category, + misc_category_title + }) +end data:extend({ rocket_entity, rocket_item, rocket_recipe, - rocket_tech + rocket_tech, + rocket_tips }) -- integrations require("integrations.bobwarfare.data") -require("integrations.bobplates.data") -require("integrations.informatron.data") -require("integrations.wiki.data") -require("integrations.Booktorio.data") \ No newline at end of file +require("integrations.bobplates.data") \ No newline at end of file diff --git a/graphics/info/ammo.png b/graphics/info/ammo.png deleted file mode 100644 index c1b3a15..0000000 Binary files a/graphics/info/ammo.png and /dev/null differ diff --git a/graphics/info/turrets.png b/graphics/info/turrets.png deleted file mode 100644 index 1f24058..0000000 Binary files a/graphics/info/turrets.png and /dev/null differ diff --git a/graphics/info/turrets_bob.png b/graphics/info/turrets_bob.png deleted file mode 100644 index afea5a6..0000000 Binary files a/graphics/info/turrets_bob.png and /dev/null differ diff --git a/graphics/info/cover.png b/graphics/tips.png similarity index 100% rename from graphics/info/cover.png rename to graphics/tips.png diff --git a/graphics/info/cover_bob.png b/graphics/tips_modded.png similarity index 100% rename from graphics/info/cover_bob.png rename to graphics/tips_modded.png diff --git a/info.json b/info.json index 0fa367b..3ee8b20 100644 --- a/info.json +++ b/info.json @@ -1,16 +1,13 @@ { "name": "Rocket_Turrets", - "version": "1.1.1", + "version": "1.1.2", "title": "RocketTurrets", "author": "Wyrrrd", "factorio_version": "1.1", "dependencies": [ "base >= 1.1.0", - "? bobplates >= 0.18.1", - "? bobwarfare >= 0.18.3", - "? Booktorio >= 1.0.0", - "? informatron >= 0.1.5", - "? wiki >= 0.18.01" + "? bobplates >= 1.1.0", + "? bobwarfare >= 1.1.0" ], "description": "Adds rocket turrets" } \ No newline at end of file diff --git a/integrations/Booktorio/control.lua b/integrations/Booktorio/control.lua deleted file mode 100644 index 711fefc..0000000 --- a/integrations/Booktorio/control.lua +++ /dev/null @@ -1,79 +0,0 @@ -local rocketturrets_thread = -{ - name = {"rocketturrets.menu_rocketturrets"}, - specified_version = 0, - topics = - { - { - name = {"rocketturrets.title_rocketturrets"}, - topic = - { - {type = "image", spritename = "booktorio-cover"}, - {type = "text", text = "info.text_intro"} - } - }, - { - name = {"info.heading_turrets"}, - topic = - { - {type = "title", title = {"info.heading_turrets"}}, - {type = "image", spritename = "booktorio-turrets"}, - {type = "text", text = "info.text_turrets"} - } - }, - { - name = {"info.heading_ammo"}, - topic = - { - {type = "title", title = {"info.heading_ammo"}}, - {type = "image", spritename = "booktorio-ammo"}, - {type = "text", text = "info.text_ammo"} - } - } - } -} - -local rocketturrets_bob_thread = -{ - name = {"rocketturrets.menu_rocketturrets"}, - specified_version = 0, - topics = - { - { - name = {"rocketturrets.title_rocketturrets"}, - topic = - { - {type = "image", spritename = "booktorio-cover-bob"}, - {type = "text", text = "info.text_intro"} - } - }, - { - name = {"info.heading_turrets"}, - topic = - { - {type = "image", spritename = "booktorio-turrets-bob"}, - {type = "text", text = "info.text_turrets_bob"} - } - }, - { - name = {"info.heading_ammo"}, - topic = - { - {type = "image", spritename = "booktorio-ammo"}, - {type = "text", text = "info.text_ammo"} - } - } - } -} - -local function registerThread() - if remote.interfaces["Booktorio"] then - remote.call("Booktorio", "add_thread", rocketturrets_thread) - if script.active_mods["bobwarfare"] then - remote.call("Booktorio", "override_thread", rocketturrets_bob_thread) - end - end -end - -script.on_init(registerThread) -script.on_configuration_changed(registerThread) \ No newline at end of file diff --git a/integrations/Booktorio/data.lua b/integrations/Booktorio/data.lua deleted file mode 100644 index 61333d6..0000000 --- a/integrations/Booktorio/data.lua +++ /dev/null @@ -1,45 +0,0 @@ -if mods["Booktorio"] then - data:extend( - { - { - type = "sprite", - name = "booktorio-ammo", - filename = "__Rocket_Turrets__/graphics/info/ammo.png", - width = 104, - height = 64, - scale = 1 - }, - { - type = "sprite", - name = "booktorio-cover", - filename = "__Rocket_Turrets__/graphics/info/cover.png", - width = 360, - height = 264, - scale = 1 - }, - { - type = "sprite", - name = "booktorio-cover-bob", - filename = "__Rocket_Turrets__/graphics/info/cover_bob.png", - width = 360, - height = 264, - scale = 1 - }, - { - type = "sprite", - name = "booktorio-turrets", - filename = "__Rocket_Turrets__/graphics/info/turrets.png", - width = 154, - height = 154, - scale = 1 - }, - { - type = "sprite", - name = "booktorio-turrets-bob", - filename = "__Rocket_Turrets__/graphics/info/turrets_bob.png", - width = 698, - height = 154, - scale = 1 - } - }) -end \ No newline at end of file diff --git a/integrations/bobplates/data.lua b/integrations/bobplates/data.lua index 968d481..e15c1b1 100644 --- a/integrations/bobplates/data.lua +++ b/integrations/bobplates/data.lua @@ -1,9 +1,5 @@ require("integrations.bobplates.ingredients") -local add_prerequisite = function (tech, prereq) - table.insert(data.raw.technology[tech].prerequisites,prereq) -end - if mods["bobplates"] and mods["bobwarfare"] then -- if bobplates enabled, change tiered turret recipes and tech (if existing) diff --git a/integrations/bobwarfare/data.lua b/integrations/bobwarfare/data.lua index 3956018..f8d278e 100644 --- a/integrations/bobwarfare/data.lua +++ b/integrations/bobwarfare/data.lua @@ -16,10 +16,43 @@ if mods["bobwarfare"] then data.raw["ammo-turret"]["rocket-turret"].preparing_animation.layers[1].hr_version["filename"] = "__Rocket_Turrets__/graphics/entity/hr-rocket-mk1-sheet.png" data.raw["ammo-turret"]["rocket-turret"].attacking_animation.layers[1].filename = "__Rocket_Turrets__/graphics/entity/rocket-mk1-sheet.png" data.raw["ammo-turret"]["rocket-turret"].attacking_animation.layers[1].hr_version["filename"] = "__Rocket_Turrets__/graphics/entity/hr-rocket-mk1-sheet.png" + data.raw["ammo-turret"]["rocket-turret"].icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk1-icon.png" data.raw["ammo-turret"]["rocket-turret"].fast_replaceable_group = "turret" data.raw["item"]["rocket-turret"].icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk1-icon.png" data.raw["technology"]["rocket-turret"].icon = "__Rocket_Turrets__/graphics/technology/rocket-turret-mk1.png" + -- if bobwarfare enabled, change tips&tricks page + + data.raw["tips-and-tricks-item"]["rocketturrets"].image = "__Rocket_Turrets__/graphics/tips_modded.png" + data.raw["tips-and-tricks-item"]["rocketturrets"].name = "rocketturrets_modded" + data.raw["tips-and-tricks-item"]["rocketturrets"].trigger = { + type = "or", + triggers = { + { + type = "build-entity", + entity = "rocket-turret" + }, + { + type = "build-entity", + entity = "rocket-turret-mk2" + }, + { + type = "build-entity", + entity = "rocket-turret-mk3" + }, + { + type = "build-entity", + entity = "rocket-turret-mk4" + }, + { + type = "build-entity", + entity = "rocket-turret-mk5" + } + } + } + data.raw["tips-and-tricks-item"]["rocketturrets_modded"] = data.raw["tips-and-tricks-item"]["rocketturrets"] + data.raw["tips-and-tricks-item"]["rocketturrets"] = nil + -- if bobwarfare enabled, load tiered turrets data:extend({ diff --git a/integrations/informatron/control.lua b/integrations/informatron/control.lua deleted file mode 100644 index 625ff51..0000000 --- a/integrations/informatron/control.lua +++ /dev/null @@ -1,36 +0,0 @@ -if script.active_mods["informatron"] then - remote.add_interface("rocketturrets", { - informatron_menu = function(data) - return rocketturrets_menu(data.player_index) - end, - informatron_page_content = function(data) - return rocketturrets_page_content(data.page_name, data.player_index, data.element) - end - }) -end - -function rocketturrets_menu(player_index) - return {} -end - -function rocketturrets_page_content(page_name, player_index, element) - if page_name == "rocketturrets" then - if script.active_mods["bobwarfare"] then - element.add{type="button", name="image_cover", style="informatron-cover-bob"} - element.add{type="label", name="text_intro", caption={"info.text_intro"}} - element.add{type="label", name="heading_turrets", caption={"info.heading_turrets"}, style="heading_1_label"} - element.add{type="button", name="image_turrets", style="informatron-turrets-bob"} - element.add{type="label", name="text_turrets", caption={"info.text_turrets_bob"}} - else - element.add{type="button", name="image_cover", style="informatron-cover"} - element.add{type="label", name="text_intro", caption={"info.text_intro"}} - element.add{type="label", name="heading_turrets", caption={"info.heading_turrets"}, style="heading_1_label"} - element.add{type="button", name="image_turrets", style="informatron-turrets"} - element.add{type="label", name="text_turrets", caption={"info.text_turrets"}} - end - -- the following is the same with and without bobplates - element.add{type="label", name="heading_ammo", caption={"info.heading_ammo"}, style="heading_1_label"} - element.add{type="button", name="image_ammo", style="informatron-ammo"} - element.add{type="label", name="text_ammo", caption={"info.text_ammo"}} - end -end \ No newline at end of file diff --git a/integrations/informatron/data.lua b/integrations/informatron/data.lua deleted file mode 100644 index 00aaa81..0000000 --- a/integrations/informatron/data.lua +++ /dev/null @@ -1,7 +0,0 @@ -if mods["informatron"] then - informatron_make_image("informatron-cover", "__Rocket_Turrets__/graphics/info/cover.png", 380, 264) - informatron_make_image("informatron-cover-bob", "__Rocket_Turrets__/graphics/info/cover_bob.png", 380, 264) - informatron_make_image("informatron-turrets", "__Rocket_Turrets__/graphics/info/turrets.png", 154, 154) - informatron_make_image("informatron-turrets-bob", "__Rocket_Turrets__/graphics/info/turrets_bob.png", 698, 154) - informatron_make_image("informatron-ammo", "__Rocket_Turrets__/graphics/info/ammo.png", 104, 64) -end \ No newline at end of file diff --git a/integrations/informatron/sample.png b/integrations/informatron/sample.png deleted file mode 100644 index 73482fd..0000000 Binary files a/integrations/informatron/sample.png and /dev/null differ diff --git a/integrations/wiki/control.lua b/integrations/wiki/control.lua deleted file mode 100644 index ee190d8..0000000 --- a/integrations/wiki/control.lua +++ /dev/null @@ -1,17 +0,0 @@ -require("integrations.wiki.wiki") - -if script.active_mods["wiki"] then - local initialize_wiki - if script.active_mods["bobwarfare"] then - initialize_wiki = function() - remote.call("wiki","register_mod_wiki",rocketturrets_bob_wiki) - end - else - initialize_wiki = function() - remote.call("wiki","register_mod_wiki",rocketturrets_wiki) - end - end - - script.on_init(initialize_wiki) - script.on_load(initialize_wiki) -end \ No newline at end of file diff --git a/integrations/wiki/data.lua b/integrations/wiki/data.lua deleted file mode 100644 index 94f9007..0000000 --- a/integrations/wiki/data.lua +++ /dev/null @@ -1,9 +0,0 @@ -require("integrations.wiki.wiki") - -if mods["wiki"] then - if mods["bobwarfare"] then - wiki_register_mod_wiki(rocketturrets_bob_wiki) - else - wiki_register_mod_wiki(rocketturrets_wiki) - end -end \ No newline at end of file diff --git a/integrations/wiki/wiki.lua b/integrations/wiki/wiki.lua deleted file mode 100644 index d0711e4..0000000 --- a/integrations/wiki/wiki.lua +++ /dev/null @@ -1,43 +0,0 @@ -rocketturrets_wiki = -{ - name = "Rocket_Turrets", - title = {"rocketturrets.menu_rocketturrets"}, - mod_path = "__Rocket_Turrets__", - { - name = {"rocketturrets.title_rocketturrets"}, - topic = { - {type = "image", name = "image_cover", filepath = "__Rocket_Turrets__/graphics/info/cover.png", width = 380, height = 264, scale = 0.95}, - {type = "text", text = {"info.text_intro"} }, - {type = "line"}, - {type = "title", title = {"info.heading_turrets"} }, - {type = "image", name = "image_turrets", filepath = "__Rocket_Turrets__/graphics/info/turrets.png", width = 154, height = 154, scale = 0.516}, - {type = "text", text = {"info.text_turrets"} }, - {type = "line"}, - {type = "title", title = {"info.heading_ammo"} }, - {type = "image", name = "image_ammo", filepath = "__Rocket_Turrets__/graphics/info/ammo.png", width = 104, height = 64, scale = 1}, - {type = "text", text = {"info.text_ammo"} }, - } - } -} - -rocketturrets_bob_wiki = -{ - name = "Rocket_Turrets", - title = {"rocketturrets.menu_rocketturrets"}, - mod_path = "__Rocket_Turrets__", - { - name = {"rocketturrets.title_rocketturrets"}, - topic = { - {type = "image", name = "image_cover", filepath = "__Rocket_Turrets__/graphics/info/cover_bob.png", width = 380, height = 264, scale = 0.95}, - {type = "text", text = {"info.text_intro"} }, - {type = "line"}, - {type = "title", title = {"info.heading_turrets"} }, - {type = "image", name = "image_turrets", filepath = "__Rocket_Turrets__/graphics/info/turrets_bob.png", width = 698, height = 154, scale = 0.516}, - {type = "text", text = {"info.text_turrets_bob"} }, - {type = "line"}, - {type = "title", title = {"info.heading_ammo"} }, - {type = "image", name = "image_ammo", filepath = "__Rocket_Turrets__/graphics/info/ammo.png", width = 104, height = 64, scale = 1}, - {type = "text", text = {"info.text_ammo"} }, - } - } -} \ No newline at end of file diff --git a/locale/de/locale.cfg b/locale/de/locale.cfg index d0d7ec8..e8cdc8b 100644 --- a/locale/de/locale.cfg +++ b/locale/de/locale.cfg @@ -26,10 +26,12 @@ rocket-turret-mk5=Raketen-Geschützturm MK5 menu_rocketturrets=Rocket Turrets title_rocketturrets=Rocket Turrets -[info] -text_intro=Raketen waren in Factorio schon immer das hässliche Entlein, das dritte Rad am Wagen der Basisverteidigung. Für manuellen Beschuss eignen sich andere Methoden besser, und automatischer Beschuss war lange nicht möglich. Doch nun hast du deine Badonkadonks in einen Geschützturm geschraubt, um Chaos und Explosionen auf Beißer und Speier regnen zu lassen. -heading_turrets=Neue Geschütztürme -text_turrets=Du hast neue Geschützturm entwickelt. Leider hattest du nur noch diese Farbe auf Lager. Jetzt sehen die Geschütztürme zwar etwas trist aus, aber sie verschießen Raketen, die ihren üblichen Schaden anrichten. -text_turrets_bob=Du hast neue Geschütztürme entwickelt, die in (fast) allen Regenbogenfarben strahlen. Der gelbe Raketen-Geschützturm fügt den üblichen Raketenschaden zu. Jede Weiterentwicklung (MK2-5) erhöht den Schaden um 25% und die Reichweite um 2 zum Vorgänger. Zusätzlich können die Geschütztürme MK4-5 je einen weiteren Stapel Munition aufnehmen. -heading_ammo=Munition -text_ammo=Alle Raketen lassen sich in die Raketen-Geschütztürme laden. Damit sie sich nicht selbst zerstören, können Raketen-Geschütztürme keine Feinde innerhalb eines Radius von 15 angreifen. Besondere Vorsicht ist bei dem Einsatz von Atombomben geboten, da die Explosion einen höheren Radius hat und somit Chaos über deine eigenen Verteidigungsanlagen bringen könnte. \ No newline at end of file +[tips-and-tricks-item-name] +misc=Verschiedenes +rocketturrets=Raketen-Geschütztürme +rocketturrets_modded=Raketen-Geschütztürme + +[tips-and-tricks-item-description] +misc=Verschiedene kleine Hinweise, die in keine bestehende Kategorie passen. +rocketturrets=Die [item=rocket] war in Factorio schon immer das hässliche Entlein, das dritte Rad am Wagen der Basisverteidigung. Für manuellen Beschuss eignen sich andere Methoden besser, und automatischer Beschuss war lange nicht möglich. Doch nun hast du deine Badonkadonks in einen [entity=rocket-turret] geschraubt, um Chaos und Explosionen auf Beißer und Speier regnen zu lassen.\n\nLeider hattest du nur noch diese Farbe auf Lager. Jetzt sehen deine Türme zwar etwas trist aus, aber sie verschießen Raketen, die ihren üblichen Schaden anrichten.\n\nAlle Raketen lassen sich in die Türme laden. Damit sie sich nicht selbst zerstören, können sie keine Feinde innerhalb eines Radius von 15 angreifen. Besondere Vorsicht ist bei dem Einsatz von Atombomben geboten, da die Explosion einen höheren Radius hat und somit Chaos über deine eigenen Verteidigungsanlagen bringen könnte. +rocketturrets_modded=Die [item=rocket] war in Factorio schon immer das hässliche Entlein, das dritte Rad am Wagen der Basisverteidigung. Für manuellen Beschuss eignen sich andere Methoden besser, und automatischer Beschuss war lange nicht möglich. Doch nun hast du deine Badonkadonks in einen [entity=rocket-turret] geschraubt, um Chaos und Explosionen auf Beißer und Speier regnen zu lassen.\n\nUnd sie strahlen in (fast) allen Regenbogenfarben. Der gelbe Turm fügt den üblichen Raketenschaden zu. Jede Weiterentwicklung (MK2-5) erhöht den Schaden um 25% und die Reichweite um 2 zum Vorgänger. Zusätzlich können die Türme MK4-5 je einen weiteren Stapel Munition aufnehmen.\n\nAlle Raketen lassen sich in die Türme laden. Damit sie sich nicht selbst zerstören, können sie keine Feinde innerhalb eines Radius von 15 angreifen. Besondere Vorsicht ist bei dem Einsatz von Atombomben geboten, da die Explosion einen höheren Radius hat und somit Chaos über deine eigenen Verteidigungsanlagen bringen könnte. \ No newline at end of file diff --git a/locale/en/locale.cfg b/locale/en/locale.cfg index 14b4d14..46501a2 100644 --- a/locale/en/locale.cfg +++ b/locale/en/locale.cfg @@ -26,10 +26,12 @@ rocket-turret-mk5=Rocket turret MK5 menu_rocketturrets=Rocket Turrets title_rocketturrets=Rocket Turrets -[info] -text_intro=Rockets have always been the lame duck, the third wheel of base defense in Factorio. For manual fire, other methods are more effective, and automatic fire was not possible for a long time. But now, you screwed your badonkadonks on a turret socket to make mayhem and explosions rain on biters and spitters. -heading_turrets=New Turrets -text_turrets=You developed new turrets. Sadly, you only had one colour available to paint them. Now the turrets look a bit depressing, but they launch rockets dealing their usual damage. -text_turrets_bob=You developed new turrets, which are glistening in (almost) every colours of the rainbow. The yellow rocket turret deals the rocket's usual damage. Every improvement (MK2-5) increases damage by 25% and range by 2. The turrets MK4-5 can each handle an additional stack of ammunition, too. -heading_ammo=Ammunition -text_ammo=All rockets can be loaded into the rocket turrets. To prevent them from self-destroying, rocket turrets cannot attack enemies inside a radius of 15 around them. Additional care should be taken when using atomic bombs, since the explosion has a far greater radius than that and may therefore cause mayhem over your very own base defenses. \ No newline at end of file +[tips-and-tricks-item-name] +misc=Miscellaneous +rocketturrets=Rocket turrets +rocketturrets_modded=Rocket turrets + +[tips-and-tricks-item-description] +misc=Various little hints that don't fit in an existing category. +rocketturrets=[item=rocket] has always been the lame duck, the third wheel of base defense in Factorio. For manual fire, other methods are more effective, and automatic fire was not possible for a long time. But now, you screwed your badonkadonks on a [entity=rocket-turret] to make mayhem and explosions rain on biters and spitters.\n\nSadly, you only had one colour available to paint them. Now the turrets look a bit depressing, but they launch rockets dealing their usual damage.\n\nAll rockets can be loaded into the rocket turrets. To prevent them from self-destroying, rocket turrets cannot attack enemies inside a radius of 15 around them. Additional care should be taken when using atomic bombs, since the explosion has a far greater radius than that and may therefore cause mayhem over your very own base defenses. +rocketturrets_modded=[item=rocket] has always been the lame duck, the third wheel of base defense in Factorio. For manual fire, other methods are more effective, and automatic fire was not possible for a long time. But now, you screwed your badonkadonks on a [entity=rocket-turret] to make mayhem and explosions rain on biters and spitters.\n\nThey are glistening in (almost) every colour of the rainbow. The yellow rocket turret deals the rocket's usual damage. Every improvement (MK2-5) increases damage by 25% and range by 2. The turrets MK4-5 can each handle an additional stack of ammunition, too.\n\nAll rockets can be loaded into the rocket turrets. To prevent them from self-destroying, rocket turrets cannot attack enemies inside a radius of 15 around them. Additional care should be taken when using atomic bombs, since the explosion has a far greater radius than that and may therefore cause mayhem over your very own base defenses. \ No newline at end of file diff --git a/locale/fr/locale.cfg b/locale/fr/locale.cfg index c843693..d6aa94e 100644 --- a/locale/fr/locale.cfg +++ b/locale/fr/locale.cfg @@ -26,10 +26,12 @@ rocket-turret-mk5=Tourelle lance-missiles MK5 menu_rocketturrets=Rocket Turrets title_rocketturrets=Rocket Turrets -[info] -text_intro=Les missiles ont toujours été le vilain petit canard, la cinquième roue du carrosse quant à la défense dans Factorio. En artillerie légère d'autres méthodes sont plus efficaces, et en lourde ça n'existait simplement pas... Mais voilà, maintenant vous pouvez visser votre Bazooka sur une tourelle et faire pleuvoir l'enfer sur vos ennemis ! -heading_turrets=Nouvelles tourelles -text_turrets=Vous avez développé vos nouvelles tourelles, elles sont certes un peu moroses, sans couleur, mais au moins elles font le boulot ! -text_turrets_bob=Vous avez développé vos nouvelles tourelles, et celles-ci brillent dans (presque) toutes les couleurs de l'arc-en-ciel. La jaune fait les dégâts habituels, les versions supérieures (MK2-5) les augmentent de 25% chacune, ainsi que la portée par 2. Les améliorations MK4 et 5 peuvent aussi recevoir un stock de munitions supplémentaires. -heading_ammo=Munitions -text_ammo=Les tourelles peuvent accueillir tout type de missiles. Pour éviter qu'elles ne se détruisent elles-mêmes, elles ne pourront pas tirer sur les ennemis qui lui sont trop proches. (Dans un rayon de 15 autour d'elles.) Une attention particulière est requise pour l'utilisation de bombes atomiques, elles sont assez dévastatrices pour détruire vos défenses par la même occasion... +[tips-and-tricks-item-name] +misc=Divers +rocketturrets=Tourelles lance-missiles +rocketturrets_modded=Tourelles lance-missiles + +[tips-and-tricks-item-description] +misc=Diverses petites notes qui n'entrent dans aucune catégorie existante. +rocketturrets=[item=rocket] a toujours été le vilain petit canard, la cinquième roue du carrosse quant à la défense dans Factorio. En artillerie légère d'autres méthodes sont plus efficaces, et en lourde ça n'existait simplement pas... Mais voilà, maintenant vous pouvez visser votre Bazooka sur une [entity=rocket-turret] et faire pleuvoir l'enfer sur vos ennemis.\n\nElles sont certes un peu moroses, sans couleur, mais au moins elles font le boulot.\n\nLes tourelles peuvent accueillir tout type de missiles. Pour éviter qu'elles ne se détruisent elles-mêmes, elles ne pourront pas tirer sur les ennemis qui lui sont trop proches. (Dans un rayon de 15 autour d'elles.) Une attention particulière est requise pour l'utilisation de bombes atomiques, elles sont assez dévastatrices pour détruire vos défenses par la même occasion... +rocketturrets_modded=[item=rocket] a toujours été le vilain petit canard, la cinquième roue du carrosse quant à la défense dans Factorio. En artillerie légère d'autres méthodes sont plus efficaces, et en lourde ça n'existait simplement pas... Mais voilà, maintenant vous pouvez visser votre Bazooka sur une [entity=rocket-turret] et faire pleuvoir l'enfer sur vos ennemis.\n\nEt celles-ci brillent dans (presque) toutes les couleurs de l'arc-en-ciel. La jaune fait les dégâts habituels, les versions supérieures (MK2-5) les augmentent de 25% chacune, ainsi que la portée par 2. Les améliorations MK4 et 5 peuvent aussi recevoir un stock de munitions supplémentaires.\n\nLes tourelles peuvent accueillir tout type de missiles. Pour éviter qu'elles ne se détruisent elles-mêmes, elles ne pourront pas tirer sur les ennemis qui lui sont trop proches. (Dans un rayon de 15 autour d'elles.) Une attention particulière est requise pour l'utilisation de bombes atomiques, elles sont assez dévastatrices pour détruire vos défenses par la même occasion... \ No newline at end of file diff --git a/locale/pl/locale.cfg b/locale/pl/locale.cfg index 5c0a220..dc4f8f9 100644 --- a/locale/pl/locale.cfg +++ b/locale/pl/locale.cfg @@ -26,10 +26,12 @@ rocket-turret-mk5=Działko rakietowe MK5 menu_rocketturrets=Rocket Turrets title_rocketturrets=Rocket Turrets -[info] -text_intro=Rakiety zawsze były kulawą kaczką, trzecim kołem u wozu obrony bazy w Factorio. Do ręcznego ostrzału inne metody są skuteczniejsze, a automatyczny ogień przez długi czas nie był możliwy. Ale teraz możesz przykręcić swoje badonkadonki do gniazda w wieżyczce, aby wywołać chaos i eksplozje na kąsacze i plujce. -heading_turrets=Nowe wieżyczki -text_turrets=Stworzyłeś nowe wieżyczki. Niestety, miałeś tylko jeden kolor do ich pomalowania. Teraz wieżyczki wyglądają trochę przygnębiająco, ale wystrzeliwują rakiety, które zadają zwykłe obrażenia. -text_turrets_bob=Opracowałeś nowe wieżyczki, które mienią się (prawie) wszystkimi kolorami tęczy. Żółta wieżyczka rakietowa zadaje typowe dla rakiet obrażenia. Każde ulepszenie (MK2-5) zwiększa obrażenia o 25% i zasięg o 2. Wieżyczki MK4-5 mogą też pomieścić dodatkowy stos amunicji. -heading_ammo=Amunicja -text_ammo=Wszystkie rakiety mogą być ładowane do wieżyczek rakietowych. Aby zapobiec ich samozniszczeniu, wieżyczki rakietowe nie mogą atakować przeciwników w promieniu 15 wokół nich. Dodatkową ostrożność należy zachować przy używaniu bomb atomowych, ponieważ ich eksplozja ma znacznie większy promień i może spowodować chaos w obronie Twojej bazy. +[tips-and-tricks-item-name] +misc=Różne +rocketturrets=Działkom rakietowe +rocketturrets_modded=Działkom rakietowe + +[tips-and-tricks-item-description] +misc=Różne drobne notatki, które nie pasują do żadnej istniejącej kategorii. +rocketturrets=[item=rocket] zawsze były kulawą kaczką, trzecim kołem u wozu obrony bazy w Factorio. Do ręcznego ostrzału inne metody są skuteczniejsze, a automatyczny ogień przez długi czas nie był możliwy. Ale teraz możesz przykręcić swoje badonkadonki do gniazda w wieżyczce, aby wywołać chaos i eksplozje na kąsacze i plujce.\n\nNiestety, miałeś tylko jeden kolor do ich pomalowania. Teraz wieżyczki wyglądają trochę przygnębiająco, ale wystrzeliwują rakiety, które zadają zwykłe obrażenia.\n\nWszystkie rakiety mogą być ładowane do wieżyczek rakietowych. Aby zapobiec ich samozniszczeniu, wieżyczki rakietowe nie mogą atakować przeciwników w promieniu 15 wokół nich. Dodatkową ostrożność należy zachować przy używaniu bomb atomowych, ponieważ ich eksplozja ma znacznie większy promień i może spowodować chaos w obronie Twojej bazy. +rocketturrets_modded=[item=rocket] zawsze były kulawą kaczką, trzecim kołem u wozu obrony bazy w Factorio. Do ręcznego ostrzału inne metody są skuteczniejsze, a automatyczny ogień przez długi czas nie był możliwy. Ale teraz możesz przykręcić swoje badonkadonki do gniazda w wieżyczce, aby wywołać chaos i eksplozje na kąsacze i plujce.\n\nKtóre mienią się (prawie) wszystkimi kolorami tęczy. Żółta wieżyczka rakietowa zadaje typowe dla rakiet obrażenia. Każde ulepszenie (MK2-5) zwiększa obrażenia o 25% i zasięg o 2. Wieżyczki MK4-5 mogą też pomieścić dodatkowy stos amunicji.\n\nWszystkie rakiety mogą być ładowane do wieżyczek rakietowych. Aby zapobiec ich samozniszczeniu, wieżyczki rakietowe nie mogą atakować przeciwników w promieniu 15 wokół nich. Dodatkową ostrożność należy zachować przy używaniu bomb atomowych, ponieważ ich eksplozja ma znacznie większy promień i może spowodować chaos w obronie Twojej bazy. \ No newline at end of file diff --git a/prototypes/tips.lua b/prototypes/tips.lua new file mode 100644 index 0000000..027ed54 --- /dev/null +++ b/prototypes/tips.lua @@ -0,0 +1,32 @@ +-- tips and tricks + +misc_category = { + type = "tips-and-tricks-item-category", + name = "misc", + order = "z-[misc]" +} + +misc_category_title = { + type = "tips-and-tricks-item", + name = "misc", + category = "misc", + order = "a", + starting_status = "unlocked", + is_title = true +} + +rocket_tips = { + type = "tips-and-tricks-item", + name = "rocketturrets", + tag = "[entity=rocket-turret]", + category = "misc", + indent = 1, + order = "b-[rocketturrets]", + trigger = + { + type = "build-entity", + entity = "rocket-turret" + }, + dependencies = {"introduction"}, + image = "__Rocket_Turrets__/graphics/tips.png" +} \ No newline at end of file