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

More components #13

Open
CocytusDEDI opened this issue Jul 28, 2024 · 0 comments
Open

More components #13

CocytusDEDI opened this issue Jul 28, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@CocytusDEDI
Copy link
Owner

As of writing this, MMSpellbook is servery lacking in components, it hasn't been my top priority as I've wanted to make all the basics work first before adding more components. To add components, a new entry needs to be made in both COMPONENT_TO_NUM_MAP in spelltranslator.rs and COMPONENT_TO_FUNCTION_MAP in lib.rs and a corresponding function needs to be added in component_functions.rs. The corresponding function should return the energy required to cast it when the bool should_execute is false and shouldn't be cast, when the bool should_execute is true, it should be cast, and it should return any return type the component returns. Look at the other components in component_functions.rs to see the format used.

@CocytusDEDI CocytusDEDI added enhancement New feature or request good first issue Good for newcomers labels Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant