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

Fast travel gold fix #2592

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

John-Leitch
Copy link

This PR fixes the following issue: #2591 (Fast Travel deducts gold even if travel is canceled)

Pretty straight forward. Moved the code to deduct the gold into a separate method, DaggerfallTravelPopUp.DeductFastTravelGold. Rather than invoking directly from update, I opted to do so in DaggerfallTravelPopUp.performFastTravel, as that method seemed to be where most of the other related changes to GameManager.Instance.PlayerEntity state occur. The only concern I have is related to the DaggerfallTravelPopUp.OnPreFastTravel and DaggerfallTravelPopUp.OnPostFastTravel events. Previously, the gold was deducted prior to either event being fired. In performFastTravel, I put it after OnPreFastTravel, as that seemed to make the most sense. Looking at the codebase, I did not see any subscribers to OnPreFastTravel, so I don't think this will break anything.

Copy link
Collaborator

@petchema petchema left a comment

Choose a reason for hiding this comment

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

Modification seems straightforward

@KABoissonneault KABoissonneault merged commit 5e45993 into Interkarma:master Feb 26, 2024
@KABoissonneault KABoissonneault mentioned this pull request Mar 6, 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.

3 participants