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:
parent
afc155da13
commit
b817512a43
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user