1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00
ComfyFactorio/maps/journey/constants.lua

184 lines
6.4 KiB
Lua
Raw Normal View History

2021-05-09 15:47:39 +02:00
--luacheck: ignore
local Public = {}
Public.mothership_teleporter_position = {x = 0, y = 12}
2021-05-09 19:09:48 +02:00
Public.teleporter_tile = "lab-dark-2"
2021-05-09 15:47:39 +02:00
Public.mothership_radius = 48
2021-05-09 15:47:39 +02:00
Public.particle_spawn_vectors = {}
for x = Public.mothership_radius * -1 - 32, Public.mothership_radius + 32, 1 do
for y = Public.mothership_radius * -1 - 64, Public.mothership_radius + 32, 1 do
2021-05-09 15:47:39 +02:00
local position = {x = x, y = y}
local distance = math.sqrt(position.x ^ 2 + position.y ^ 2)
if distance > Public.mothership_radius then
table.insert(Public.particle_spawn_vectors, {position.x, position.y})
end
end
end
Public.size_of_particle_spawn_vectors = #Public.particle_spawn_vectors
Public.world_selector_width = 6
Public.world_selector_height = 8
local area = {
left_top = {x = -3, y = math.floor(Public.mothership_radius * 0.5) * -1},
right_bottom = {x = 3, y = math.floor(Public.mothership_radius * 0.5) * -1 + Public.world_selector_height},
}
Public.world_selector_areas = {
[1] = {
left_top = {x = area.left_top.x - 14, y = area.left_top.y},
right_bottom = {x = area.left_top.x - 8, y = area.right_bottom.y},
2021-05-09 15:47:39 +02:00
},
[2] = area,
[3] = {
left_top = {x = area.right_bottom.x + 8, y = area.left_top.y},
right_bottom = {x = area.right_bottom.x + 14, y = area.right_bottom.y},
2021-05-09 15:47:39 +02:00
},
}
Public.world_selector_colors = {
[1] = {r = 200, g = 200, b = 0, a = 255},
[2] = {r = 150, g = 150, b = 255, a = 255},
[3] = {r = 200, g = 100, b = 100, a = 255},
}
Public.reroll_selector_area_color = {r = 220, g = 220, b = 220, a = 255}
Public.reroll_selector_area = {
left_top = {x = -4, y = math.floor(Public.mothership_radius - 6) * -1},
right_bottom = {x = 4, y = math.floor(Public.mothership_radius - 6) * -1 + 5},
}
2021-05-09 15:47:39 +02:00
Public.mothership_messages = {
waiting = {
"Return to me, so we can continue the journey!",
"Don't leave me waiting for so long. Let's continue our journey.",
"Please return to me.",
"Board me, so we can continue this adventure!",
},
}
Public.mothership_gen_settings = {
["water"] = 0,
["starting_area"] = 1,
["cliff_settings"] = {cliff_elevation_interval = 0, cliff_elevation_0 = 0},
["default_enable_all_autoplace_controls"] = false,
["autoplace_settings"] = {
["entity"] = {treat_missing_as_default = false},
["tile"] = {treat_missing_as_default = false},
["decorative"] = {treat_missing_as_default = false},
},
autoplace_controls = {
["coal"] = {frequency = 0, size = 0, richness = 0},
["stone"] = {frequency = 0, size = 0, richness = 0},
["copper-ore"] = {frequency = 0, size = 0, richness = 0},
["iron-ore"] = {frequency = 0, size = 0, richness = 0},
["uranium-ore"] = {frequency = 0, size = 0, richness = 0},
["crude-oil"] = {frequency = 0, size = 0, richness = 0},
["trees"] = {frequency = 0, size = 0, richness = 0},
["enemy-base"] = {frequency = 0, size = 0, richness = 0}
},
}
Public.modifiers = {
["trees"] = {-20, -10, "Trees"},
["tree_durability"] = {-30, -15, "Tree Durability"},
["cliff_settings"] = {20, 40, "Cliffs"},
["water"] = {-20, -10, "Water"},
2021-05-09 15:47:39 +02:00
["coal"] = {-20, -10, "Coal"},
["stone"] = {-20, -10, "Stone"},
["iron-ore"] = {-20, -10, "Iron Ore"},
["copper-ore"] = {-20, -10, "Copper Ore"},
2021-05-09 15:47:39 +02:00
["crude-oil"] = {-20, -10, "Oil"},
["uranium-ore"] = {-20, -10, "Uranium Ore"},
["mixed_ore"] = {-20, -10, "Mixed Ore"},
["enemy-base"] = {10, 20, "Nests"},
["expansion_cooldown"] = {-30, -15, "Nest Expansion Cooldown"},
["enemy_attack_pollution_consumption_modifier"] = {-20, -10, "Nest Pollution Consumption"},
["max_unit_group_size"] = {15, 30, "Biter Group Size Maximum"},
["time_factor"] = {15, 30, "Evolution Time Factor"},
["destroy_factor"] = {15, 30, "Evolution Destroy Factor"},
["pollution_factor"] = {15, 30, "Evolution Pollution Factor"},
["ageing"] = {-20, -10, "Terrain Pollution Consumption"},
["diffusion_ratio"] = {10, 20, "Pollution Diffusion"},
["technology_price_multiplier"] = {10, 20, "Technology Price"},
2021-05-09 15:47:39 +02:00
}
Public.starter_goods_pool = {
{"accumulator", 8, 16},
{"big-electric-pole", 8, 16},
{"burner-inserter", 64, 128},
{"burner-mining-drill", 8, 16},
{"car", 2, 4},
{"copper-cable", 128, 256},
{"copper-plate", 64, 128},
{"electric-furnace", 4, 8},
{"electric-mining-drill", 4, 8},
{"firearm-magazine", 64, 128},
{"grenade", 8, 16},
{"gun-turret", 4, 8},
{"inserter", 32, 64},
{"iron-gear-wheel", 64, 128},
{"iron-plate", 64, 128},
{"lab", 2, 4},
{"long-handed-inserter", 32, 64},
{"medium-electric-pole", 16, 32},
{"pipe", 128, 256},
{"radar", 4, 8},
{"small-lamp", 64, 128},
{"solar-panel", 8, 16},
{"solid-fuel", 256, 512},
{"stack-inserter", 16, 32},
{"stack-filter-inserter", 16, 32},
{"steam-turbine", 4, 8},
{"steel-chest", 16, 32},
{"steel-furnace", 8, 16},
{"steel-plate", 32, 64},
{"stone-wall", 128, 256},
{"substation", 4, 8},
2021-05-09 19:09:48 +02:00
{"green-wire", 256, 512},
{"red-wire", 256, 512},
2021-05-09 15:47:39 +02:00
}
Public.build_type_whitelist = {
["arithmetic-combinator"] = true,
["constant-combinator"] = true,
["decider-combinator"] = true,
["electric-energy-interface"] = true,
["electric-pole"] = true,
["gate"] = true,
["heat-pipe"] = true,
["lamp"] = true,
["pipe"] = true,
["pipe-to-ground"] = true,
["programmable-speaker"] = true,
["transport-belt"] = true,
["wall"] = true,
}
Public.unique_world_traits = {
["lush"] = {"Lush", "Pure Vanilla."},
["eternal_night"] = {"Eternal Night", "This world seems to be missing a sun."},
["dense_atmosphere"] = {"Dense Atmosphere", "Your roboport structures seem to malfunction."},
["pitch_black"] = {"Pitch Black", "No light may reach this realm."},
["volcanic"] = {"Volcanic", "The floor is (almost) lava."},
["matter_anomaly"] = {"Matter Anomaly", "Why can't i hold all these ores."},
["mountainous"] = {"Mountainous", "Diggy diggy hole!"},
["quantum_anomaly"] = {"Quantum Anomaly", "Research complete."},
["replicant_fauna"] = {"Replicant Fauna", "The biters feed on your structures."},
["tarball"] = {"Tarball", "Door stuck, Door stuck..."},
["swamps"] = {"Swamps", "No deep water to be found in this world."},
["chaotic_resources"] = {"Chaotic Resources", "Something to sort out."},
["infested"] = {"Infested", "They lurk inside."},
["low_mass"] = {"Low Mass", "You feel light footed and the robots are buzzing."},
["eternal_day"] = {"Eternal Day", "The sun never moves."},
["undead_plague"] = {"Undead Plague", "The dead are restless."},
--[[
]]
--["wasteland"] = {"Wasteland", "Smells like sulfur."},
--["wetlands"] = {"Wetlands", "Many rivers and many fish."},
}
2021-05-09 15:47:39 +02:00
return Public