blob: ed46343b1c0f37c0583c85b5a861a7dd01f6b74f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
load 'card.rb'
cards = []
card = Card.new
card.title = "Unarmed Strike"
card.color = 'goldenrod'
#card.attrib_top_left = '14'
#card.attrib_top_left_icon = '🩸'
#card.attrib_top_right = '2'
#card.attrib_top_right_icon = '🛡️'
card.attrib_bottom_right = '1'
card.attrib_bottom_right_icon = '🎲'
card.attrib_bottom_left = '1'
card.attrib_bottom_left_icon = '⚔️'
card.actions.push Card::Action.new(
content: 'Attack with a 🎲 **d4** roll. On success deal ⚔️ **1 damage**.',
symbol: :tap,
)
card.flavour = '"Savage"'
card.type = 'Innate Weapon'
cards.push card
card = Card.new
card.title = "Well Worn Knife"
card.color = 'rebeccapurple'
#card.attrib_top_left = '14'
#card.attrib_top_left_icon = '🩸'
#card.attrib_top_right = '2'
#card.attrib_top_right_icon = '🛡️'
card.attrib_bottom_right = '2'
card.attrib_bottom_right_icon = '🎲'
card.attrib_bottom_left = '1'
card.attrib_bottom_left_icon = '⚔️'
card.actions.push Card::Action.new(
content: 'Attack with a 🎲 **d6** roll. On success deal ⚔️ **Prescision+1 or Strength+1 damage**.',
symbol: :tap,
)
#card.actions.push Card::Action.new(
# content: 'Play an **even** ♠️ to un-tap',
# seperator: true,
#)
card.flavour = '"Only *slightly* better then a butter knife."'
card.type = 'Weapon'
cards.push card
card = Card.new
card.title = "Slingshot"
card.color = 'rebeccapurple'
#card.attrib_top_left = '14'
#card.attrib_top_left_icon = '🩸'
#card.attrib_top_right = '2'
#card.attrib_top_right_icon = '🛡️'
#card.attrib_bottom_right = '2'
#card.attrib_bottom_right_icon = '🎲'
#card.attrib_bottom_left = '1'
#card.attrib_bottom_left_icon = '⚔️'
card.actions.push Card::Action.new(
content: 'Attack with a 🎲 **d6** roll. On success deal ⚔️ **Prescision damage**.',
symbol: :tap,
)
card.actions.push Card::Action.new(
content: 'Ranged: This weapon avoids melee reposte attacks.',
seperator: true,
)
card.flavour = '"Only a troublemaker would use this."'
card.type = 'Weapon'
cards.push card
File.write('card.html', Card.build(cards))
|