8000 Fixes issue where training ammo was affected by the parts cost multiplier by pheonixstorm · Pull Request #3486 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixes issue where training ammo was affected by the parts cost multiplier #3486

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

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

pheonixstorm
Copy link
Collaborator

This bug was caused by the PR adding code for Joda Money. I did find another bug when calculating the cost of SRM 6 ammo but I do not know the cause or reason. It uses getStickerPrice() as does other parts of the HQ code, but only in this instance (and when using the replaced function) SRM6 ammo costs 28,929 instead of the typical 27,000. It does not affect other SRM ammo and those show up correctly.

@codecov
Copy link
codecov bot commented Oct 27, 2022

Codecov Report

Base: 10.95% // Head: 10.95% // No change to project coverage 👍

Coverage data is based on head (6a6ddc4) compared to base (bec4ef7).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3486   +/-   ##
=========================================
  Coverage     10.95%   10.95%           
  Complexity     5477     5477           
=========================================
  Files           827      827           
  Lines        113147   113147           
  Branches      17111    17111           
=========================================
  Hits          12395    12395           
  Misses        99537    99537           
  Partials       1215     1215           
Impacted Files Coverage Δ
MekHQ/src/mekhq/campaign/unit/Unit.java 17.97% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@NickAragua NickAragua merged commit 6013773 into MegaMek:master Nov 3, 2022
@pheonixstorm pheonixstorm deleted the BUG-PTOC-AmmoCost branch November 4, 2022 02:38
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.

2 participants
0