--- /dev/null
+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.
--- /dev/null
+---------------------------------------------------------------------------------------------------
+Version: 1.0.0
+Date: 2024-01-06
+
+ Changed:
+ - Let the spaceship wreck be useful as a tiny infinite power source.
--- /dev/null
+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
+ }
+})
--- /dev/null
+{
+ "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"
+ ]
+}