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

poisons.py
 
Poison item type.

 
Modules
       
mud
mudsys
olc
storage
utils

 
Classes
       
PoisonData

 
class PoisonData
    Data for poisons.
 
  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__ = 'poison'

 
Functions
       
cmd_poison(ch, cmd, arg)
Usage: zatruj <poison> <object>
 
Try to poison selected object with selected poison.
poiolc_chooser(sock, data, option)
figure out what we want to edit, and display a prompt.
poiolc_menu(sock, data)
display our menu interface.
poiolc_parser(sock, data, choice, arg)
parse out what we want to change a specified field to.
poiolc_to_proto(data)
return a script that will generate relevant info to create this item.

 
Data
        __POIOLC_DURATION__ = 2
__POIOLC_STRENGTH__ = 1
__POIOLC_TYPE__ = 4
__POIOLC_VALUE__ = 3
poiolc_opt_map = {'1': (1, 'Podaj si\xc5\x82\xc4\x99 trucizny: '), '2': (2, 'Podaj czas dzia\xc5\x82ania trucizny: '), '3': (3, 'Podaj warto\xc5\x9b\xc4\x87 trucizny: '), '4': (4, 'Wybierz typ trucizny: ')}
poison_types = ['damage']