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

armors.py
 
Armors item type.

 
Modules
       
auxiliary
hooks
mud
mudsock
mudsys
olc
storage
utils

 
Classes
       
ArmorData

 
class ArmorData
    Data for armors - type, subtype and resistance
 
  Methods defined here:
__init__(self, set=None)
copy(self)
copyTo(self, to)
store(self)

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

 
Functions
       
__unload__()
remove all hooks.
armolc_chooser(sock, data, option)
figure out what field we want to edit, and display a prompt
armolc_menu(sock, data)
display our menu interface
armolc_parser(sock, data, choice, arg)
parse out what we want to change a specified field to
armolc_to_proto(data)
return a script that will generate relevant info to create this item
armor_desc_info(info)
appends armor information about an object to the description
buffer when a person looks at it.
get_armor_dflt(type)
get the default subtype for a armor
get_armor_subtypes(type)
list all subtypes for a armor
get_armor_types()
list all armors types
is_armor_subtype(type, subtype)
return whether subtype is a registered subtype for type
is_armor_type(type)
return whether type is a registered armor type
register_armor_subtype(type, subtype)
create a new subtype for the specified armor type
register_armor_type(type, dflt_subtype='unknown')
create a new armor type, and add a default subtype

 
Data
        __ARMOLC_RESISTANCE__ = 3
__ARMOLC_SUBTYPE__ = 2
__ARMOLC_TYPE__ = 1
armolc_opt_map = {'1': (1, 'Wybierz typ: '), '2': (2, 'Wybierz podtyp: '), '3': (3, 'Wprowad\xc5\xba obron\xc4\x99: ')}
atype_dflt = {'armor': 'skin', 'shield': 'small'}
atype_map = {'armor': ['skin', 'chain', 'plate'], 'shield': ['small', 'medium', 'large']}