summaryrefslogtreecommitdiffhomepage
path: root/cards/card.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-11-17 05:49:52 -0500
committerrealtradam <[email protected]>2022-11-17 05:49:52 -0500
commitbd533784f699ca8134bee34c5ff29275f8e57f9f (patch)
tree650648c1ce1b0a3af695278803031085c8a011f0 /cards/card.rb
parent683e652c96cbe50f1fd893a72601075e01630e99 (diff)
downloadPlore-Tabletop-Game-bd533784f699ca8134bee34c5ff29275f8e57f9f.tar.gz
Plore-Tabletop-Game-bd533784f699ca8134bee34c5ff29275f8e57f9f.zip
added spells, class abilities. reworked weapons.
Diffstat (limited to 'cards/card.rb')
-rw-r--r--cards/card.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/cards/card.rb b/cards/card.rb
index 2a9af5b..1521e77 100644
--- a/cards/card.rb
+++ b/cards/card.rb
@@ -23,10 +23,12 @@ class Card
attrib_top_right_icon: '🩸',
blood: nil,
attrib_top_left: nil,
- attrib_top_left_icon: '🛡️',
+ attrib_top_left_icon: '🎲',
+ roll: nil,
attrib_bottom_right: nil,
attrib_bottom_right_icon: '🛡️',
reposte: nil,
+ defence: nil,
attrib_bottom_left: nil,
attrib_bottom_left_icon: '⚔️',
damage: nil,
@@ -35,8 +37,10 @@ class Card
type: nil
)
attrib_top_right ||= blood.to_s unless blood.nil?
+ attrib_bottom_right ||= defence.to_s unless defence.nil?
attrib_bottom_right ||= reposte.to_s unless reposte.nil?
attrib_bottom_left ||= damage.to_s unless damage.nil?
+ attrib_top_left ||= roll.to_s unless roll.nil?
self.title = title
self.color = color
self.attrib_top_left = attrib_top_left