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

lab productivity fix

This commit is contained in:
danielmartin0 2022-06-02 17:55:56 +01:00
parent afc155da13
commit b817512a43
2 changed files with 3 additions and 3 deletions

View File

@ -342,8 +342,8 @@ function Public.quest_structure_entry_price_scale()
end
function Public.apply_crew_buffs_at_x(force)
force.laboratory_productivity_bonus = Math.max(0, 7/100 * (Common.overworldx()/40) - (10*(Common.difficulty_scale()) - 5)) --difficulty causes lab productivity boosts to start later
function Public.apply_crew_buffs_per_league(force, leagues_travelled)
force.laboratory_productivity_bonus = force.laboratory_productivity_bonus + Math.max(0, 6/100 * leagues_travelled/40)
end
function Public.class_cost(at_dock)

View File

@ -684,7 +684,7 @@ function Public.try_overworld_move_v2(vector) --islands stay, crowsnest moves
Common.give_items_to_crew(Balance.periodic_free_resources_per_x())
end
Balance.apply_crew_buffs_at_x(memory.force)
Balance.apply_crew_buffs_per_league(memory.force, vector.x)
-- add some evo: (this will get reset upon arriving at a destination anyway, so this is just relevant for sea monsters and the like:)
local extra_evo = Balance.base_evolution_leagues(memory.overworldx) - Balance.base_evolution_leagues(memory.overworldx - vector.x)