diff --git a/map_gen/maps/crash_site/commands.lua b/map_gen/maps/crash_site/commands.lua index b3cbb2e59..14337598d 100644 --- a/map_gen/maps/crash_site/commands.lua +++ b/map_gen/maps/crash_site/commands.lua @@ -415,8 +415,8 @@ function Public.control(config) end local radius = 5 + (radius_level * 3) - local count = (count_level - 2) * 5 + 3 - local strikeCost = count * 4 -- the number of poison-capsules required in the chest as payment + local count = (count_level - 2) * 10 + 3 + local strikeCost = count * 2 -- the number of poison-capsules required in the chest as payment -- parse GPS coordinates from map ping for m in string.gmatch(location_string, "(%-?%d*%.?%d+)") do -- Assuming the surface name isn't a valid number. @@ -508,8 +508,8 @@ function Public.control(config) end local radius = 25 + (radius_level * 5) - local count = (count_level-1) * 6 - local strikeCost = count * 4 + local count = (count_level-1) * 12 + local strikeCost = count * 2 -- parse GPS coordinates from map ping for m in string.gmatch(location_string, "(%-?%d*%.?%d+)") do -- Assuming the surface name isn't a valid number. @@ -602,8 +602,8 @@ function Public.control(config) local radius_level = airstrike_data.radius_level -- max radius of the strike area local count_level = airstrike_data.count_level -- the number of poison capsules launched at the enemy local radius = 5 + (radius_level * 3) - local count = (count_level - 1) * 5 + 3 - local strikeCost = count * 4 + local count = (count_level - 1) * 10 + 3 + local strikeCost = count * 2 local name = item.name local player_name = event.player.name @@ -661,8 +661,8 @@ function Public.control(config) local radius_level = barrage_data.radius_level -- max radius of the strike area local count_level = barrage_data.count_level -- the number of poison capsules launched at the enemy local radius = 25 + (radius_level * 5) - local count = count_level * 6 - local strikeCost = count * 4 + local count = count_level * 12 + local strikeCost = count * 2 local name = item.name local player_name = event.player.name diff --git a/map_gen/maps/crash_site/events.lua b/map_gen/maps/crash_site/events.lua index 086259c9d..4d351f934 100644 --- a/map_gen/maps/crash_site/events.lua +++ b/map_gen/maps/crash_site/events.lua @@ -573,4 +573,11 @@ Event.add( local player = game.get_player(event.player_index) set_timeout_in_ticks(1, spawn_player, player) end -) \ No newline at end of file +) + +Event.add(defines.events.on_research_finished, function(event) + local research = event.research + if research.name == 'uranium-mining' then + research.force.technologies['uranium-processing'].researched = true + end +end) \ No newline at end of file