From 69f794f09624180b9a6f0d9369fc0e36f939c4f0 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 10:36:35 -0400 Subject: [PATCH 1/8] Added Moves, Gear, and Improvements to The Spooky --- db/seeds/playbooks/spooky.seeds.rb | 276 +++++++++++++++++++++++++++++ 1 file changed, 276 insertions(+) create mode 100644 db/seeds/playbooks/spooky.seeds.rb diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb new file mode 100644 index 00000000..aec2f204 --- /dev/null +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -0,0 +1,276 @@ +# frozen_string_literal: true + +after :playbook do + @spooky = Playbook.find_by! name: 'The Spooky' + + ###### + # Moves + # ratings: charm: 0, cool: 1, sharp: 2, tough: 3, weird: 4 + ###### + [{ + name: 'Telepathy', + playbook_id: @spooky.id, + description: 'You can read people’s thoughts and put words + in their mind. This can allow you to investigate a mystery + or read a bad situation without needing to actually talk. + You an also manipulate someone without speaking. You still + roll moves as normal, except people will not expect the + weirdness of your mental communication.' + } + { + name: 'Hex', + type: 'Moves::Descriptive', + playbook_id: @spooky.id, + description: 'When you cast a spell (with use magic), as + well as the normal effects, you may pick from the following: + \n • The target contracts a disease. + \n • The target immediatly suffers harm (-2 harm magic ignore-armor + \n • The target breaks something precious or important' + }, + { + name: 'The Sight', + type: 'Moves::Descriptive', + playbook_id: @spooky.id, + description:'You can see the invisible, especially spirits and magical + influences. You may communicate with (maybe even make deals with) the + spirits you see, and they give you more opportunities to spot + clues when you investigate a mystery.' + }, + { + name: 'Premonitions', + rating: :weird, + six_and_under: 'On a miss, you get a vision of something bad happening + to you and the Keeper holds 3, to be spent one-for-one as penalties to + rolls you make.', + seven_to_nine: 'On a 7-9+ you get clouded images of some-thing bad that + is yet to happen: mark experience if you stop it.', + ten_plus: 'On a 10+, you get a detailed vision of some-thing bad that is + yet to happen. You take +1 forward to prevent it coming true, and mark + experience if you stop it.', + type: 'Moves::Rollable', + playbook_id: @spooky.id, + description: 'At the start of each mystery, roll +Weird.' + }, + { + name: 'Hunches', + rating: :sharp, + six_and_under: 'On a miss, you get there just in time to be in trouble + yourself', + seven_to_nine: 'On a 7-9, you get there late—in time to intervene, but + not prevent it altogether.', + ten_plus: 'On a 10+ you knew where you needed to go, just in time to + get there.', + type: 'Moves::Rollable', + playbook_id: @spooky.id, + description: 'When something bad is happening (or just about to happen) + somewhere that you aren’t, roll +Sharp' + }, + { + name: 'Tune In', + type: 'Moves::Descriptive', + rating: :sharp, + six_and_under: 'On a miss, the monster becomes aware of you.', + seven_to_nine: 'On a 7-9, hold 1.', + ten_plus: 'On a 10+, hold 3.', + type: 'Moves::Rollable', + playbook_id: @spooky.id, + description: 'You can attune your mind to a monster or minion. Roll +Weird. + Spend one hold to ask the Keeper one of the following questions, and gain +1 + ongoing while acting on the answers. + \n • Where is the creature right now? + \n • What is it planning to do right now? + \n • Who is it going to attack next? + \n • Who does it regard a the biggest threat? + \n • How can i attract its attention?' + }, + { + name: 'The Big Whammy', + type: 'Moves::Descriptive', + playbook_id: @spooky.id, + description:'You can use your powers to kick some ass: roll +Weird instead + of +Tough. The attack has 2-harm close obvious ignore-armor. On a miss, + you’ll get magical backlash.' + }, + { + name: 'Jinx', + type: 'Moves::Descriptive', + rating: :weird, + six_and_under: 'On a miss, the Keeper holds 2 over you to be used in the + same way.', + seven_to_nine: 'On a 7-9, hold 1.', + ten_plus: 'On a 10+, hold 2.', + type: 'Moves::Rollable', + playbook_id: @spooky.id, + description: 'You can encourage coincidences to occur, the way you want. + When you jinx a target, roll +Weird. + \n • Interfere with a hunter, giving them -1 forward. + \n • Help a hunter, giving them +1 forward, by interfering with the enemy. + \n • Interfere with what a monster, minion, or bystander is trying to do. + \n • Inflict 1-harm on the target due to an accident. + \n • The target finds something you left for them. + \n • The target loses something that you will soon find.' + },].each do |move| + Move.find_or_create_by!(move) + end + + ##### + # Gear + ##### + + # Note: Spooky have custom weapons + [ + { + name: '.38 revolver', + armor: 2, + tag_list: %w[close reload loud] + }, + { + name: '9mm', + armor: 2, + tag_list: %w[close loud] + }, + { + name: 'Hunting rifle', + armor: 2, + tag_list: %w[far loud] + }, + { + name: 'Shotgun', + armor: 3, + tag_list: %w[close messy] + }, + { + name: 'Big knife', + armor: 1, + tag_list: %w[hand] + }, + ].each do |gear_attrs| + gear = Gear.find_or_create_by!( + name: gear_attrs[:name], + playbook: @professional + ) + gear.update!(gear_attrs) + + ##### + # Improvements + ##### + [ + { + description: 'Get +1 Weird, max +3', + type: 'Improvements::RatingBoost', + stat_limit: 3, + rating: :weird, + playbook: @spooky + }, + { + description: 'Get +1 Charm, max +2', + type: 'Improvements::RatingBoost', + stat_limit: 2, + rating: :charm, + playbook: @spooky + }, + { + description: 'Get +1 Cool, max +2', + type: 'Improvements::RatingBoost', + stat_limit: 2, + rating: :cool, + playbook: @spooky + }, + { + description: 'Get +1 Sharp, max +2', + type: 'Improvements::RatingBoost', + stat_limit: 2, + rating: :sharp, + playbook: @spooky + }, + { + description: 'Take another Spooky move', + type: 'Improvements::PlaybookMove', + playbook: @spooky, + stat_limit: 0 + }, + { + description: 'Take another Spooky move', + type: 'Improvements::PlaybookMove', + playbook: @spooky, + # Used to differentiate (and initially hide this) from the identical improvement above. + stat_limit: -1 + }, + { + description: 'Change some, or all, your dark side tags', + playbook: @spooky, + }, + { + description: 'Get a mystical library, like the Expert’s haven option', + type: 'Improvements::AnotherMove', + playbook: @spooky, + stat_limit: 0 + }, + { + description: 'Take a move from another playbook', + type: 'Improvements::AnotherMove', + playbook: @spooky, + stat_limit: 0 + }, + { + description: 'Take a move from another playbook', + type: 'Improvements::AnotherMove', + playbook: @spooky, + # Used to differentiate (and initially hide this) from the identical improvement above. + stat_limit: -1 + }, + { + description: 'Get +1 to any rating, max +3.', + playbook: @spooky, + type: 'Improvements::RatingBoost', + stat_limit: 3, + advanced: true + }, + { + description: 'Change this Hunter to a new type.', + playbook: @spooky, + type: 'Improvements::ChangePlaybook', + advanced: true + }, + { + description: 'Create a second hunter to play as well as this one.', + playbook: @spooky, + advanced: true + }, + { + description: 'Mark two of the basic moves as advanced', + playbook: @spooky, + type: 'Improvements::AdvancedMove', + advanced: true + }, + { + description: 'Mark another two of the basic moves as advanced', + playbook: @spooky, + type: 'Improvements::AdvancedMove', + advanced: true + }, + { + description: 'Retire this hunter to safety.', + playbook: @spooky, + type: 'Improvements::Retire', + advanced: true + } + { + description: 'You discover how to use your powers at a lower price. + Delete one dark side tag permanently.', + playbook: @spooky, + advanced: true + }, + { + description: 'Get back one used Luck point.', + playbook: @spooky, + type: 'Improvements::RatingBoost', + stat_limit: 7, + rating: :luck, + advanced: true + }, + ].each do |improvement| + Improvement.find_or_create_by!(improvement) + end + end + \ No newline at end of file From d0ed9805e9c84506fc144d9aec5114928596f7c9 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 11:14:45 -0400 Subject: [PATCH 2/8] Cleaned up formatting and spelling on The Spooky seed file. --- db/seeds/playbooks/spooky.seeds.rb | 50 ++++++++++++++---------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index aec2f204..74818b86 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -9,6 +9,7 @@ ###### [{ name: 'Telepathy', + type: 'Moves::Descriptive', playbook_id: @spooky.id, description: 'You can read people’s thoughts and put words in their mind. This can allow you to investigate a mystery @@ -22,10 +23,10 @@ type: 'Moves::Descriptive', playbook_id: @spooky.id, description: 'When you cast a spell (with use magic), as - well as the normal effects, you may pick from the following: - \n • The target contracts a disease. - \n • The target immediatly suffers harm (-2 harm magic ignore-armor - \n • The target breaks something precious or important' + well as the normal effects, you may pick from the following: + • The target contracts a disease. • The target immediatly + suffers harm (-2 harm magic ignore-armor • The target breaks + something precious or important' }, { name: 'The Sight', @@ -39,6 +40,8 @@ { name: 'Premonitions', rating: :weird, + type: 'Moves::Rollable', + playbook_id: @spooky.id, six_and_under: 'On a miss, you get a vision of something bad happening to you and the Keeper holds 3, to be spent one-for-one as penalties to rolls you make.', @@ -47,60 +50,55 @@ ten_plus: 'On a 10+, you get a detailed vision of some-thing bad that is yet to happen. You take +1 forward to prevent it coming true, and mark experience if you stop it.', - type: 'Moves::Rollable', - playbook_id: @spooky.id, description: 'At the start of each mystery, roll +Weird.' }, { name: 'Hunches', rating: :sharp, + type: 'Moves::Rollable', + playbook_id: @spooky.id, six_and_under: 'On a miss, you get there just in time to be in trouble yourself', seven_to_nine: 'On a 7-9, you get there late—in time to intervene, but not prevent it altogether.', ten_plus: 'On a 10+ you knew where you needed to go, just in time to get there.', - type: 'Moves::Rollable', - playbook_id: @spooky.id, description: 'When something bad is happening (or just about to happen) somewhere that you aren’t, roll +Sharp' }, { name: 'Tune In', - type: 'Moves::Descriptive', rating: :sharp, + type: 'Moves::Rollable', + playbook_id: @spooky.id, six_and_under: 'On a miss, the monster becomes aware of you.', seven_to_nine: 'On a 7-9, hold 1.', ten_plus: 'On a 10+, hold 3.', - type: 'Moves::Rollable', - playbook_id: @spooky.id, - description: 'You can attune your mind to a monster or minion. Roll +Weird. - Spend one hold to ask the Keeper one of the following questions, and gain +1 - ongoing while acting on the answers. - \n • Where is the creature right now? - \n • What is it planning to do right now? - \n • Who is it going to attack next? - \n • Who does it regard a the biggest threat? - \n • How can i attract its attention?' + description: 'You can attune your mind to a monster or minion. + Roll +Weird. Spend one hold to ask the Keeper one of the + following questions, and gain +1 ongoing while acting on the + answers. • Where is the creature right now? • What is it + planning to do right now? • Who is it going to attack + next? • Who does it regard a the biggest threat? How + can i attract its attention?' }, { name: 'The Big Whammy', type: 'Moves::Descriptive', playbook_id: @spooky.id, - description:'You can use your powers to kick some ass: roll +Weird instead - of +Tough. The attack has 2-harm close obvious ignore-armor. On a miss, - you’ll get magical backlash.' + description:'You can use your powers to kick some ass: roll +Weird + instead of +Tough. The attack has 2-harm close obvious ignore-armor. On + a miss, you’ll get magical backlash.' }, { name: 'Jinx', - type: 'Moves::Descriptive', rating: :weird, + type: 'Moves::Rollable', + playbook_id: @spooky.id, six_and_under: 'On a miss, the Keeper holds 2 over you to be used in the same way.', seven_to_nine: 'On a 7-9, hold 1.', ten_plus: 'On a 10+, hold 2.', - type: 'Moves::Rollable', - playbook_id: @spooky.id, description: 'You can encourage coincidences to occur, the way you want. When you jinx a target, roll +Weird. \n • Interfere with a hunter, giving them -1 forward. @@ -147,7 +145,7 @@ ].each do |gear_attrs| gear = Gear.find_or_create_by!( name: gear_attrs[:name], - playbook: @professional + playbook: @spooky ) gear.update!(gear_attrs) From 3aaa913fb7757fb206251e40fc01ed5a68a7c5ec Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 11:26:06 -0400 Subject: [PATCH 3/8] Cleaned up indentation for The Spooky seed file. --- db/seeds/playbooks/spooky.seeds.rb | 312 ++++++++++++++--------------- 1 file changed, 156 insertions(+), 156 deletions(-) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index 74818b86..1cbd62c7 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -18,15 +18,15 @@ roll moves as normal, except people will not expect the weirdness of your mental communication.' } - { - name: 'Hex', - type: 'Moves::Descriptive', - playbook_id: @spooky.id, - description: 'When you cast a spell (with use magic), as - well as the normal effects, you may pick from the following: - • The target contracts a disease. • The target immediatly - suffers harm (-2 harm magic ignore-armor • The target breaks - something precious or important' + { + name: 'Hex', + type: 'Moves::Descriptive', + playbook_id: @spooky.id, + description: 'When you cast a spell (with use magic), as + well as the normal effects, you may pick from the following: + • The target contracts a disease. • The target immediatly + suffers harm (-2 harm magic ignore-armor • The target breaks + something precious or important' }, { name: 'The Sight', @@ -81,35 +81,35 @@ planning to do right now? • Who is it going to attack next? • Who does it regard a the biggest threat? How can i attract its attention?' - }, - { - name: 'The Big Whammy', - type: 'Moves::Descriptive', - playbook_id: @spooky.id, - description:'You can use your powers to kick some ass: roll +Weird - instead of +Tough. The attack has 2-harm close obvious ignore-armor. On - a miss, you’ll get magical backlash.' - }, - { - name: 'Jinx', - rating: :weird, - type: 'Moves::Rollable', - playbook_id: @spooky.id, - six_and_under: 'On a miss, the Keeper holds 2 over you to be used in the - same way.', - seven_to_nine: 'On a 7-9, hold 1.', - ten_plus: 'On a 10+, hold 2.', - description: 'You can encourage coincidences to occur, the way you want. - When you jinx a target, roll +Weird. - \n • Interfere with a hunter, giving them -1 forward. - \n • Help a hunter, giving them +1 forward, by interfering with the enemy. - \n • Interfere with what a monster, minion, or bystander is trying to do. - \n • Inflict 1-harm on the target due to an accident. - \n • The target finds something you left for them. - \n • The target loses something that you will soon find.' - },].each do |move| - Move.find_or_create_by!(move) - end + }, + { + name: 'The Big Whammy', + type: 'Moves::Descriptive', + playbook_id: @spooky.id, + description:'You can use your powers to kick some ass: roll +Weird + instead of +Tough. The attack has 2-harm close obvious ignore-armor. On + a miss, you’ll get magical backlash.' + }, + { + name: 'Jinx', + rating: :weird, + type: 'Moves::Rollable', + playbook_id: @spooky.id, + six_and_under: 'On a miss, the Keeper holds 2 over you to be used in the + same way.', + seven_to_nine: 'On a 7-9, hold 1.', + ten_plus: 'On a 10+, hold 2.', + description: 'You can encourage coincidences to occur, the way you want. + When you jinx a target, roll +Weird. Interfere with a hunter, giving + them -1 forward. Help a hunter, giving them +1 forward, by interfering + with the enemy. Interfere with what a monster, minion, or bystander is + trying to do. Inflict 1-harm on the target due to an accident. The target + finds something you left for them. The target loses something that you + will soon find.' + }, + ].each do |move| + Move.find_or_create_by!(move) + end ##### # Gear @@ -152,123 +152,123 @@ ##### # Improvements ##### - [ - { - description: 'Get +1 Weird, max +3', - type: 'Improvements::RatingBoost', - stat_limit: 3, - rating: :weird, - playbook: @spooky - }, - { - description: 'Get +1 Charm, max +2', - type: 'Improvements::RatingBoost', - stat_limit: 2, - rating: :charm, - playbook: @spooky - }, - { - description: 'Get +1 Cool, max +2', - type: 'Improvements::RatingBoost', - stat_limit: 2, - rating: :cool, - playbook: @spooky - }, - { - description: 'Get +1 Sharp, max +2', - type: 'Improvements::RatingBoost', - stat_limit: 2, - rating: :sharp, - playbook: @spooky - }, - { - description: 'Take another Spooky move', - type: 'Improvements::PlaybookMove', - playbook: @spooky, - stat_limit: 0 - }, - { - description: 'Take another Spooky move', - type: 'Improvements::PlaybookMove', - playbook: @spooky, - # Used to differentiate (and initially hide this) from the identical improvement above. - stat_limit: -1 - }, - { - description: 'Change some, or all, your dark side tags', - playbook: @spooky, - }, - { - description: 'Get a mystical library, like the Expert’s haven option', - type: 'Improvements::AnotherMove', - playbook: @spooky, - stat_limit: 0 - }, - { - description: 'Take a move from another playbook', - type: 'Improvements::AnotherMove', - playbook: @spooky, - stat_limit: 0 - }, - { - description: 'Take a move from another playbook', - type: 'Improvements::AnotherMove', - playbook: @spooky, - # Used to differentiate (and initially hide this) from the identical improvement above. - stat_limit: -1 - }, - { - description: 'Get +1 to any rating, max +3.', - playbook: @spooky, - type: 'Improvements::RatingBoost', - stat_limit: 3, - advanced: true - }, - { - description: 'Change this Hunter to a new type.', - playbook: @spooky, - type: 'Improvements::ChangePlaybook', - advanced: true - }, - { - description: 'Create a second hunter to play as well as this one.', - playbook: @spooky, - advanced: true - }, - { - description: 'Mark two of the basic moves as advanced', - playbook: @spooky, - type: 'Improvements::AdvancedMove', - advanced: true - }, - { - description: 'Mark another two of the basic moves as advanced', - playbook: @spooky, - type: 'Improvements::AdvancedMove', - advanced: true - }, - { - description: 'Retire this hunter to safety.', - playbook: @spooky, - type: 'Improvements::Retire', - advanced: true - } - { - description: 'You discover how to use your powers at a lower price. - Delete one dark side tag permanently.', - playbook: @spooky, - advanced: true - }, - { - description: 'Get back one used Luck point.', - playbook: @spooky, - type: 'Improvements::RatingBoost', - stat_limit: 7, - rating: :luck, - advanced: true - }, - ].each do |improvement| - Improvement.find_or_create_by!(improvement) - end + [ + { + description: 'Get +1 Weird, max +3', + type: 'Improvements::RatingBoost', + stat_limit: 3, + rating: :weird, + playbook: @spooky + }, + { + description: 'Get +1 Charm, max +2', + type: 'Improvements::RatingBoost', + stat_limit: 2, + rating: :charm, + playbook: @spooky + }, + { + description: 'Get +1 Cool, max +2', + type: 'Improvements::RatingBoost', + stat_limit: 2, + rating: :cool, + playbook: @spooky + }, + { + description: 'Get +1 Sharp, max +2', + type: 'Improvements::RatingBoost', + stat_limit: 2, + rating: :sharp, + playbook: @spooky + }, + { + description: 'Take another Spooky move', + type: 'Improvements::PlaybookMove', + playbook: @spooky, + stat_limit: 0 + }, + { + description: 'Take another Spooky move', + type: 'Improvements::PlaybookMove', + playbook: @spooky, + # Used to differentiate (and initially hide this) from the identical improvement above. + stat_limit: -1 + }, + { + description: 'Change some, or all, your dark side tags', + playbook: @spooky, + }, + { + description: 'Get a mystical library, like the Expert’s haven option', + type: 'Improvements::AnotherMove', + playbook: @spooky, + stat_limit: 0 + }, + { + description: 'Take a move from another playbook', + type: 'Improvements::AnotherMove', + playbook: @spooky, + stat_limit: 0 + }, + { + description: 'Take a move from another playbook', + type: 'Improvements::AnotherMove', + playbook: @spooky, + # Used to differentiate (and initially hide this) from the identical improvement above. + stat_limit: -1 + }, + { + description: 'Get +1 to any rating, max +3.', + playbook: @spooky, + type: 'Improvements::RatingBoost', + stat_limit: 3, + advanced: true + }, + { + description: 'Change this Hunter to a new type.', + playbook: @spooky, + type: 'Improvements::ChangePlaybook', + advanced: true + }, + { + description: 'Create a second hunter to play as well as this one.', + playbook: @spooky, + advanced: true + }, + { + description: 'Mark two of the basic moves as advanced', + playbook: @spooky, + type: 'Improvements::AdvancedMove', + advanced: true + }, + { + description: 'Mark another two of the basic moves as advanced', + playbook: @spooky, + type: 'Improvements::AdvancedMove', + advanced: true + }, + { + description: 'Retire this hunter to safety.', + playbook: @spooky, + type: 'Improvements::Retire', + advanced: true + } + { + description: 'You discover how to use your powers at a lower price. + Delete one dark side tag permanently.', + playbook: @spooky, + advanced: true + }, + { + description: 'Get back one used Luck point.', + playbook: @spooky, + type: 'Improvements::RatingBoost', + stat_limit: 7, + rating: :luck, + advanced: true + }, + ].each do |improvement| + Improvement.find_or_create_by!(improvement) end +end \ No newline at end of file From 712c8b21b56643fa62682f95de8e3eb568b8f484 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 16:26:47 -0400 Subject: [PATCH 4/8] Proofread file further. --- db/seeds/playbooks/spooky.seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index 1cbd62c7..6047550b 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -17,7 +17,7 @@ You an also manipulate someone without speaking. You still roll moves as normal, except people will not expect the weirdness of your mental communication.' - } + }, { name: 'Hex', type: 'Moves::Descriptive', From 907bfcd591c6ee199c1ea80e3652268a3b47d1b3 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 16:34:26 -0400 Subject: [PATCH 5/8] Further proofreading. --- db/seeds/playbooks/spooky.seeds.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index 6047550b..554661e7 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -106,7 +106,7 @@ trying to do. Inflict 1-harm on the target due to an accident. The target finds something you left for them. The target loses something that you will soon find.' - }, + } ].each do |move| Move.find_or_create_by!(move) end @@ -141,7 +141,7 @@ name: 'Big knife', armor: 1, tag_list: %w[hand] - }, + } ].each do |gear_attrs| gear = Gear.find_or_create_by!( name: gear_attrs[:name], @@ -252,7 +252,7 @@ playbook: @spooky, type: 'Improvements::Retire', advanced: true - } + }, { description: 'You discover how to use your powers at a lower price. Delete one dark side tag permanently.', @@ -266,7 +266,7 @@ stat_limit: 7, rating: :luck, advanced: true - }, + } ].each do |improvement| Improvement.find_or_create_by!(improvement) end From c9f5a507b197952bb59b62308f0d4d74095898a6 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 16:39:13 -0400 Subject: [PATCH 6/8] Further proofreading. --- db/seeds/playbooks/spooky.seeds.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index 554661e7..709e1f8b 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -148,6 +148,7 @@ playbook: @spooky ) gear.update!(gear_attrs) + end ##### # Improvements From 78da8a48ce7858b3f4e13bb43d4d5195324c7a61 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 16:43:21 -0400 Subject: [PATCH 7/8] Further proofreading. --- db/seeds/playbooks/spooky.seeds.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index 709e1f8b..bab9f147 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -262,12 +262,10 @@ }, { description: 'Get back one used Luck point.', - playbook: @spooky, - type: 'Improvements::RatingBoost', - stat_limit: 7, - rating: :luck, + playbook: @chosen, + type: 'Improvements::GainLuck', advanced: true - } + }, ].each do |improvement| Improvement.find_or_create_by!(improvement) end From 5de4acde75f04c5c3ba7f31de112f8105e4e5179 Mon Sep 17 00:00:00 2001 From: JMHylton Date: Sat, 10 Oct 2020 17:02:49 -0400 Subject: [PATCH 8/8] Further proofreading. --- db/seeds/playbooks/spooky.seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds/playbooks/spooky.seeds.rb b/db/seeds/playbooks/spooky.seeds.rb index bab9f147..c997ec6d 100644 --- a/db/seeds/playbooks/spooky.seeds.rb +++ b/db/seeds/playbooks/spooky.seeds.rb @@ -262,7 +262,7 @@ }, { description: 'Get back one used Luck point.', - playbook: @chosen, + playbook: @spooky, type: 'Improvements::GainLuck', advanced: true },