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

gathering.py
 
Provide data and functions for gathering materials.

 
Modules
       
gainlevel
hooks
mud
mudsys
obj
olc
random
storage
utils

 
Classes
       
ResourceData

 
class ResourceData
    Data for resources.
 
  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__ = 'resource'

 
Functions
       
__unload__()
remove all hooks.
cmd_gather(ch, cmd, arg)
Usage: zbieraj <object>
 
Gather resources from selected object.
resolc_chooser(sock, data, option)
figure out what field we want to edit, and display a prompt.
resolc_menu(sock, data)
display our menu interface.
resolc_parser(sock, data, choice, arg)
parse out what we want to change a specified field to.
resolc_to_proto(data)
return a script that will generate relevant info to create this item.
resource_desc_info(info)
append informations about resource available from object to description
buffer when person looks at it.
resource_reset_zone(info)
grow a plant resources.

 
Data
        __RESOLC_AMOUNT__ = 2
__RESOLC_DIFF__ = 6
__RESOLC_MAXAMOUNT__ = 3
__RESOLC_RESOURCE__ = 4
__RESOLC_TOOL__ = 5
__RESOLC_TYPE__ = 1
res_types = {'mineral': 'G\xc3\xb3rnictwo', 'plant': 'Zielarstwo', 'tree': 'Drwalnictwo'}
resolc_opt_map = {'1': (1, 'Wybierz typ: '), '2': (2, 'Podaj obecn\xc4\x85 ilo\xc5\x9b\xc4\x87 zasob\xc3\xb3w: '), '3': (3, 'Podaj maksymaln\xc4\x85 ilo\xc5\x9b\xc4\x87 zasob\xc3\xb3w: '), '4': (4, 'Podaj nazw\xc4\x99 zasobu do zbierania: '), '5': (5, 'Podaj nazw\xc4\x99 narz\xc4\x99dzia do zbierania lub none: '), '6': (6, 'Podaj trudno\xc5\x9b\xc4\x87 zbierania zasob\xc3\xb3w: ')}