1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-07 13:31:40 +02:00

cave update

This commit is contained in:
MewMew 2018-11-02 01:05:35 +01:00
parent 160ab9e0d0
commit 428c74280c
4 changed files with 19 additions and 6 deletions

View File

@ -8,16 +8,16 @@ require "player_list"
require "poll" require "poll"
require "score" require "score"
require "maps.tools.cheat_mode" --require "maps.tools.cheat_mode"
---- enable maps here ---- ---- enable maps here ----
--require "maps.biter_battles" --require "maps.biter_battles"
--require "maps.cave_miner" require "maps.cave_miner"
--require "maps.deep_jungle" --require "maps.deep_jungle"
--require "maps.lost_desert" --require "maps.lost_desert"
--require "maps.labyrinth" --require "maps.labyrinth"
--require "maps.spaghettorio" --require "maps.spaghettorio"
require "maps.spiral_troopers" --require "maps.spiral_troopers"
--require "maps.empty_map" --require "maps.empty_map"
----------------------------- -----------------------------

View File

@ -1104,8 +1104,17 @@ local function on_tick(event)
end end
end end
local function on_marked_for_deconstruction(event) local disabled_for_deconstruction = {
if event.entity.name == "rock-huge" or event.entity.name == "rock-big" or event.entity.name == "sand-rock-big" then ["fish"] = true,
["rock-huge"] = true,
["rock-big"] = true,
["sand-rock-big"] = true,
["tree-02"] = true,
["tree-04"] = true
}
local function on_marked_for_deconstruction(event)
if disabled_for_deconstruction[event.entity.name] then
event.entity.cancel_deconstruction(game.players[event.player_index].force.name) event.entity.cancel_deconstruction(game.players[event.player_index].force.name)
end end
end end

View File

@ -1,3 +1,7 @@
0.19
markets are now also fish bank terminals
fish can not be deconstructed anymore
0.18 0.18
cargo wagons, tanks and cars can now only detonate with less than 150 health cargo wagons, tanks and cars can now only detonate with less than 150 health

View File

@ -3,7 +3,7 @@
local event = require 'utils.event' local event = require 'utils.event'
require "maps.tools.map_pregen" require "maps.tools.map_pregen"
local map_functions = require "maps.tools.map_functions" local map_functions = require "maps.tools.map_functions"
require "rewards" --require "rewards"
local function shuffle(tbl) local function shuffle(tbl)
local size = #tbl local size = #tbl