]> git.somenet.org - factorio/some-lazybastard.git/commitdiff
RELEASE 2.0.0 - Initial compatibility with Factorio 2.0 master
authorSomeone <someone@somenet.org>
Mon, 21 Oct 2024 15:45:35 +0000 (17:45 +0200)
committerSomeone <someone@somenet.org>
Mon, 21 Oct 2024 15:45:35 +0000 (17:45 +0200)
changelog.txt
control.lua
info.json

index 9490c52d3d5184960df4fe39374d0caea62fab2f..0df76f120a39bf78e52c5d682d0b803dbf264fd7 100644 (file)
@@ -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
 ---------------------------------------------------------------------------------------------------
 Version: 1.1.2
 Date: 2024-01-02
index 8290e840537514de21aa331ddddea9d4b5e7671d..a0082d97b05228eec4144b89edbca1b9f4684334 100644 (file)
@@ -2,18 +2,25 @@
 script.on_init(function (event)
   game.permissions.get_group("Default").set_allows_action(defines.input_action.craft ,false)
 
 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)
 
 end)
index f09b4b2406df56de77fed27d3aebe6d2f47bda50..a4e8f04786835484b772cf1c4c278a1543f4fce0 100644 (file)
--- a/info.json
+++ b/info.json
@@ -1,10 +1,13 @@
 {
     "name": "some-lazybastard",
 {
     "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.",
     "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"
+    ]
 }
 }