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

inform.py
 
Python's mirror of C's inform.c -- contains various functions that perform
informative duties. Examining places/things, displaying proper names, etc...

 
Modules
       
char
display
hooks
mud
mudsock
string
utils

 
Functions
       
__unload__()
things that need to be detached when the module is un/reloaded
build_who(ch=None)
returns a formatted list of all the people currently online
count_weight(ch)
Count weight of equipment of character. Returns list - 0 all items, 1 - equipment, 2 - inventory, 3 - max capacity.
equipment_look_hook(info)
displays a character's equipment when looked at
exit_look_hook(info)
list_one_exit(ch, ex, dir)
list_one_furniture(ch, obj)
list the contents of a piece of furniture to the character.
list_room_contents(ch, room)
list_room_exits(ch, room, filter_compass=False)
room_look_hook(info)
diplays info about the room contents
show_equipment(ch, tgt)
shows ch tgt's equipment

 
Data
        cardinal_dirs = ['p\xc3\xb3\xc5\x82noc', 'po\xc5\x82udnie', 'wsch\xc3\xb3d', 'zach\xc3\xb3d']
compass_dirs = ['p\xc3\xb3\xc5\x82noc', 'po\xc5\x82udnie', 'wsch\xc3\xb3d', 'zach\xc3\xb3d', 'p\xc3\xb3\xc5\x82nocny-wsch\xc3\xb3d', 'p\xc3\xb3\xc5\x82nocny-zach\xc3\xb3d', 'po\xc5\x82udniowy-zach\xc3\xb3d', 'po\xc5\x82udniowy-wsch\xc3\xb3d']