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: character change does not persist after save. #1749

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

Ridwanah
Copy link
Contributor

@Ridwanah Ridwanah commented Nov 21, 2024

Description

I fixed the issue where a character change in the level editor would not appear in the character tab and would default to the van option.
This happened because the restoreState function was trying to get the character id from saved level, but it was the character name that was saved not the id. I changed this by getting the character id from the saved character name.

How Has This Been Tested?

I tested this using pytest and all the tests passed.
I also tested it by creating new levels in the level editor and checking if the change is there.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have linked this PR to a ZenHub Issue.

This change is Reviewable

@faucomte97 faucomte97 linked an issue Nov 22, 2024 that may be closed by this pull request
Copy link
Contributor

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Ridwanah)

@faucomte97
Copy link
Contributor

@Ridwanah thanks for your solution, it looks good so I will go ahead and merge your PR now 🙂

@faucomte97 faucomte97 merged commit f9f16e4 into ocadotechnology:master Nov 22, 2024
5 of 6 checks passed
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.

level editor: character change does not persist after save
2 participants