Fix Military Drive 2 not for sale & tweaks #5856
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains multitides:
1. Fix a bug
Class 2 military drives require "MILITARY" tech level, which under the hood is interpreted as tech-level 11 (because that's how Frontier implemented it). Higher military drives are available at higher tech levels. Code had a bug where in stations of higher tech level than "MILITARY", you could only buy military drive of class 1, 3, and 4, but not military drive class 2.
I note there's equipment that has "tech level = 11" set, that is technically the same as tech level "Military". Seems to be the way I did it in #3505, so looks intentional, but not sure what the reasoning was.
I saw the bug when watching the "Pioneer - Frequently Failing" play through of the game (last screenshot from Poseidon in orbit around Neptune, level 12 station):
![mpv-shot0001](https://private-user-images.githubusercontent.com/619390/346147079-2c8a32e3-5541-4cf2-9913-f3dcce16f581.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MzIxMjMsIm5iZiI6MTczOTczMTgyMywicGF0aCI6Ii82MTkzOTAvMzQ2MTQ3MDc5LTJjOGEzMmUzLTU1NDEtNGNmMi05OTEzLWYzZGNjZTE2ZjU4MS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQxODUwMjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NmVjYTRkMjE3MDc2MTUyODc3YTY1Njg1NDk2YmQ1MzA5MGI0Mzk5YTYyNjY5ODQwYzJhMmM2M2Q4ODJlMzI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zJX3YtYklvTS7NjOoayWktADQcEX3C_RuWuSKA59xwo)
![2024-07-05-154225_812x396_scrot](https://private-user-images.githubusercontent.com/619390/346147223-5c8ebc5d-0f1d-4465-8143-9a51ef9b66cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MzIxMjMsIm5iZiI6MTczOTczMTgyMywicGF0aCI6Ii82MTkzOTAvMzQ2MTQ3MjIzLTVjOGViYzVkLTBmMWQtNDQ2NS04MTQzLTlhNTFlZjliNjZjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQxODUwMjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMjE2YWI4NTkxN2YxNGE2NmQwNWE2MGI1YWEzZDJlNTgyYjgwMzEwOGU5ZDc1OTUwZDQ0ZmU0MzY5ZmQ2N2YxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.AS9Dl2nTQ6nnpS0S3zIl-pbaOma-wG4jgPXiAjkjDxE)
2. Tweak suggestion
Don't generate "Unknown commodity" to scoop - Removing this since player might be tricked to think this has value, being some "discovery" of alien origin, sought after by someone.