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 bug that game crush loading level3 #80

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

silent-lindsay
Copy link
Contributor

Through a global dict foes_by_missions initialized and altered in new-developed file global_foes.py, conflict caused by redefintion of foes_by_missions in load_from_tmx_manager.py and load_from_xml_manager.py is solved successfully.

Copy link
Owner

@Grimmys Grimmys left a comment

Choose a reason for hiding this comment

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

Sorry for the delay before my review, I didn't see the notification earlier.

Thanks for your contribution, it's nice changes 👍

Except the few comments I put, I'm wondering if a better name could be found for global_foes service, I feel like this name doesn't say a lot. But it can be changed later on.

saves/options.xml Outdated Show resolved Hide resolved
@@ -38,7 +38,8 @@
RACES_DATA_PATH = "data/races.xml"
CLASSES_DATA_PATH = "data/classes.xml"

foes_by_mission: dict[str, list[Foe]] = {}
from src.services.global_foes import foes_by_mission, link_foe_to_mission
# foes_by_mission: dict[str, list[Foe]] = {}
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove this commented out line of code since it's not necessary anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@Grimmys Grimmys merged commit 56a822e into Grimmys:master Jan 12, 2024
2 checks passed
@silent-lindsay silent-lindsay deleted the load_bugfix branch January 17, 2024 06:10
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