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

[Das_Schwarze_Auge_4-1] Regeneration Updates, Consideration of Spell Representations #12892

Merged

Conversation

kreuvf
Copy link
Contributor

@kreuvf kreuvf commented May 12, 2024

Submission Checklist

Required

  • The pull request title clearly contains the name of the sheet I am editing.
  • The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
  • The pull request makes changes to files in only one sub-folder.
  • The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description

Rollable Regeneration

Consideration of Spell Representations

This feature automatically applies any beneficial substitutions of stats in spell checks. Thanks to @Triqueon for laying the groundwork for this.

Other

Fixes

  • Passing blow (old button) selection "Aufmerksamkeit, aber kein Kampfgespür" does not apply the modifier and does not show the full text due to erroneous escaping (a54f93a)
  • Restore broken attribute names (e0d8bb9)

Interface/Style

  • Principal stat selection moved from special skill "Masterly Regeneration" to (more fitting) location next to representations (7c6b112)
  • Specialization buttons text size now matches text size of other roll buttons (4ebe036)

Miscellaneous

  • Add new constant arrays with frequently required data (23edb6b)
  • New utility function countStats() (ffa05e1)
  • Migration function (5ac2cdb)
  • Info on latest version (ab42a0c)
  • Regenerate sheet files (fd20e68)

Pascal Stein and others added 30 commits May 9, 2024 14:40
Attribute renamed: z_erstrepraesentation -> sf_representations
Theoretically, any number of new representations with comparable rules could be implemented with ease now.
* Closes #32

The third stat is a reference to the user-selected stat and as such is not counted correctly with countStats() if not resolved beforehand.

This could lead to the incorrect replacement of "KL" with "CH" when using Kophtanic representation leading to CH/CH/CH stats (expressly forbidden).
Connected with achieving this goal:
* Make base rolls for LE/AE with fixed regeneration rolls of d1 to allow access for CRP
* Fix: AEneu is not defined when fixed AE regeneration is enabled
…20) d20 rolls; base rolls with explanations)
…E regeneration

Suspected root causes:
* Energies (LE, AE, AU, but KE was!) were not initialized
* Food restriction effect attribute not set to the numeric value 0 failing a strict equality check
… Kampfgespür" does not apply the modifier and does not show the full text

* Closes #135

Reason: The text contains a comma which was already saved in escaped form (,). The & had to be escaped as well.
@roll20deploy
Copy link
Contributor

Character Sheet Info Roll20 Internal Use only.

@kreuvf kreuvf marked this pull request as draft May 13, 2024 17:53
@kreuvf kreuvf marked this pull request as ready for review May 13, 2024 17:57
@NBrooks-Roll20 NBrooks-Roll20 merged commit 6666618 into Roll20:master May 14, 2024
1 check 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.

None yet

3 participants