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

Updating to Version 11, Adding in Starfinder 5e, and Abstracting out all of the systems from the main code. #189

Closed

Conversation

Imper1um
Copy link

This is a major refactor that pulls out all of the system-specific code out of the module itself. All system-specific code is now relegated to the RollProvider set for it, and uses custom overrides to represent the weirdness that might need to be done for each system.

I have also added in Starfinder 1st Edition, and updated the .md files to reflect the changes I have made.

This should make the code easier to read as well as easier to manage at the system level.

I did a confirmation of dnd5e, pf1, pf2e, D35E, sw5e, cof, coc, ose, degenesis, and sfrpg by testing on my Foundry server.

  • coc7, demonlord I could not test.
  • foundry-chromatic-dungeons does not work because there's some weirdness in how their roll system is changed with it. I tried to fix it, but I could not locate a way to pass the roll information over to the roll method properly.
  • ffd20 I could not test because the latest version of the system is incompatible with v11.

This upgrade will make this version verified compatible with the latest version of Foundry (v11.307)

This new setup splits out roll providers. How this works is that each system operates its own functions. Rather than having systems ingrained into the code itself, each of the systems determine if they need to override specific parts of the rolling system.

This will reduce the need to check in changes to the main rolling system and allow providers to be more easily created. This also means that every system is isolated in its changes to the main rolling system.
roller.js was refering to the wrong roller.
Fixing reference issues with pf2e and fixing various location issues.
Adding in a sw5e override to create5eAbilities that fixes the reference issue.
References have been fixed on CD, but I don't know how the roll system works for CD. I attempted a fix, but there's something weird. It needs to be fixed, but I need someone who knows the CD code to fix the rolling part of this.
Updating documentation to represent what's going on.
Pf2e now rolls the correct statistic.
@Imper1um Imper1um closed this Sep 26, 2023
@Imper1um Imper1um deleted the pf1e-version-11 branch September 26, 2023 05:07
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.

1 participant