1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-06 00:23:49 +02:00
This commit is contained in:
MewMew 2020-04-06 19:28:39 +02:00
parent 8e507a8984
commit 02577c9886
4 changed files with 8 additions and 8 deletions

View File

@ -150,7 +150,7 @@ end
function Public.get_room(surface, position)
local room_sizes = {}
for i = 1, 11, 1 do
for i = 1, 13, 1 do
room_sizes[i] = i + 1
end
table_shuffle_table(room_sizes)

View File

@ -55,7 +55,7 @@ boss_message=Boss Wave __1__ - - __2__
[dungeons]
map_info_main_caption=D U N G E O N S
map_info_sub_caption= ~wizards and warriors~
map_info_text=You are in a dungeon.\nYou put your robe and wizard hat on.\nYou are still in a dungeon.\n\nExpand into the depths for greater treasures, but also face increased dangers.\nSpawners will increase in tiers, making biters more chonky.\nDungeon resource amount and loot quality will increase with depth.\n\nImpassable walls may be destroyed with explosives, making way for rails and logistics.\nTo trigger them, all that is needed is a container and a well aimed shot.\nBe careful, not to use too many at once. Chains explosions, using many chests may proof more efficient.
map_info_text=You are in a dungeon.\nYou put your robe and wizard hat on.\nYou are still in a dungeon.\n\nExpand into the depths for greater treasures, but also face increased dangers.\nSpawners will increase in tiers, making biters more chonky.\nDungeon resource amount and loot quality will increase with depth.
[mountain_fortress]
map_info_main_caption=M O U N T A I N F O R T R E S S

View File

@ -66,7 +66,12 @@ end
function Public.spawn_random_biter(surface, position)
local name = BiterRaffle.roll("mixed", global.dungeons.depth * 0.001)
local unit = surface.create_entity({name = name, position = position, force = "enemy"})
local non_colliding_position = surface.find_non_colliding_position(name, position, 16, 1)
if non_colliding_position then
local unit = surface.create_entity({name = name, position = non_colliding_position, force = "enemy"})
else
local unit = surface.create_entity({name = name, position = position, force = "enemy"})
end
end
return Public

View File

@ -2,7 +2,6 @@
require "modules.mineable_wreckage_yields_scrap"
require "modules.biters_yield_ore"
require "modules.explosives"
local MapInfo = require "modules.map_info"
local Room_generator = require "functions.room_generator"
@ -243,10 +242,6 @@ local function on_init()
global.rocks_yield_ore_base_amount = 50
global.rocks_yield_ore_distance_modifier = 0.001
global.explosion_cells_destructible_tiles = {
["out-of-map"] = 2500,
}
local T = MapInfo.Pop_info()
T.localised_category = "dungeons"
T.main_caption_color = {r = 0, g = 0, b = 0}