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

feat: Template refactor #74

Merged
merged 13 commits into from
Oct 2, 2024
Merged

feat: Template refactor #74

merged 13 commits into from
Oct 2, 2024

Conversation

RakuJa
Copy link
Owner

@RakuJa RakuJa commented Oct 2, 2024

This PR introduces a new and better implementation of Shop Templates.
Before:
We had templates that were just an abstraction layer over different "ratios" of items. This meant that a "Alchemist" did not have a specific query associated with item properties but just ratio of "a lot of equipment and consumables, few or none armor,shields, weapons". As such, there was no possibility to express a more in-depth shop or to allow users to customize it.
Now:
This implementation is split into two main features:

  • Expose a new endpoint that returns the "behind the scenes" Template data (trait used, rarities, etc)
  • Allow random generation with all the possible fields, so that a user may create a custom template.

@RakuJa RakuJa added enhancement New feature or request shop labels Oct 2, 2024
@RakuJa RakuJa requested a review from TheAsel October 2, 2024 04:44
@RakuJa RakuJa self-assigned this Oct 2, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 2, 2024
TheAsel
TheAsel previously approved these changes Oct 2, 2024
Base automatically changed from filter_by_trait to master October 2, 2024 11:18
@RakuJa RakuJa dismissed stale reviews from TheAsel and github-actions[bot] October 2, 2024 11:18

The base branch was changed.

@RakuJa RakuJa merged commit e7c757e into master Oct 2, 2024
2 of 3 checks passed
@RakuJa RakuJa linked an issue Oct 2, 2024 that may be closed by this pull request
@RakuJa RakuJa deleted the template-refactor branch October 2, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request shop
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Refactor templates
2 participants