consumable | index /home/thindil/Projekty/anaria/server/lib/pymodules/consumable.py |
consumable.py
Consumable item type. By default, implements edible and drinkable. Allows
players to add new consumable types, and subtypes (liquor, water, juice, ...?).
Comes with OLC object interface.
This module has been designed to allow for easy addition of a potion/pill
system. When an item is consumed, consume hooks are run (in addition to eat
and drink hooks). Magical affects can piggyback on to this, in addition to
other special things like extracting depleted flasks.
Modules | ||||||
|
Classes | ||||||||||
|
Functions | ||
|
Data | ||
__CONSOLC_MAX_USES__ = 3 __CONSOLC_SUBTYPE__ = 2 __CONSOLC_TYPE__ = 1 __CONSOLC_USES__ = 4 consolc_opt_map = {'1': (1, 'Wybierz typ: '), '2': (2, 'Wybierz podtyp: '), '3': (3, 'Wprowad\xc5\xba maksymaln\xc4\x85 liczb\xc4\x99 u\xc5\xbcy\xc4\x87: '), '4': (4, 'Wprowad\xc5\xba ile razy mo\xc5\xbce by\xc4\x87 jeszcze u\xc5\xbcyty: ')} ctype_dflt = {'drinkable': 'wod\xc4\x99', 'edible': 'pieczywo', 'fuel': 'olej'} ctype_map = {'drinkable': ['wod\xc4\x99', 'wino', 'piwo', 's\xc5\x82aby nap\xc3\xb3j lecz\xc4\x85cy', 'nap\xc3\xb3j lecz\xc4\x85cy', 'silny nap\xc3\xb3j lecz\xc4\x85cy', 'kaw\xc4\x99'], 'edible': ['pieczywo', 'jarzyna', 'mi\xc4\x99so', 's\xc5\x82abe zio\xc5\x82a lecz\xc4\x85ce', 'zio\xc5\x82a lecz\xc4\x85ce', 'silne zio\xc5\x82a lecz\xc4\x85ce', 'zio\xc5\x82a wzmacniaj\xc4\x85ce'], 'fuel': ['olej']} |