Class: Card::Hero

Inherits:
Purchaseable show all
Defined in:
lib/ascension/card.rb

Instance Attribute Summary

Attributes inherited from Purchaseable

#rune_cost

Attributes inherited from Base

#name, #realm

Attributes included from HonorEarned

#honor_earned

Class Method Summary collapse

Methods inherited from Purchaseable

#mechana?

Methods inherited from Base

#apply_abilities, #apply_triggers, #basic_card?, #construct?, #hero?, #hydrated, #monster?, #to_s

Class Method Details

.apprenticeObject



86
87
88
# File 'lib/ascension/card.rb', line 86

def apprentice
  new(:runes => 1, :name => "Apprentice")
end

.arhaObject



101
102
103
104
105
# File 'lib/ascension/card.rb', line 101

def arha
  new(:rune_cost => 1, :name => "Arha Initiate").tap do |h|
    h.abilities << Ability::Draw.new
  end
end

.heavy_infantryObject



95
96
97
# File 'lib/ascension/card.rb', line 95

def heavy_infantry
  new(:power => 2, :name => "Heavy Infantry", :rune_cost => 2)
end

.militiaObject



92
93
94
# File 'lib/ascension/card.rb', line 92

def militia
  new(:power => 1, :name => 'Militia')
end

.mysticObject



89
90
91
# File 'lib/ascension/card.rb', line 89

def mystic
  new(:runes => 2, :name => 'Mystic', :rune_cost => 3)
end

.standinObject



98
99
100
# File 'lib/ascension/card.rb', line 98

def standin
  new(:rune_cost => 2, :name => "Standin")
end