1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-10-30 23:47:41 +02:00

Mtn v3 - minor changes

This commit is contained in:
Gerkiz
2023-10-21 10:17:52 +02:00
parent c8fe00f275
commit 8425443785
3 changed files with 9 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ angels-ore6=umber
gui_1=First wave in
gui_2=Wave:
gui_3=Threat:
gui_4=Paused for:
gui_4=Biters wakes up in:
tooltip_1=High threat may empower biters.\nBiter health: __1__%\nMax active biters: __2__~
tooltip_2=gain / minute

View File

@@ -775,7 +775,7 @@ function Public.reset_stateful(refresh_gui, clear_buffs)
randomized_wave = random(scale(180, 1000), scale(200, 1000)),
supplies = get_random_items(),
single_item = get_random_item(),
killed_enemies = random(scale(80000, 10000000), scale(100000, 10000000)),
killed_enemies = random(scale(20000, 80000), scale(40000, 80000)),
research_level_selection = get_random_research_recipe(),
locomotive_market_coins_spent = {
spent = 0,

View File

@@ -25,14 +25,14 @@ end
function Public.apply_tiles(tiles)
if tiles and next(tiles) then
local surface = game.get_surface('nauvis')
local surface = game.get_surface(this.map_name)
surface.set_tiles(tiles, true)
end
end
function Public.apply_entities(entities)
if entities and next(entities) then
local surface = game.get_surface('nauvis')
local surface = game.get_surface(this.map_name)
for _, e in ipairs(entities) do
if e then
surface.create_entity(e)
@@ -43,11 +43,15 @@ end
function Public.apply_decoratives(decoratives)
if decoratives and next(decoratives) then
local surface = game.get_surface('nauvis')
local surface = game.get_surface(this.map_name)
surface.create_decoratives({check_collision = true, decoratives = decoratives})
end
end
function Public.apply_map_name(map_name)
this.map_name = map_name or nil
end
Event.add(
defines.events.on_chunk_generated,
function(event)