From f10094d57e7190e8d90cdaa5c0dbdd9855e29123 Mon Sep 17 00:00:00 2001
From: danielmartin0 <danielmartin111@gmail.com>
Date: Thu, 2 Jun 2022 17:47:32 +0100
Subject: [PATCH] small rewrite

---
 maps/pirates/balance.lua   | 2 +-
 maps/pirates/overworld.lua | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/maps/pirates/balance.lua b/maps/pirates/balance.lua
index 4ba351ac..c18f6913 100644
--- a/maps/pirates/balance.lua
+++ b/maps/pirates/balance.lua
@@ -342,7 +342,7 @@ function Public.quest_structure_entry_price_scale()
 end
 
 
-function Public.apply_crew_buffs_per_x(force)
+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
 end
 
diff --git a/maps/pirates/overworld.lua b/maps/pirates/overworld.lua
index aa9798fc..cdd27968 100644
--- a/maps/pirates/overworld.lua
+++ b/maps/pirates/overworld.lua
@@ -682,8 +682,9 @@ function Public.try_overworld_move_v2(vector) --islands stay, crowsnest moves
 			-- other freebies:
 			for i=1,vector.x do
 				Common.give_items_to_crew(Balance.periodic_free_resources_per_x())
-				Balance.apply_crew_buffs_per_x(memory.force)
 			end
+			
+			Balance.apply_crew_buffs_at_x(memory.force)
 
 			-- 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)