You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure the best way to fix this but it appears that the problem is AmmoType::equals only considers ammo equal if the type and rack size match. The methods leading to the check are correctly using the 'Use ammo by type' campaign option but the different rack sizes are never considered equal so the ammo from a different rack is not acceptable.
This failure happens when AmmoBin::getAmountAvailable calls Campaign::findSparePart where the predicate uses thisType.equals(((AmmoStorage)part).getType()).
Maybe a new special comparison method could be created and used in the predicate to compare the ammo type without the rack size.
Campaign Options > Tech Limits > Use ammo by type (unofficial), ie being able to load an LRM 5 with LRM20 ammo, is not working.
Environment
47.5 has been tested and it's not working. It's not working on 46.0 either
Description
The text was updated successfully, but these errors were encountered: