mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-22 03:38:48 +02:00
explosives addition
This commit is contained in:
parent
fb2ba1d49d
commit
c282923649
@ -5,6 +5,7 @@ local Gui = require "maps.junkyard_pvp.gui"
|
|||||||
require "modules.rocks_heal_over_time"
|
require "modules.rocks_heal_over_time"
|
||||||
require "maps.junkyard_pvp.share_chat"
|
require "maps.junkyard_pvp.share_chat"
|
||||||
require "modules.mineable_wreckage_yields_scrap"
|
require "modules.mineable_wreckage_yields_scrap"
|
||||||
|
require "modules.explosives"
|
||||||
local Team = require "maps.junkyard_pvp.team"
|
local Team = require "maps.junkyard_pvp.team"
|
||||||
local Reset = require "functions.soft_reset"
|
local Reset = require "functions.soft_reset"
|
||||||
local Map = require "modules.map_info"
|
local Map = require "modules.map_info"
|
||||||
@ -38,8 +39,8 @@ function Public.reset_map()
|
|||||||
surface.request_to_generate_chunks({0,0}, 6)
|
surface.request_to_generate_chunks({0,0}, 6)
|
||||||
surface.force_generate_chunk_requests()
|
surface.force_generate_chunk_requests()
|
||||||
game.forces.spectator.set_spawn_position({0, -128}, surface)
|
game.forces.spectator.set_spawn_position({0, -128}, surface)
|
||||||
game.forces.west.set_spawn_position({-96, 0}, surface)
|
game.forces.west.set_spawn_position({-85, 5}, surface)
|
||||||
game.forces.east.set_spawn_position({96, 0}, surface)
|
game.forces.east.set_spawn_position({85, 5}, surface)
|
||||||
|
|
||||||
Team.set_force_attributes()
|
Team.set_force_attributes()
|
||||||
Team.assign_random_force_to_active_players()
|
Team.assign_random_force_to_active_players()
|
||||||
@ -192,10 +193,23 @@ local function on_init()
|
|||||||
"The opponent team wants your fish cargo!\n",
|
"The opponent team wants your fish cargo!\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Destroy their cargo wagon to win the round!\n",
|
"Destroy their cargo wagon to win the round!\n",
|
||||||
|
"\n",
|
||||||
|
"Sometimes you will encounter impassable dark chasms or ponds.\n",
|
||||||
|
"Some explosives may cause parts of the ceiling to crumble, filling the void, creating new ways.\n",
|
||||||
|
"All they need is a container and a well aimed shot.\n",
|
||||||
})
|
})
|
||||||
T.main_caption_color = {r = 150, g = 0, b = 255}
|
T.main_caption_color = {r = 150, g = 0, b = 255}
|
||||||
T.sub_caption_color = {r = 0, g = 250, b = 150}
|
T.sub_caption_color = {r = 0, g = 250, b = 150}
|
||||||
|
|
||||||
|
global.explosion_cells_destructible_tiles = {
|
||||||
|
["out-of-map"] = 1500,
|
||||||
|
["water"] = 1000,
|
||||||
|
["water-green"] = 1000,
|
||||||
|
["deepwater-green"] = 1000,
|
||||||
|
["deepwater"] = 1000,
|
||||||
|
["water-shallow"] = 1000,
|
||||||
|
}
|
||||||
|
|
||||||
Team.create_forces()
|
Team.create_forces()
|
||||||
Public.reset_map()
|
Public.reset_map()
|
||||||
end
|
end
|
||||||
|
@ -19,7 +19,7 @@ local noises = {
|
|||||||
["cave_rivers_4"] = {{modifier = 0.001, weight = 1}, {modifier = 0.01, weight = 0.11}, {modifier = 0.05, weight = 0.01}},
|
["cave_rivers_4"] = {{modifier = 0.001, weight = 1}, {modifier = 0.01, weight = 0.11}, {modifier = 0.05, weight = 0.01}},
|
||||||
["scrapyard"] = {{modifier = 0.005, weight = 1}, {modifier = 0.01, weight = 0.35}, {modifier = 0.05, weight = 0.23}, {modifier = 0.1, weight = 0.11}},
|
["scrapyard"] = {{modifier = 0.005, weight = 1}, {modifier = 0.01, weight = 0.35}, {modifier = 0.05, weight = 0.23}, {modifier = 0.1, weight = 0.11}},
|
||||||
}
|
}
|
||||||
local cargo_wagon_position = {x = 96, y = 0}
|
local cargo_wagon_position = {x = 86, y = 0}
|
||||||
local Public = {}
|
local Public = {}
|
||||||
|
|
||||||
local function get_noise(name, pos, seed)
|
local function get_noise(name, pos, seed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user