Class: Gemwarrior::WareHawker
- Defined in:
- lib/gemwarrior/entities/people/ware_hawker.rb
Constant Summary collapse
- PRICE_IRON_HELMET =
CONSTANTS
100- PRICE_MACE =
200- PRICE_SPEAR =
250- PLAYER_ROX_INSUFFICIENT =
'You have insufficient rox to purchase that. Quit testing me, human.'- PLAYER_ITEMS_ADDITIONAL =
'Will there be something else?'- PLAYER_COMMAND_INVALID =
'That means nothing to me.'
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
-
#initialize ⇒ WareHawker
constructor
A new instance of WareHawker.
- #use(world) ⇒ Object
Methods inherited from Creature
Methods inherited from Entity
Constructor Details
#initialize ⇒ WareHawker
Returns a new instance of WareHawker.
19 20 21 22 23 24 25 |
# File 'lib/gemwarrior/entities/people/ware_hawker.rb', line 19 def initialize super self.name = 'ware_hawker' self.name_display = 'Ware Hawker' self.description = 'A literal anthropomorphic hawk has set up shop behind a crudely-made table. Some wares are scattered atop its surface, seemingly within anyone\'s grasp, but the hawk\'s piercing eyes seem to belie this observation.' end |
Instance Method Details
#use(world) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/gemwarrior/entities/people/ware_hawker.rb', line 27 def use(world) if !self.used puts 'You greet the hawk, mentioning that you are interested in the objects presented.' STDIN.getc puts 'The hawk speaks in a beautiful, yet commanding, tone:' end hawk_shop(world) end |