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 Strategy Duration handling #70

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

NathanKell
Copy link
Contributor

Stock has broken support for min/max durations for strategies. This fixes:

  • LongestDuration to actually use longestDuration fields
  • Least and Longest Duration getters to use the duration properties, not the fields (which are never set)
  • CanBeActivated to not have its inequality flipped when comparing LeastDuration + DateActivated vs UT.

Since the property patches are 75% new code it didn't seem worth trying to transpile them from near-scratch. If you want to you can, it involves replacing the ldflds with calls to the properties.

@NathanKell NathanKell changed the base branch from master to dev July 31, 2022 11:05
@gotmachine gotmachine merged commit 9edc6d3 into KSPModdingLibs:dev Aug 5, 2022
@NathanKell NathanKell deleted the StrategyDurations branch August 6, 2022 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants