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

Fixed & Optimized Total Profits Calculation & Removed Exemptions #4306

Merged
merged 4 commits into from
Jun 27, 2024

Conversation

IllianiCBT
Copy link
Collaborator

This PR addresses and optimizes a calculation error in the profits method. Previously, profits were incorrectly failing to discount Starting Capital and Financial Term End Carry Over, resulting in higher-than-intended taxes and Shares payouts. While fixing this, I also optimized the calculation to better handle large volumes of financial transactions.

Additionally, following a conversation with Nick about Campaign Options (see #4281), I removed the two tax exemption campaign options. The reasoning is that users who want their campaign to be exempt from taxes can simply choose not to enable taxes.

@IllianiCBT IllianiCBT self-assigned this Jun 27, 2024
@IllianiCBT IllianiCBT merged commit a9da3b8 into MegaMek:master Jun 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants