Skip to content

Commit

Permalink
Journey small fix;
Browse files Browse the repository at this point in the history
  • Loading branch information
hanakocz committed Dec 8, 2024
1 parent cbfd787 commit 02e3fcb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions maps/journey/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ function Public.draw_mothership(journey)
only_in_alt_mode = false
}

for k, item_name in pairs({ 'arithmetic-combinator', 'constant-combinator', 'decider-combinator', 'programmable-speaker', 'small-lamp', 'substation', 'pipe', 'gate', 'stone-wall', 'transport-belt' }) do
for k, item_name in pairs({ 'arithmetic-combinator', 'constant-combinator', 'decider-combinator', 'selector-combinator', 'display-panel', 'programmable-speaker', 'small-lamp', 'substation', 'pipe', 'gate', 'stone-wall', 'transport-belt' }) do
local chest = surface.create_entity({ name = 'infinity-chest', position = { -7 + k, Constants.mothership_radius - 3 }, force = 'player' })
if not chest or not chest.valid then break end
chest.set_infinity_container_filter(1, { name = item_name, count = prototypes.item[item_name].stack_size, index = 1 })
Expand Down Expand Up @@ -905,7 +905,7 @@ function Public.set_world_selectors(journey)
world_selector.modifiers = {}
world_selector.bonus_goods = {}
world_selector.world_trait = unique_world_traits[k]
world_selector.fuel_requirement = Math.random(25, 50)
world_selector.fuel_requirement = Math.random(5, 10)
end
local position = Constants.world_selector_areas[k].left_top
local texts = world_selector.texts
Expand Down
4 changes: 4 additions & 0 deletions maps/journey/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ local function on_rocket_launched(event)
end
rocket_inventory.clear()
rocket_inventory.insert({name = 'space-science-pack', count = 200})
local force = event.rocket.force
force.technologies['space-science-pack'].researched = true
force.print('[technology=space-science-pack] researched.')
force.play_sound({path = 'utility/research_completed'})
Functions.draw_gui(journey)
end

Expand Down
4 changes: 2 additions & 2 deletions maps/journey/unique_modifiers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@ Public.crazy_science = {
on_research_finished = function (event, journey)
local name = 'technology_price_multiplier'
local force = event.research.force
journey.world_specials[name] = math.max(0.1, journey.world_specials[name] * 0.95)
journey.world_specials[name] = math.max(0.1, journey.world_specials[name] * 0.96)
game.difficulty_settings.technology_price_multiplier = journey.world_modifiers[name] * (journey.world_specials[name] or 1)
force.laboratory_productivity_bonus = math.max(0.1, force.laboratory_productivity_bonus * 0.95)
force.laboratory_productivity_bonus = math.max(0.1, force.laboratory_productivity_bonus * 0.96)
end
}

Expand Down

0 comments on commit 02e3fcb

Please sign in to comment.