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

[Core] Add subsidies to dividend step #11202

Merged
merged 4 commits into from
Oct 10, 2024
Merged

[Core] Add subsidies to dividend step #11202

merged 4 commits into from
Oct 10, 2024

Conversation

crericha
Copy link
Collaborator

@crericha crericha commented Sep 10, 2024

Add generic implementation of subsidies in the dividend step.

Previously, games that used subsidies, copy and pasted the subsidy logic into their dividend step. This PR moves that copy and pasted code into the base dividend step. If a game does not have a subsidy, the added logic has no effect.

@crericha
Copy link
Collaborator Author

This PR is not complete yet. Posting main code for feedback before I update affected game code.

@crericha crericha requested a review from roseundy September 10, 2024 05:53
@roseundy
Copy link
Collaborator

If you want to update 60/62 you will probably want to take to a look at app/view/game/run_routes as well.

@crericha
Copy link
Collaborator Author

If you want to update 60/62 you will probably want to take to a look at app/view/game/run_routes as well.

run_routes seemed to work out of the box when routes_subsidy returns a positive number, but I'll double check.

@crericha
Copy link
Collaborator Author

I ran this branch against the entire db of games and no failures were found.

@crericha crericha merged commit f35b8a0 into master Oct 10, 2024
1 check passed
@crericha crericha deleted the subsidy-in-dividend branch October 10, 2024 05:53
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

Successfully merging this pull request may close these issues.

3 participants