Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatible with Contract Boost? #1

Open
ADigitalFarmer opened this issue Dec 14, 2024 · 3 comments
Open

Compatible with Contract Boost? #1

ADigitalFarmer opened this issue Dec 14, 2024 · 3 comments

Comments

@ADigitalFarmer
Copy link

Just wondering if this will work in conjunction with the Contract Boost mod on ModHub?

Contract Boost increases incentive for contract but also allows player to:

  • Collect straw on harvest missions.
  • Collect grass in mowing missions.
  • Collect stones from plow/cultivating missions.
  • Use the swather for harvest missions.

Modhub: Contract Boost

Just asking.

@loki79uk
Copy link
Owner

loki79uk commented Dec 14, 2024

I don't know, try it and let me know. It depends how they coded the other mod, but TipAnywhere just takes the existing isAccessible value and only changes it to true, so would never block access, only grant it.

MissionManager.getIsMissionWorkAllowed = Utils.overwrittenFunction(MissionManager.getIsMissionWorkAllowed,
function(self, superFunc, farmId, x, z, workAreaType)

	local isAccessible = superFunc(self, farmId, x, z, workAreaType)

	local mission = self:getMissionAtWorldPosition(x, z)
	if mission ~= nil and mission.farmId == farmId then
		local workAreaName = g_workAreaTypeManager:getWorkAreaTypeNameByIndex(workAreaType)
		if TipAnywhere.workAreas[workAreaName] then
			isAccessible = true
		end
	end
	
	return isAccessible
end)

@ADigitalFarmer
Copy link
Author

I will give it a go. Thanks.

@ADigitalFarmer
Copy link
Author

Tested TipAnywhere with Contract Boost on a grass field. Everything (baling, tedding, windrowing) worked great.

Contract Boost does not allow tedding or windrowing on missions. Having this ability with TipAnywhere in conjunction with Contract Boost is a great addition.

I will test the Harvest Missions next with the MacDon pack. Both the swathing and threshing. I will also test the straw pickup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants