ChaelCodes / HuntersKeepers

An app to make managing games of Monster of the Week easier.
MIT License
40 stars 26 forks source link

Seed all Moves for the Expert #253

Open ChaelCodes opened 3 years ago

ChaelCodes commented 3 years ago

Describe the Feature

Is your feature request related to a problem? Please describe. The expert currently lacks moves. We should add their moves to the Expert seedfile.

Additional context Our seedfile is used to populate the moves visible on /playbooks/<:id>. All Expert moves from the rulebook should be included on that page.

Run bundle exec rake db:seed or docker-compose run web bundle exec rake db:seed to populate your changes in development. This is automatically run in production.

Describe the Technical Implementation of the Solution

Solution Please add the moves to Expert seedilfe: https://github.com/ChaelCodes/HuntersKeepers/blob/main/db/seeds/playbooks/expert.seeds.rb

If the move is rollable and has a result, the type is Moves::Rollable and the results are broken between six_and_under, seven_to_nine, and ten_plus. Don't forget to add the rating for the roll! If the move is flavor text, modifies a roll, or does not result in a roll, the type is Moves::Descriptive.

Seedfiles are automatically run in production, so ensure your changes are idempotent. See the spell-slinger for an example: https://github.com/ChaelCodes/HuntersKeepers/blob/d3d2d31248b586cb28b6b2ed10970b894b4cc55a/db/seeds/playbooks/spell_slinger.seeds.rb#L99-L102

References Any references to materials or help articles that may help in implementing this issue. Rules for the Expert page 7, 8