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 by\xc5\x82 ju\xc5\xbc u\xc5\xbcyty: ')} ctype_dflt = {'drinkable': 'wod\xc4\x99', 'edible': 'pieczywo', 'fuel': 'olej'} ctype_map = {'drinkable': ['wod\xc4\x99', 'wino', 'piwo'], 'edible': ['pieczywo', 'jarzyna', 'mi\xc4\x99so'], 'fuel': ['olej']} |