Class: PathfinderDeckBuilder::SpellCard
- Inherits:
-
Card
- Object
- Card
- PathfinderDeckBuilder::SpellCard
show all
- Defined in:
- lib/spell_card.rb
Instance Attribute Summary
Attributes inherited from Card
#class_cards, #class_path, #index
Instance Method Summary
collapse
Methods inherited from Card
#initialize, #set_multiple_character_path, #set_paths, #set_single_character_path
Instance Method Details
#assembled_card(path) ⇒ Object
14
15
16
|
# File 'lib/spell_card.rb', line 14
def assembled_card(path)
super
end
|
#create_card(index = nil) ⇒ Object
6
7
8
|
# File 'lib/spell_card.rb', line 6
def create_card(index=nil)
super
end
|
#set_class_path ⇒ Object
10
11
12
|
# File 'lib/spell_card.rb', line 10
def set_class_path
@class_path = @spell_path
end
|
#static_content ⇒ Object
18
19
20
21
22
23
24
|
# File 'lib/spell_card.rb', line 18
def static_content
{
"count": 1,
"color": "green",
"title": "Spell"
}
end
|
#variable_content(path) ⇒ Object
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/spell_card.rb', line 26
def variable_content(path)
{
"icon": "white-book-#{path["level"]}",
"contents": [
"subtitle | #{path["name"]}",
"rule",
"property | Class | #{path["class"]}",
"property | Level | #{path["level"]}",
"property | Cast Time | #{path["casttime"]}",
"property | Duration | #{path["duration"]}",
"property | Range | #{path["range"]}",
"property | Target | #{path["target"]}",
"property | Area | #{path["area"]}",
"fill",
"section | Description",
"text | #{path["description"]}"[0..318]
]
}
end
|