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

Introduce Creature Role #49

Merged
merged 4 commits into from
May 5, 2024
Merged

Introduce Creature Role #49

merged 4 commits into from
May 5, 2024

Conversation

RakuJa
Copy link
Owner

@RakuJa RakuJa commented Apr 4, 2024

  • Query the new db fields (actions, skills, scales)
  • Return percentage associated with each role
  • Filter by role
  • Random gen by role
  • Divide response data (and Creature) in fields to have a modular and lightweight response
  • Update dependencies

RakuJa and others added 3 commits March 9, 2024 20:53
* list creatures by role with opt threshold
* generate random enc with role selection
* return map of role and percentage in roles field (one creature is all the roles, but with a different percentage for each 0-100)
* tweak roles definition (relaxed requirements)
* update dockerfile rust version
* introduce filter
* now response data fields are optional, if nothing is set it will return empty json objects
* add list filter with type

Co-authored-by: TheAsel <[email protected]>
Co-authored-by: ericaraffa <[email protected]>
@RakuJa RakuJa added enhancement New feature or request bestiary encounter labels Apr 4, 2024
@RakuJa RakuJa requested a review from TheAsel April 4, 2024 15:44
@RakuJa RakuJa self-assigned this Apr 4, 2024
github-actions[bot]
github-actions bot previously approved these changes Apr 4, 2024
TheAsel
TheAsel previously approved these changes Apr 4, 2024
Copy link
Collaborator

@TheAsel TheAsel 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, you madman

* use btreemap instead of vec of tuples, so json output is now standardized
* rename spellcaster display
* rename essential_data to core_data
@RakuJa RakuJa dismissed stale reviews from TheAsel and github-actions[bot] via 93f1c52 April 26, 2024 06:51
@RakuJa RakuJa merged commit e175cec into master May 5, 2024
1 of 2 checks passed
@RakuJa RakuJa deleted the creature_role branch May 14, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants