Class: Gemwarrior::Stalactite

Inherits:
Weapon show all
Defined in:
lib/gemwarrior/entities/weapons/stalactite.rb

Instance Attribute Summary

Attributes inherited from Weapon

#atk_hi, #atk_lo, #dex_mod, #is_weapon

Attributes inherited from Item

#is_armor, #is_weapon

Attributes inherited from Entity

#consumable, #describe, #describe_detailed, #description, #display_shopping_cart, #equippable, #equipped, #name, #name_display, #number_of_uses, #takeable, #talkable, #useable, #useable_battle, #used, #used_again

Instance Method Summary collapse

Methods inherited from Weapon

#describe_detailed

Methods inherited from Item

#describe_detailed

Methods inherited from Entity

#puts

Constructor Details

#initializeStalactite

Returns a new instance of Stalactite.



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

def initialize
  super

  self.name         = 'stalactite'
  self.name_display = 'Stalactite'
  self.description  = 'Long protrusion of cave adornment, broken off and fallen to the ground, where the stalagmites sneer at it from.'
  self.atk_lo       = 2
  self.atk_hi       = 3
  self.dex_mod      = -1
end

Instance Method Details

#use(world) ⇒ Object



19
20
21
22
# File 'lib/gemwarrior/entities/weapons/stalactite.rb', line 19

def use(world)
  puts 'You wave the stalactite around in the air a bit, testing its weight and precision. It is a thin, long piece of rock taken from a cave wall, for sure, though.'
  { type: nil, data: nil }
end