1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-25 21:29:06 +02:00

Merge pull request #368 from ComfyFactory/small_tweaks

Small tweaks
This commit is contained in:
hanakocz 2022-11-24 15:45:02 +01:00 committed by GitHub
commit b461fd76df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 26 deletions

View File

@ -371,7 +371,7 @@ local function init_container(expanse, entity, budget)
local item_stacks = {}
local roll_count = 3
for _ = 1, roll_count, 1 do
for _, stack in pairs(Price_raffle.roll(math.floor(cell_value / roll_count), 3, nil, cell_value / (roll_count * 6))) do
for _, stack in pairs(Price_raffle.roll(math.floor(cell_value / roll_count), 3, nil, math.max(4, cell_value / (roll_count * 6)))) do
if not item_stacks[stack.name] then
item_stacks[stack.name] = stack.count
else

View File

@ -66,7 +66,7 @@ local function set_nauvis()
}
map_gen_settings.water = 0.25
map_gen_settings.terrain_segmentation = 12
map_gen_settings.starting_area = 0.05
map_gen_settings.starting_area = 0.08
surface.map_gen_settings = map_gen_settings
for chunk in surface.get_chunks() do
surface.delete_chunk({chunk.x, chunk.y})
@ -382,7 +382,9 @@ local function on_init()
game.map_settings.enemy_expansion.min_expansion_cooldown = 1800
game.map_settings.enemy_expansion.settler_group_max_size = 8
game.map_settings.enemy_expansion.settler_group_min_size = 16
game.map_settings.enemy_evolution.destroy_factor = 0.005
game.map_settings.enemy_evolution.destroy_factor = 0.003 --default game: 0.002
game.map_settings.enemy_evolution.pollution_factor = 6e-07 --default game: 9e-07
game.map_settings.enemy_evolution.time_factor = 2e-06 --default game: 4e-06
--Settings for cave miner
--[[

View File

@ -2864,8 +2864,8 @@ local unique_rooms = {
{position = {x = 18.5, y = 3.5}, name = 'wall-remnants', direction = 0, force = 'neutral'},
{position = {x = 18.5, y = 3.5}, name = 'wall-remnants', direction = 0, force = 'neutral'},
{position = {x = 19.5, y = 3.5}, name = 'wall-remnants', direction = 0, force = 'neutral'},
{position = {x = 1.5, y = 5.5}, name = 'small-cliff', direction = 0, force = 'neutral'},
{position = {x = 3.5, y = 5.5}, name = 'small-cliff', direction = 0, force = 'neutral'},
{position = {x = 1.5, y = 5.5}, name = 'stone-wall', direction = 0, force = 'enemy'},
{position = {x = 3.5, y = 5.5}, name = 'stone-wall', direction = 0, force = 'enemy'},
{position = {x = 5.5, y = 5.5}, name = 'wall-remnants', direction = 0, force = 'neutral'},
{position = {x = 6.5, y = 4.5}, name = 'wall-remnants', direction = 0, force = 'neutral'},
{position = {x = 7.5, y = 4.5}, name = 'stone-wall', direction = 0, force = 'enemy'},
@ -2947,21 +2947,6 @@ local unique_rooms = {
{position = {x = 6.1328125, y = 18.0546875}, name = 'small-scorchmark', direction = 0, force = 'neutral'},
{position = {x = 4.5, y = 16.5}, name = 'heat-pipe', direction = 0, force = 'enemy'},
{position = {x = 8.5, y = 18.5}, name = 'big-ship-wreck-2', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 16, y = 16}, name = 'acid-splash-purple', direction = 0, force = 'neutral'},
{position = {x = 22, y = 18.5}, name = 'spitter-spawner', direction = 0, force = 'enemy'},
{position = {x = 28, y = 18}, name = 'curved-rail-remnants', direction = 6, force = 'neutral'},
{position = {x = 3.046875, y = 21.29296875}, name = 'small-scorchmark', direction = 0, force = 'neutral'},

View File

@ -200,11 +200,11 @@ local function get_coords(group, source_player)
local y = tonumber(source_player.gui.screen['biter_panel']['coords']['coord_y'].text)
if x == nil or x == 'nil' then
x = group.position.x
source_player.gui.screen['biter_panel']['coords']['coord_x'].text = group.position.x
source_player.gui.screen['biter_panel']['coords']['coord_x'].text = tostring(group.position.x)
end
if y == nil or y == 'nil' then
y = group.position.y
source_player.gui.screen['biter_panel']['coords']['coord_y'].text = group.position.y
source_player.gui.screen['biter_panel']['coords']['coord_y'].text = tostring(group.position.y)
end
position = {x = x, y = y}
end
@ -366,8 +366,8 @@ local function set_directions(changedx, changedy, source_player)
end
x = x + changedx
y = y + changedy
source_player.gui.screen['biter_panel']['coords']['coord_x'].text = x
source_player.gui.screen['biter_panel']['coords']['coord_y'].text = y
source_player.gui.screen['biter_panel']['coords']['coord_x'].text = tostring(x)
source_player.gui.screen['biter_panel']['coords']['coord_y'].text = tostring(y)
end
end
@ -405,8 +405,8 @@ end
local function center(group, source_player)
if source_player.gui.screen['biter_panel'] then
source_player.gui.screen['biter_panel']['coords']['coord_x'].text = group.position.x
source_player.gui.screen['biter_panel']['coords']['coord_y'].text = group.position.y
source_player.gui.screen['biter_panel']['coords']['coord_x'].text = tostring(group.position.x)
source_player.gui.screen['biter_panel']['coords']['coord_y'].text = tostring(group.position.y)
end
end