1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-05 13:15:03 +02:00

tweaks and fixes

This commit is contained in:
Gerkiz 2020-10-11 10:51:58 +02:00
parent 3f9f710ab7
commit 9d7a0a3060
4 changed files with 9 additions and 5 deletions

View File

@ -10,7 +10,7 @@ map_info_text=This is a harsh world, the heat is unbearable and the sand is shar
[expanse]
map_info_main_caption=-- E x p a n s e --
map_info_sub_caption=
map_info_sub_caption=
map_info_text=The blue chests are hungry.\nFeed them and they will reward you with more land.\n\nThe friendly infini tree will provide you with all the wood you ever wanted.\nThe everlasting rock with be happy to provide resources for you.\n\nIf you find yourself stuck, put a reroll token, the small plane toy, in the chest to get a new offer.\nUnlocking chests may drop additional tokens.
[fish_defender]
@ -295,7 +295,7 @@ angels-ore6=umber
gui_1=First wave in
gui_2=Wave:
gui_3=Threat:
tooltip_1=High threat may empower biters.\nBiter health: __1__%
tooltip_1=High threat may empower biters.\nBiter health: __1__%\nMax active biters: __2__~
tooltip_2=gain / minute
[native_war]

View File

@ -1021,13 +1021,13 @@ local function on_player_joined_game(event)
end
local surface = active_surface
if player.online_time < 2 and surface.is_chunk_generated({0, 0}) then
if player.surface.index ~= surface.index and surface.is_chunk_generated({0, 0}) then
player.teleport(
surface.find_non_colliding_position('character', game.forces['player'].get_spawn_position(surface), 50, 1),
'fish_defender'
)
else
if player.online_time < 2 then
if player.surface.index ~= surface.index then
player.teleport(game.forces['player'].get_spawn_position(surface), 'fish_defender')
end
end

View File

@ -135,6 +135,10 @@ local set_difficulty = function()
wave_defense_table.max_active_biters = 888 + player_count * (90 * Diff.difficulty_vote_value)
if wave_defense_table.max_active_biters >= 1600 then
wave_defense_table.max_active_biters = 1600
end
-- threat gain / wave
wave_defense_table.threat_gain_multiplier = 1.2 + player_count * Diff.difficulty_vote_value * 0.1

View File

@ -79,7 +79,7 @@ local function update_gui(player)
gui.progressbar.value = 1 - (wave_defense_table.next_wave - game.tick) / interval
gui.threat.caption = {'wave_defense.gui_3'}
gui.threat.tooltip = {'wave_defense.tooltip_1', biter_health_boost * 100}
gui.threat.tooltip = {'wave_defense.tooltip_1', biter_health_boost * 100, wave_defense_table.max_active_biters}
gui.threat_value.caption = math.floor(wave_defense_table.threat)
gui.threat_value.tooltip = {'wave_defense.tooltip_1', biter_health_boost * 100}