A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/build/food


These are the rules concerning portable food:

The total amount of sold healing per reset must not exceed 3000 hp.
A maximum of 200 hp may be sold to one customer per reset. The cost
of such healing is calculated using this formula:

x = The amount of healing sold.

Cost = 4*x + x^2/10

This means that the more healing an item contains, the more expensive 
it gets. These items must have a weight of at least 1.

The "strength" of the food is equal to the amount of healing it makes to 
the player when he eats it. Typically this strength should not exceed 50.

Use the file "obj/food" for cloning and inherting purposes. Please read 
the file find out which functions to call.

Examples of food and drink and an inn selling these items can be found in
/lib/food/curry.c, /lib/drink/beer.c and
/room/inn.c . Type "goto /room/inn" just to visit it.


This page was generated in LPC

Imprint / Impressum