Commit graph

31 commits

Author SHA1 Message Date
Azgaar
65609f6dd3 chore: cleanup comments 2023-03-22 11:39:11 +04:00
Azgaar
440430e415 fix(religions): don't throw error if religion culture is 0 (happens if culture is removed) 2023-03-21 23:15:17 +04:00
Azgaar
12fad8fd8f feat(religions): editor UX update and cleanup, increase religions number to generate 2023-03-21 22:41:50 +04:00
Alexander James
47ef8d938b
Religions live update UX (#915)
* preparatory bugfixes

* restructure religion generator for extensibility

* Add culture-like update functions and UI

* Syntax / Typo

* PR Versioning

* Relig Editor UI: hide on brush, limit -> potential

* add / remove Culture creates / removes Folk religion

* Religions UX: stable abbr, Folk non-selectable type & not separately removed

* Folk religions follow cultures through regeneration; extinct religion centers draw, folk centers are immutable and do not

* style

* regenerate bugs fixing

* when cultures regenerate a different number

* ability to lock culture in a easy-defined set

fixes uncaught error in commit dada419 from PR #910

* what is locked folk?

* New Map ignores old locked things

* No auto-update of religion on culture regeneration

* typo

* Bugfixes

* Refactor toward modern style

* Prepare to lock - Further refactor

* Complete locked religions functionality

* Prepare for live updates

* Editors fixing + re-versioning

* Fix merge snafu

* Bugs, toungue-twisting

* indexing bugfix

* Manual Add prefers to create missing Folk

* Locked origin regen; deterministic expansion

* version update; fix add wild folk

---------

Co-authored-by: A C James <james.ander31@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>
2023-03-19 02:57:59 -07:00
Azgaar
d40cab2e28 fix: clean cultures on regeneration, v1.89.07 2023-02-19 18:11:07 +04:00
Azgaar
9064ffb388 fix: define religions array even if religions count is 0, v1.89.01 2023-01-13 01:53:23 +04:00
Azgaar
dada419f20
Add the ability to lock states, provinces, cultures, and religions: refactoring (#910)
* Add the ability to lock states, provinces, cultures, and religions (#902)

* Add the basis for locking everything, code and test the culture locking

* Got the religion generator working, but not the tree. There are cycles being generated

* Religions work now, including the tree view

* Got the states and provinces working as well, all good and ready

* Refresh the province editor when regenerating

* Implement the versioning steps

* Fix the state naming and color changing even when locked

* The fix did not work with loaded maps, fix that too

* Fix a few more bugs and address the PR feedback

* Fix the state expanding event when they're locked bug

* Implement some logic to ignore state being locked when regenerating provinces directly.

* refactor(#902): start with states regenertion

* refactor(#902): locked states cells to be assigned on start

* refactor(#902): lock state - keep label

* refactor(#902): lock provinces

* refactor(#902): regenerate states - update provinces

* refactor(#902): regenerate cultures

* refactor(#902): regenerate religions

Co-authored-by: Guillaume St-Pierre <gstpierre01@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.com>
2023-01-08 03:38:52 -08:00
Azgaar
434907fa9e feat(hierarchy tree): animate on update 2022-06-12 22:21:34 +03:00
Azgaar
9f32bb258c fix: cults origins if max is 0 2022-06-07 11:04:01 +03:00
Azgaar
ff1d3566c4 feat: multi-parental tree for religions 2022-06-05 18:26:28 +03:00
Azgaar
2db5e35feb fix syntax 2022-01-10 16:54:26 +03:00
Ángel Montero Lamas
7a594241c1
religions-generator.js (#724)
Sorted the lists, arrays and weighted arrays of items in alphabetical order. Some remain in the order assigned by weighted random.
I think this helps people spot missing items on the list if they check by name.
The number of items is the same, they just got reordered.
2022-01-10 16:13:29 +03:00
Azgaar
470e814a0e religion gen fix 2021-10-07 23:12:08 +03:00
Azgaar
460bb29e49 replace old iife by a simpler ones 2021-08-04 23:49:02 +03:00
Azgaar
38c8a20c45 fixed #619 2021-04-10 14:33:59 +03:00
Bryce Kabat
f4efedcf9d
Added Logging Options to Improve Performance (#529)
* Added Logging Options to Improve Performance

* Requested Changes

Co-authored-by: Onyx Azryn <brycekabat@onyxazryn.com>
2020-10-22 01:32:57 +03:00
mdirienzo
43b3c8b807
Add the ability to regenerate cultures (#495)
* 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
2020-07-18 11:31:09 +03:00
Azgaar
8a6108e203 v1.22.33 2019-12-29 19:24:10 +03:00
Azgaar
bc6b8cdafe v1.22.31 2019-12-23 20:06:43 +03:00
evolvedexperiment
354eb74746 Fixes for culture/religion and 3d heightmap bugs (#359)
* Fix for 3d heightmap

* Fix for culture/religion bug
2019-11-10 18:20:52 +03:00
Azgaar
9c034139d9 v1.22.02 2019-11-01 11:59:07 +03:00
Azgaar
aadae58072 1.1.14 2019-10-16 23:25:48 +03:00
Azgaar
be4caf0c24 1.0.43 2019-09-19 22:20:16 +03:00
Azgaar
6bf440afe9 v1.0.37 2019-09-14 22:02:03 +03:00
Azgaar
c9c30806c8 v1.0.36 2019-09-14 19:45:11 +03:00
Azgaar
3f7abcb191 1.0.20 2019-09-12 01:08:36 +03:00
Azgaar
57c1e17c88 1.0.18 2019-09-10 20:58:13 +03:00
Azgaar
6bd0ce5533 v1.0.17 2019-09-10 09:43:31 +03:00
Azgaar
5a1b747da8 v1.0.16 2019-09-10 02:44:34 +03:00
Azgaar
52e8f28cd0 v1.0.06 2019-09-02 22:04:19 +03:00
Azgaar
cab429a346 v1.0 2019-08-31 12:16:36 +03:00