Class: Gemwarrior::Rockney

Inherits:
Person show all
Defined in:
lib/gemwarrior/entities/people/rockney.rb

Constant Summary collapse

PRICE_HERB =

CONSTANTS

10
PRICE_DAGGER =
150
PLAYER_ROX_INSUFFICIENT =
'Pity. You are a bit short on funds to purchase that item.'
PLAYER_ITEMS_ADDITIONAL =
'Anything else?'
PLAYER_COMMAND_INVALID =
'Huh?'

Instance Attribute Summary

Attributes inherited from Creature

#atk_hi, #atk_lo, #defense, #dexterity, #face, #hands, #hp_cur, #hp_max, #inventory, #level, #mood, #rox, #speak, #xp

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 Creature

#describe, #describe_detailed

Methods inherited from Entity

#puts

Constructor Details

#initializeRockney

Returns a new instance of Rockney.



17
18
19
20
21
22
23
24
# File 'lib/gemwarrior/entities/people/rockney.rb', line 17

def initialize
  super

  self.name         = 'rockney'
  self.name_display = 'Rockney'
  self.description  = 'The rat with a name looks at you, not with malice, but with kindness. Odd for a rodent hiding in a hole in a dark, metal tunnel.'
  self.talkable     = true
end

Instance Method Details

#use(world) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/gemwarrior/entities/people/rockney.rb', line 26

def use(world)
  if !self.used
    puts 'You\'re not sure what to expect when you confront the small animal living in the crevice, but you figure it\'s this or doing anything else at all, so...'
    puts
  end

  rat_shop(world)
end