From e9dc451f6f3b5761b8f166f23bc6aac4183fad80 Mon Sep 17 00:00:00 2001 From: MewMew Date: Mon, 4 Nov 2019 00:20:52 +0100 Subject: [PATCH] half research cost / fixes --- maps/biter_hatchery/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maps/biter_hatchery/main.lua b/maps/biter_hatchery/main.lua index cae97ce6..c5984dfe 100644 --- a/maps/biter_hatchery/main.lua +++ b/maps/biter_hatchery/main.lua @@ -41,7 +41,7 @@ end local function assign_force_to_all_players() local player_indexes = {} - for _, p in pairs(game.players) do player_indexes[#player_indexes + 1] = p.index end + for _, p in pairs(game.connected_players) do player_indexes[#player_indexes + 1] = p.index end table.shuffle_table(player_indexes) for key, player_index in pairs(player_indexes) do if key % 2 == 1 then @@ -328,6 +328,7 @@ local function on_entity_damaged(event) end local function on_init() + game.difficulty_settings.technology_price_multiplier = 0.5 game.map_settings.enemy_evolution.destroy_factor = 0 game.map_settings.enemy_evolution.pollution_factor = 0 game.map_settings.enemy_evolution.time_factor = 0