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

Fix Military Drive 2 not for sale & tweaks #5856

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

impaktor
Copy link
Member

@impaktor impaktor commented Jul 5, 2024

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
2024-07-05-154225_812x396_scrot

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.

@impaktor impaktor marked this pull request as ready for review July 5, 2024 14:13
@robothauler
Copy link
Contributor

Regarding point 2, maybe rename it to "Empty" or something else.

@impaktor impaktor changed the title Fix Military Drive 2 not sold & tweak Fix Military Drive 2 not for sale & News Event demand too low Jul 6, 2024
@impaktor impaktor marked this pull request as draft July 6, 2024 22:08
impaktor added 3 commits July 8, 2024 10:47
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.
Removing this since player might be tricked to think this has value,
being some "discovery" of alien origin, sought after by someone.
@impaktor impaktor changed the title Fix Military Drive 2 not for sale & News Event demand too low Fix Military Drive 2 not for sale & tweaks Jul 8, 2024
@impaktor impaktor marked this pull request as ready for review July 8, 2024 08:49
@impaktor
Copy link
Member Author

impaktor commented Jul 8, 2024

OK, I've split off News event / commodity work on a separate branch, as that will be some work beyond "small commits". I consider this ready for review.

Copy link
Member

@sturnclaw sturnclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommodityType already maintains save game compatibility even with removed commodity types, so this should be good to merge.

@sturnclaw sturnclaw merged commit 11927fa into pioneerspacesim:master Jul 9, 2024
@impaktor impaktor deleted the some-tweaks branch July 11, 2024 22:21
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