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

#123 Spell Info #126

Merged
merged 23 commits into from
Sep 11, 2023
Merged

#123 Spell Info #126

merged 23 commits into from
Sep 11, 2023

Conversation

NeptuneRjo
Copy link
Contributor

First draft of updated spell content. Looking for your opinion before I add more.

  • Components are now more consistent with the rest of the codebase
  • Shifted over to JSON for the spell data
  • Roughly styled the components

I was thinking a similar component with editable fields would work for the added spells.

@derikb
Copy link
Owner

derikb commented Sep 7, 2023

Will take a look at this next week.

Copy link
Owner

@derikb derikb 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 to me (though I didn't actually run the code). Just two things that look like they are leftover from a previous iteration or something.

this.cur_character.setSpells(spell, level);
};

_handleAccordionClick (ev) {
Copy link
Owner

Choose a reason for hiding this comment

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

Think this method is left over from a copy/paste and isn't used.

this.spellDialog.open();
}

_handleAddNewSpell (ev) {
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this is getting used either? Which also means you don't need the getCurrentCharacter call in the connectedCallback.

@derikb derikb merged commit 27d8557 into derikb:develop Sep 11, 2023
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