Class: Gemwarrior::Dagger

Inherits:
Item show all
Defined in:
lib/gemwarrior/entities/items/dagger.rb

Instance Attribute Summary

Attributes inherited from Item

#atk_hi, #atk_lo, #equippable, #equipped, #reuse, #takeable, #use, #useable

Attributes inherited from Entity

#description, #name

Instance Method Summary collapse

Methods inherited from Item

#describe

Methods inherited from Entity

#status

Constructor Details

#initializeDagger

Returns a new instance of Dagger.



8
9
10
11
12
13
14
15
16
17
# File 'lib/gemwarrior/entities/items/dagger.rb', line 8

def initialize
  self.name         = 'dagger'
  self.description  = 'Flint that has been sharpened to a point, attached to a block of smooth granite by thin rope. Truly a work of art.'
  self.atk_lo       = 2
  self.atk_hi       = 4
  self.takeable     = true
  self.useable      = false
  self.equippable   = true
  self.equipped     = false
end