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

traps.py
 
Traps item type.

 
Modules
       
auxiliary
damage
gainlevel
hooks
mud
mudsock
mudsys
olc
storage
utils

 
Classes
       
TrapData

 
class TrapData
    Data for traps.
 
  Methods defined here:
__init__(self, set=None)
Standard class constructor.
copy(self)
copyTo(self, to)
store(self)

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

 
Functions
       
__unload__()
remove all hooks.
cmd_disarm(ch, cmd, arg)
Disarm trap.
trap_fire_hook(info)
fire trap and made damage to everyone in room, when someone left room.
trapolc_chooser(sock, data, option)
figure out what we want to edit, and display a prompt.
trapolc_menu(sock, data)
display our menu interface
trapolc_parser(sock, data, choice, arg)
parse out what we want to change a specified field to
trapolc_to_proto(data)
return a script that will generate relevant info to create this item

 
Data
        __TRAPOLC_DAMAGE__ = 3
__TRAPOLC_DISARM__ = 2
__TRAPOLC_TYPE__ = 1
trapolc_opt_map = {'1': (1, 'Wybierz typ: '), '2': (2, 'Wprowad\xc5\xba trudno\xc5\x9b\xc4\x87 rozbrojenia: '), '3': (3, 'Wprowad\xc5\xba ilo\xc5\x9b\xc4\x87 zadawanych obra\xc5\xbce\xc5\x84: ')}
traps_types = {'kamienie': ['crush', 'spadaj\xc4\x85 kamienie'], 'ostrza': ['cut', 'wyskakuj\xc4\x85 ostrza'], 'strza\xc5\x82ki': ['impaling', 'wylatuj\xc4\x85 strza\xc5\x82ki']}