Class: GamesAndRpgParadise::Mud::FalconBreastplate
- Includes:
- Singleton
- Defined in:
- lib/games_and_rpg_paradise/mud/objects/armours/falcon_breastplate.rb
Overview
GamesAndRpgParadise::Mud::FalconBreastplate
Constant Summary
Constants inherited from MudObject
MudObject::DEFAULT_NAME, MudObject::NAMESPACE
Instance Method Summary collapse
-
#create_breastplate ⇒ Object
# === create_breastplate ========================================================================= #.
-
#initialize ⇒ FalconBreastplate
constructor
# === initialize ========================================================================= #.
Methods inherited from Armour
#reset, #set_armourclass, #set_material_type
Methods inherited from MudObject
[], #add, #add_prop, #add_to_inventory, #alias_action, #can_speak?, #define_action, #describe_the_mud_object, #description?, disable_debug, #empty?, enable_debug, #enable_speak, #find, #has_inventory?, #height?, #id?, #inspect, #internal_hash?, #inventory?, #is_armour?, #is_inventory?, #is_mud_object?, #is_weapon?, #is_wearable?, #length?, #method_missing, #name=, #name?, #obtain_name_from_filename, #random_inventory_element, #report_height, #report_weight, #reset, #run, #set_description, #set_height, #set_is_an_armour, #set_is_inventory, #set_is_wearable, #set_length, #set_name, #set_object_name, #set_value, #set_weight, shall_we_debug?, #show_inventory, #store, #store_where?, #value?, #wear, #wearables?, #weight?, #who_am_i?, #wields?
Constructor Details
#initialize ⇒ FalconBreastplate
#
initialize
#
30 31 32 |
# File 'lib/games_and_rpg_paradise/mud/objects/armours/falcon_breastplate.rb', line 30 def initialize super() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class GamesAndRpgParadise::Mud::MudObject
Instance Method Details
#create_breastplate ⇒ Object
#
create_breastplate
#
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/games_and_rpg_paradise/mud/objects/armours/falcon_breastplate.rb', line 37 def create_breastplate set_quality(90+rand(11)) max_quality(100) armourclass(:good) set_height(40) set_weight 5500 set_value value?+250 # breastplate = this_item # ======================================================================= # # === touch_breastplate # ======================================================================= # action( 'touch_breastplate', invoke_command: 'touch', actionslots: 'AS_MOTOR|AS_ARMS|AS_HANDS' ) # ======================================================================= # # === try_a_wingattack # ======================================================================= # action( 'try_a_wingattack', invoke_command: 'wingattack', actionslots: 'AS_SEE|AS_MOTOR|AS_ARMS|AS_HANDS' ) # ======================================================================= # # === try_a_wingattack # ======================================================================= # action( 'try_a_wingattack', 'wattack', actionslots: 'AS_SEE|AS_MOTOR|AS_ARMS|AS_HANDS' ); alias_action 'wingattack', 'wattack' # ======================================================================= # # === pluck_feathers # ======================================================================= # action('pluck_feathers','pluck', actionslots: 'AS_SEE|AS_MOTOR|AS_ARMS|AS_HANDS' ) end |