]> git.somenet.org - factorio/some-spaceship-wreck-generator.git/commitdiff
RELEASE 1.1.0 - initial release with mod hopefully working. master
authorSomeone <someone@somenet.org>
Sat, 6 Jan 2024 11:02:06 +0000 (12:02 +0100)
committerSomeone <someone@somenet.org>
Sat, 6 Jan 2024 11:02:06 +0000 (12:02 +0100)
License.txt [new file with mode: 0644]
changelog.txt [new file with mode: 0644]
data.lua [new file with mode: 0644]
info.json [new file with mode: 0644]
thumbnail.png [new file with mode: 0644]

diff --git a/License.txt b/License.txt
new file mode 100644 (file)
index 0000000..e8a42c3
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2024-2024 Someone <someone@somenet.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/changelog.txt b/changelog.txt
new file mode 100644 (file)
index 0000000..f07f9ee
--- /dev/null
@@ -0,0 +1,6 @@
+---------------------------------------------------------------------------------------------------
+Version: 1.0.0
+Date: 2024-01-06
+
+  Changed:
+    - Let the spaceship wreck be useful as a tiny infinite power source.
diff --git a/data.lua b/data.lua
new file mode 100644 (file)
index 0000000..8e45bf9
--- /dev/null
+++ b/data.lua
@@ -0,0 +1,50 @@
+local oldship = data.raw["container"]["crash-site-spaceship"]
+data.raw["container"]["crash-site-spaceship"] = Nil
+
+data:extend(
+{
+  {
+    type = "electric-energy-interface",
+    name = "crash-site-spaceship",
+    icon = "__base__/graphics/icons/crash-site-spaceship.png",
+    icon_size = 64, icon_mipmaps = 4,
+    flags = {
+      "placeable-player",
+      "player-creation",
+      "hidden",
+      "not-rotatable",
+      "placeable-off-grid",
+      "not-blueprintable",
+      "not-deconstructable"
+    },
+    map_color = {r = 0, g = 0.365, b = 0.58, a = 1},
+    max_health = 600,
+    alert_when_damaged = true,
+    allow_copy_paste = false,
+    resistances =
+    {
+      {type = "fire", percent = 100}
+    },
+    gui_mode = "none",
+    energy_source =
+    {
+      type = "electric",
+      buffer_capacity = "1MJ",
+      usage_priority = "primary-output"
+    },
+    energy_production = "150kW",
+    energy_usage = "0kW",
+    enable_inventory_bar = false,
+    minable =
+    {
+      mining_time = 2.3
+    },
+    collision_box = {{-8.7, -3.3}, {6.9, 4.5}},
+    selection_box = {{-8.7, -3.3}, {6.9, 4.5}},
+    dying_explosion = "nuke-explosion",
+    integration_patch_render_layer = "decals",
+    integration_patch = oldship.integration_patch,
+    picture = oldship.picture,
+    vehicle_impact_sound = oldship.vehicle_impact_sound
+  }
+})
diff --git a/info.json b/info.json
new file mode 100644 (file)
index 0000000..b853887
--- /dev/null
+++ b/info.json
@@ -0,0 +1,12 @@
+{
+    "name": "some-spaceship-wreck-generator",
+    "version": "1.1.0",
+    "title": "Spaceship APU survived the crash",
+    "author": "someone1337",
+    "homepage": "https://git.somenet.org/factorio/some-spaceship-wreck-generator.git",
+    "description": "The spaceship is wrecked, but thankfully the Auxiliary Power Unit is still working and can be used as a tiny infinite power source generator.",
+    "factorio_version": "1.1",
+    "dependencies": [
+        "base>=1.1.0"
+    ]
+}
diff --git a/thumbnail.png b/thumbnail.png
new file mode 100644 (file)
index 0000000..da1316b
Binary files /dev/null and b/thumbnail.png differ