From 25f0468abf046b3d19975b05eb7016b1ab51b0b5 Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Mon, 21 Oct 2024 17:45:35 +0200
Subject: [PATCH] RELEASE 2.0.0 - Initial compatibility with Factorio 2.0

---
 changelog.txt |  7 +++++++
 control.lua   | 33 ++++++++++++++++++++-------------
 info.json     |  9 ++++++---
 3 files changed, 33 insertions(+), 16 deletions(-)

diff --git a/changelog.txt b/changelog.txt
index 9490c52..0df76f1 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,10 @@
+---------------------------------------------------------------------------------------------------
+Version: 2.0.0
+Date: 2024-10-21
+
+  Changed:
+    - Initial compatibility with Factorio 2.0
+
 ---------------------------------------------------------------------------------------------------
 Version: 1.1.2
 Date: 2024-01-02
diff --git a/control.lua b/control.lua
index 8290e84..a0082d9 100644
--- a/control.lua
+++ b/control.lua
@@ -2,18 +2,25 @@
 script.on_init(function (event)
   game.permissions.get_group("Default").set_allows_action(defines.input_action.craft ,false)
 
-  remote.call("freeplay", "set_created_items", {
-    ["iron-plate"] = 8,
-    ["wood"] = 1,
-    ["pistol"] = 1,
-    ["firearm-magazine"] = 10,
-    ["burner-mining-drill"] = 1,
-    ["stone-furnace"] = 1,
-    ["assembling-machine-3"] = 1,
-    ["small-electric-pole"] = 1,
-    ["boiler"] = 1,
-    ["steam-engine"] = 1,
-    ["offshore-pump"] = 1
-  })
+  if script.active_mods["some-spaceship-wreck-generator"] then
+    remote.call("freeplay", "set_created_items", {
+      ["pistol"] = 1,
+      ["firearm-magazine"] = 10,
+      ["assembling-machine-3"] = 1,
+      ["small-electric-pole"] = 1,
+      ["electric-mining-drill"] = 1
+    })
+  else
+    remote.call("freeplay", "set_created_items", {
+      ["pistol"] = 1,
+      ["firearm-magazine"] = 10,
+      ["assembling-machine-3"] = 1,
+      ["small-electric-pole"] = 1,
+      ["electric-mining-drill"] = 1,
+      ["boiler"] = 1,
+      ["steam-engine"] = 1,
+      ["offshore-pump"] = 1
+    })
+  end
 
 end)
diff --git a/info.json b/info.json
index f09b4b2..a4e8f04 100644
--- a/info.json
+++ b/info.json
@@ -1,10 +1,13 @@
 {
     "name": "some-lazybastard",
-    "version": "1.1.2",
+    "version": "2.0.0",
     "title": "Some lazy bastard",
     "author": "someone1337",
     "homepage": "https://git.somenet.org/factorio/some-lazybastard.git",
     "description": "For the lazy bastards. Start with: AM3, small-pole, offshort-pump, boiler, steam-engine. Handcrafting disabled by /permissions.",
-    "dependencies": ["base>=1.1.0"],
-    "factorio_version": "1.1"
+    "factorio_version": "2.0",
+    "dependencies": ["base>=2.0.0",
+
+        "? some-spaceship-wreck-generator"
+    ]
 }
-- 
2.43.0