diff options
author | David Gay <david@davidgay.org> | 2021-05-28 15:47:49 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-28 15:47:49 -0400 |
commit | 9370f9b5803ce604dd63c8590d67e03968198cad (patch) | |
tree | 9fb2964161c8adf4478e8a7d63385e560e184a6d | |
parent | 41c25cb3ef03aef7725f7717a8bb9c8cec411975 (diff) |
Default combat styles
-rw-r--r-- | app/models/character.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/character.rb b/app/models/character.rb index f0705f9..26671f3 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -19,8 +19,8 @@ class Character < ApplicationRecord attribute :wounds, :integer, default: 0 - enum offensive_style: [:balanced, :precise, :brutal] - enum defensive_style: [:centered, :elusive, :protective] + enum offensive_style: [:balanced, :precise, :brutal], _default: "balanced" + enum defensive_style: [:centered, :elusive, :protective], _default: "centered" after_create :create_skills, :set_combat_styles after_create { Hearth.create(character: self) } |