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

Update TTKS tweak #52

Merged
merged 2 commits into from
Feb 11, 2024
Merged

Update TTKS tweak #52

merged 2 commits into from
Feb 11, 2024

Conversation

BakersDozenBagels
Copy link
Contributor

This PR is incompatible with parts of PR 49 by eXish.
This one does everything that one does for TTKS, as well as a bit more.
The translations were added because of the January 5th update to this Russian mission pack which complains about TTKS not working with translated modules.

Fixes five bugs:

  • TTKS now interacts with all translated versions of the modules it looks for.
  • TTKS now check that every module of a given type has been solved instead of only one (for the "turn key after solving" conditions).
  • TTKS now plays the TTK strike sound and animation for an incorrect turn.
  • TTKS now moves one with a strike (when you turn the key) when it would have softlocked before.
  • TTKS now no longer lets you turn a key multiple times.

On Harmony vs Reflection:
Harmony is more correct and more compatible than reflection in this case. The runtime performance is slightly (although negligibly) better, but more importantly simply assigning to a KMSelectable's OnInteract can cause problems, especially since other mods occasionally add to that field.

@samfundev
Copy link
Owner

Could you undo the changes for translated modules? The community was polled about it and doesn't want that change.

@BakersDozenBagels
Copy link
Contributor Author

BakersDozenBagels commented Feb 11, 2024

Sure. I should keep the vanilla modules though, right? I.e., the vanilla translated names of the vanilla modules in the current localization

Fixes five bugs:
* TTKS now interacts with all translated versions of the modules it looks for.
* TTKS now check that every module of a given type has been solved instead of only one (for the "turn key after solving" conditions).
* TTKS now plays the TTK strike sound and animation for an incorrect turn.
* TTKS now moves one with a strike (when you turn the key) when it would have softlocked before.
* TTKS now no longer lets you turn a key multiple times.
Copy link
Owner

@samfundev samfundev left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for the PR. Merging...

@samfundev samfundev merged commit 00bc359 into samfundev:master Feb 11, 2024
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.

2 participants