Skip to content

Code simplification and fixes + ChatCard CSS fix#288

Merged
ClipplerBlood merged 3 commits intoXacus:masterfrom
sasquach45932:master
Jan 11, 2026
Merged

Code simplification and fixes + ChatCard CSS fix#288
ClipplerBlood merged 3 commits intoXacus:masterfrom
sasquach45932:master

Conversation

@sasquach45932
Copy link
Contributor

No description provided.

Copy link
Contributor

@juanferrer juanferrer left a comment

Choose a reason for hiding this comment

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

Looks good. Some ideas for the future.

// Embedded function
async function setBoonsForDarkMagicSpells() {
// Demon Lord page 111
const DARK_MAGIC_TRADITIONS = ['Blood', 'Curse', 'Death', 'Demonology', 'Forbidden', 'Necromancy', 'Madness']
Copy link
Contributor

Choose a reason for hiding this comment

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

Fine for now, but it doesn't support traditions from other books nor custom traditions. In the future we could add an isDarkMagic flag to SpellDataModel and check it when going through the spells below.

switch (text) {
const targetNumber = game.settings.get('demonlord', 'optionalRuleDieRollsMode') === 'b' ? 11 : 10

switch (mode) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, easily extendable

@ClipplerBlood ClipplerBlood merged commit b783b9c into Xacus:master Jan 11, 2026
2 checks 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.

3 participants