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

Add the ability to regenerate cultures #495

Merged
merged 7 commits into from
Jul 18, 2020
Merged

Conversation

mdirienzo
Copy link
Contributor

  • Addresses request Provide a way to regenerate cultures #491
  • Added a button to the tools menu for culture regeneration.
  • Regeneration button will handle initial generation of new cultures and expansion afterwards.
  • Pressing regenerate will warn the user.
  • Culture regeneration will generate new cultural centers and redraw them.
  • Burgs will adopt the new culture of the cell it occupies.
  • States will adopt the culture of the cell where it's "center" is located.
  • Religions will adopt the culture of the religious center.
  • Regenerating cultures will refresh all open editors.

mdirienzo added 7 commits July 9, 2020 22:33
- Added a button to the tools menu for regeneration.
- Regeneration button will handle initial generation of cultures and expansion afterwards.
- Pressing regenerate will warn the user.
- Small cleanup of trailing whitespace.
Any errors while iterating the states or burgs could potentially lose the index 0 metadata stored in the arrays. This will instead track the index and ignore the 0th result.
Updated function names to be more similar and more descriptive
@Azgaar Azgaar merged commit 43b3c8b into Azgaar:master Jul 18, 2020
Azgaar pushed a commit that referenced this pull request Feb 4, 2021
* Add the ability to regenerate cultures

- Added a button to the tools menu for regeneration.
- Regeneration button will handle initial generation of cultures and expansion afterwards.
- Pressing regenerate will warn the user.
- Small cleanup of trailing whitespace.

* Refreshing cultures editor updates culture centers

* Regenerating cultures refreshes the culture editor

* Added a function to refresh all open editors

* Reset burg and state cultures after regeneration

* Address the problem of potential data loss

Any errors while iterating the states or burgs could potentially lose the index 0 metadata stored in the arrays. This will instead track the index and ignore the 0th result.

* Religions update cultures on culture regeneration

Updated function names to be more similar and more descriptive
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