HuntersKeepers icon indicating copy to clipboard operation
HuntersKeepers copied to clipboard

Implement Haven Moves

Open ChaelCodes opened this issue 5 years ago • 2 comments

Describe the Feature

Havens are interesting because many playbooks have access to these moves, for example, Expert, Flake, and Monstruous. The Spooky has access to the Mystical Library move from havens as an improvement.

Research Havens, find out if haven moves are shared? Who can access them? Do Haven moves go away when the Hunter is not present?

Describe the Technical Implementation of the Solution

Solution

  • Create Haven with an Index (Maybe)
  • Signify the certain moves are linked to Havens
  • Create an Improvements::Haven only allow haven moves to be selected, move_count? Select 1 or 2 haven options?
  • Modify Improvements::AnotherMove and Improvements:::PlaybookMove to have a move_id, and if a move_id is specified, grant that move, otherwise let the hunter choose (supports Spooky)

ChaelCodes avatar Apr 19 '20 16:04 ChaelCodes

  • [x] Create Haven with an Index (Maybe)
  • [x] Signify the certain moves are linked to Havens
  • [x] Haven moves seeds file
  • [x] Create Improvements::Haven only allow haven moves to be selected, move_count? Select 1 or 2 haven options?
  • [ ] Modify Improvements::AnotherMove and Improvements:::PlaybookMove to have a move_id, and if a move_id is specified, grant that move, otherwise let the hunter choose (supports Spooky) or... Improvements::Move which gives you a move, regardless of the playbook.
  • [ ] HavenPolicy - hunters can create! Include created_by user.

ChaelCodes avatar Aug 09 '20 15:08 ChaelCodes

Let's talk about how to implement the Spooky's Haven Improvement.

Every playbook has its own set of improvements, so adding a custom one for the Spooky isn't hard.

We should configure the improvement and supply a Move_id, I don't know if we have something configurable like this yet. Tbh, we could just add a move_id column? Or add a config column to Improvement. We have this column on the Hunters improvement, but that's for the selected option. We need this to be part of the rule.

The next part is restricting hunter options when they configure the column. That looks like a modification to improvable_options on the improvement.

Then we add the configured Haven Improvement to the Spooky seedfile, and we're done!

ChaelCodes avatar Mar 02 '21 11:03 ChaelCodes