From the NannyMUD documentation
2001-10-06
NAME
pub - Rules on pubs etc.DESCRIPTION
This file deals with places etc. where you buy things to eat and drink. It also deals with the healing properties of foods etc. The word 'pub' is used in a broad sense, including bars, restaurants, pubs, coffee-shops etc. THE PUB IN THE VILLAGE The pub in the village is hereby excempt from those rules. It is the one pub that no other pubs must surpass. The admin feel that the village area needs this advantage. GENERAL POINTS * All pubs requires permission. * A pub might be allowed in an area with 50-75 locations or more. * Keep very long distances between the pubs, yours as well as others. * Things sold in the pub should be consumed there, too. * Add the property "healing_place" with the argument "pub" to the room. * Sell a limited amount per reset. DRINKING AND EATING All drinks must make the drinker less thirsty, and alcoholic drinks must also make people (more) drunk. Food eaten must make the eater (more) stuffed. Often the drink/food will heal the player. This heal must be less than the strength of the item, and at most equal to 50. NON-HEALING DRINKS Some pubs etc. sell beverages that have no healing at all, but instead jus makes the drinker intoxicated, thus speeding up his healing rate. Such drink can have a max strength of 50, and can be sold for half the price they would have if they healed the same amount. No more than 1000 strength/soak/stuff are allowed per reset. THINGS TO USE Look at the objects in the /std dir: simple_food.c, simple_drink.c, smorgasbord.c, complex_drink.c and complex_food.c . Those standard objects are there for your and our convenience. Use them as far as possible. CREATING YOUR OWN If you make your own food and drink, be sure to call some functions in the player object when they are used: drink_alcohol(), drink_soft() and eat_food(), all with the strength as an argument.