1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-22 03:38:48 +02:00

explosives addition

This commit is contained in:
MewMew 2019-11-10 00:29:17 +01:00
parent fb2ba1d49d
commit c282923649
2 changed files with 17 additions and 3 deletions

View File

@ -5,6 +5,7 @@ local Gui = require "maps.junkyard_pvp.gui"
require "modules.rocks_heal_over_time"
require "maps.junkyard_pvp.share_chat"
require "modules.mineable_wreckage_yields_scrap"
require "modules.explosives"
local Team = require "maps.junkyard_pvp.team"
local Reset = require "functions.soft_reset"
local Map = require "modules.map_info"
@ -38,8 +39,8 @@ function Public.reset_map()
surface.request_to_generate_chunks({0,0}, 6)
surface.force_generate_chunk_requests()
game.forces.spectator.set_spawn_position({0, -128}, surface)
game.forces.west.set_spawn_position({-96, 0}, surface)
game.forces.east.set_spawn_position({96, 0}, surface)
game.forces.west.set_spawn_position({-85, 5}, surface)
game.forces.east.set_spawn_position({85, 5}, surface)
Team.set_force_attributes()
Team.assign_random_force_to_active_players()
@ -192,10 +193,23 @@ local function on_init()
"The opponent team wants your fish cargo!\n",
"\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.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()
Public.reset_map()
end

View File

@ -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}},
["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 function get_noise(name, pos, seed)