From fd4d4ea504400f4a3a7873b58075dbb828dcab27 Mon Sep 17 00:00:00 2001 From: Someone Date: Sun, 13 Jan 2019 02:35:13 +0100 Subject: [PATCH] unlock with explosives (https://mods.factorio.com/mod/Waterbomb/discussion/5a5f1b0dadcc441024d76c54) --- changelog.txt | 7 +++++++ info.json | 2 +- migrations/Waterbomb_0.16.5.lua | 3 +++ prototypes/recipes.lua | 4 +++- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 migrations/Waterbomb_0.16.5.lua diff --git a/changelog.txt b/changelog.txt index edc4bfb..46daf1e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.16.7 +Date: 2019-01-13 + + Changed: + - Now unlocks with "explosives" (-> https://mods.factorio.com/mod/Waterbomb/discussion/5a5f1b0dadcc441024d76c54) + --------------------------------------------------------------------------------------------------- Version: 0.16.6 Date: 2019-01-13 diff --git a/info.json b/info.json index cfa7803..2b57d6c 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "Waterbomb", - "version": "0.16.6", + "version": "0.16.7", "title": "Waterbomb", "author": "someone1337", "homepage": "https://git.somenet.org/pub/jan/factorio_Waterbomb.git", diff --git a/migrations/Waterbomb_0.16.5.lua b/migrations/Waterbomb_0.16.5.lua new file mode 100644 index 0000000..85a319c --- /dev/null +++ b/migrations/Waterbomb_0.16.5.lua @@ -0,0 +1,3 @@ +for index, force in pairs(game.forces) do + force.recipes["waterbomb"].enabled = true +end diff --git a/prototypes/recipes.lua b/prototypes/recipes.lua index 8e24245..8474431 100644 --- a/prototypes/recipes.lua +++ b/prototypes/recipes.lua @@ -3,7 +3,7 @@ data:extend({ type = "recipe", name = "waterbomb", energy_required = 5, - enabled = "true", + enabled = "false", category = "crafting-with-fluid", ingredients = { @@ -16,3 +16,5 @@ data:extend({ result = "waterbomb" } }) + +table.insert(data.raw["technology"]["explosives"].effects, {type = "unlock-recipe",recipe = "waterbomb"}) -- 2.43.0