weapons
index
/home/thindil/Projekty/anaria/server/lib/pymodules/weapons.py

weapons.py
 
Weapons item type.

 
Modules
       
auxiliary
hooks
mud
mudsock
mudsys
olc
storage
utils

 
Classes
       
WeaponData

 
class WeaponData
    Data for weapons - type, subtype, damage and skill
 
  Methods defined here:
__init__(self, set=None)
copy(self)
copyTo(self, to)
store(self)

Data and other attributes defined here:
__item_type__ = 'weapon'

 
Functions
       
get_weapon_dflt(type)
get the default subtype for a weapon
get_weapon_subtypes(type)
list all subtypes for a weapon
get_weapon_types()
list all weapons types
is_weapon_subtype(type, subtype)
return whether subtype is a registered subtype for type
is_weapon_type(type)
return whether type is a registered weapon type
register_weapon_subtype(type, subtype)
create a new subtype for the specified weapon type
register_weapon_type(type, dflt_subtype='unknown')
create a new weapon type, and add a default subtype
weapolc_chooser(sock, data, option)
figure out what field we want to edit, and display a prompt
weapolc_menu(sock, data)
display our menu interface
weapolc_parser(sock, data, choice, arg)
parse out what we want to change a specified field to
weapolc_to_proto(data)
return a script that will generate relevant info to create this item
weapon_desc_info(info)
appends weapon information about an object to the description
buffer when a person looks at it.

 
Data
        __WEAPOLC_DAMAGE__ = 3
__WEAPOLC_PREPARE__ = 5
__WEAPOLC_SKILL__ = 4
__WEAPOLC_SUBTYPE__ = 2
__WEAPOLC_TYPE__ = 1
weapolc_opt_map = {'1': (1, 'Wybierz typ: '), '2': (2, 'Wybierz podtyp: '), '3': (3, 'Wprowad\xc5\xba zadawane obra\xc5\xbcenia: '), '4': (4, 'Wprowad\xc5\xba umi\xc4\x99jetno\xc5\x9b\xc4\x87: '), '5': (5, 'Wprowad\xc5\xba op\xc3\xb3\xc5\xbanienie: ')}
wtype_dflt = {'melee': 'cut'}
wtype_map = {'melee': ['cut', 'impaling', 'crush']}