From 95770b530d6afdef98df87b175fcc181082fa0c8 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 12 Jun 2021 23:22:31 -0700 Subject: [PATCH] add tungsten sim lua --- tungsten-sim.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tungsten-sim.lua diff --git a/tungsten-sim.lua b/tungsten-sim.lua new file mode 100644 index 0000000..2a2a27f --- /dev/null +++ b/tungsten-sim.lua @@ -0,0 +1,27 @@ + +-- -- For testing only +-- local kept1 = false +-- for name in pairs(data.raw["utility-constants"]["default"].main_menu_simulations) do +-- if kept1 then +-- data.raw["utility-constants"]["default"].main_menu_simulations[name] = nil +-- end +-- kept1 = true +-- end + +if (not mods["bobplates"] and not mods["angelssmelting"]) then +data.raw["utility-constants"]["default"].main_menu_simulations["tungsten-nozzle"] = { + checkboard = false, + save = "__bztungsten__/menu-simulations/tungsten-nozzle-sim.zip", length = 15*60, + init = + [[ + local logo = game.surfaces.nauvis.find_entities_filtered{ + name = "factorio-logo-11tiles", limit = 1}[1] + game.camera_position = {logo.position.x, logo.position.y+8} + game.camera_zoom = 1.5 + game.tick_paused = false + game.surfaces.nauvis.daytime = 1 + ]], + update = [[]] +} +end +