mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-07 13:31:40 +02:00
cave update
This commit is contained in:
parent
160ab9e0d0
commit
428c74280c
@ -8,16 +8,16 @@ require "player_list"
|
||||
require "poll"
|
||||
require "score"
|
||||
|
||||
require "maps.tools.cheat_mode"
|
||||
--require "maps.tools.cheat_mode"
|
||||
|
||||
---- enable maps here ----
|
||||
--require "maps.biter_battles"
|
||||
--require "maps.cave_miner"
|
||||
require "maps.cave_miner"
|
||||
--require "maps.deep_jungle"
|
||||
--require "maps.lost_desert"
|
||||
--require "maps.labyrinth"
|
||||
--require "maps.spaghettorio"
|
||||
require "maps.spiral_troopers"
|
||||
--require "maps.spiral_troopers"
|
||||
--require "maps.empty_map"
|
||||
-----------------------------
|
||||
|
||||
|
@ -1104,8 +1104,17 @@ local function on_tick(event)
|
||||
end
|
||||
end
|
||||
|
||||
local function on_marked_for_deconstruction(event)
|
||||
if event.entity.name == "rock-huge" or event.entity.name == "rock-big" or event.entity.name == "sand-rock-big" then
|
||||
local disabled_for_deconstruction = {
|
||||
["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)
|
||||
end
|
||||
end
|
||||
|
@ -1,3 +1,7 @@
|
||||
0.19
|
||||
markets are now also fish bank terminals
|
||||
fish can not be deconstructed anymore
|
||||
|
||||
0.18
|
||||
cargo wagons, tanks and cars can now only detonate with less than 150 health
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
local event = require 'utils.event'
|
||||
require "maps.tools.map_pregen"
|
||||
local map_functions = require "maps.tools.map_functions"
|
||||
require "rewards"
|
||||
--require "rewards"
|
||||
|
||||
local function shuffle(tbl)
|
||||
local size = #tbl
|
||||
|
Loading…
x
Reference in New Issue
Block a user