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 tech level display and availability. #6062

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pghvlaans
Copy link
Contributor

fix #6039
RE #6046

This PR addresses two related issues:

  • The MILITARY tech level causes a GUI crash in renderCompareRow() in equipment-outfitter.lua because it assumes a numeric value.
    • Fix: If the tech level is MILITARY, in renderCompareRow(), skip the level comparison (if applicable) and render the level as the police shield icon (see screenshot).
  • In equipment-outfitter.lua, stationHasTech() currently interprets MILITARY as tech level 11, making MILITARY equipment available in tech level 12 stations (e.g., Torvalds Platform).
    • Fix: If the tech level is MILITARY, interpret the level as 11 as before, but only pass the check if the station's level is also 11. In addition, change the tech level for the S3 and S4 military drives to MILITARY.

tech_level

@pghvlaans
Copy link
Contributor Author

@sturnclaw Please let me know if you would like color comparison for MILITARY. I can push another commit for that.

@pghvlaans
Copy link
Contributor Author

03633ea implements color comparison:

tech_color_comparison

@sturnclaw
Copy link
Member

I need to take a deeper look at how we handle MILITARY tech level across all of the new outfitting code (that I wrote) - will review this PR quite soon with an eye to getting it in an upcoming hotfix, but will not be able to do so immediately.

@sturnclaw sturnclaw self-requested a review February 14, 2025 08:38
@pghvlaans
Copy link
Contributor Author

Sounds good. If you need anything from me in the meantime, I'm all ears.

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.

GUI module crash while trying to install hull auto-repair
2 participants