--- crossfire/common ---


Protocol:pserver User:anonymous
Machine:crossfire.cvs.sourceforge.net CVSROOT:/cvsroot/crossfire

Filename: recipe.c
Revision 1.17akirschbaum 2006/05/21 14:06:05 +3 -1
Improve comment.
Show difference between Revision 1.16 and 1.17
Revision 1.16tchize 2006/04/06 16:18:34 +1 -1

finished common/arch.c unit test, fixed a few bugs, moved function around and renamed other
Show difference between Revision 1.15 and 1.16
Revision 1.15akirschbaum 2006/02/08 18:48:36 +3 -3
Apply patch #1427979 (code-cleanup: add const, fix warnings) by Stefan
Huehner.
Show difference between Revision 1.14 and 1.15
Revision 1.14akirschbaum 2005/12/05 17:34:03 +4 -4
Apply patch #1371956 (code cleanup patch) by Stefan Huehner: fix old-style
function declarations and prototypes to proper Ansi C syntax. This patch
allows the compiler to check function arguments and also removes some warnings
when compiling with -Wstrict-prototypes.
Show difference between Revision 1.13 and 1.14
Revision 1.13akirschbaum 2005/10/31 15:23:00 +72 -33
Fix bug #1102975 (Bronze items not keeping their + in alchemy): the problem
was that a formula for full_helmet did exist but not for b_full_helmet. Since
both helmet's names are "full helmet", the recipe was selected even if using
the ingredient b_full_helmet. This fix adds new formulae for alternative
archetypes with the same name as the base object, and makes the server code
select the matching formula from multiple arch names in the "arch" field.
Show difference between Revision 1.12 and 1.13
Revision 1.12ryo_saeba 2005/08/12 08:46:34 +9 -5
Fields changed from char* to const char*, cleanup.
Show difference between Revision 1.11 and 1.12
Revision 1.11ryo_saeba 2005/08/12 03:18:59 +6 -6
Use const char* instead of char* when possible
Show difference between Revision 1.10 and 1.11
Revision 1.10ryo_saeba 2005/04/16 17:05:08 +1 -1
Use const char* instead of char* in function parameters
Show difference between Revision 1.9 and 1.10
Revision 1.9crowbert 2005/01/15 13:19:26 +3 -2
print skill used for formula with -m7 and -m9 options
Show difference between Revision 1.8 and 1.9
Revision 1.8mwedel 2003/09/13 00:01:30 +0 -9
Updated code for skill + spell code. skills and spells are now objects.
tuning these now means changing the archetypes. New spells can now
be added just by making a new archetype. Lots of code cleanup
also done.
MSW 2003-09-12
Show difference between Revision 1.7 and 1.8
Revision 1.7garbled 2003/01/29 18:07:08 +10 -17
New materialtype system for crossfire. Based in concept on my original
design, but rewritten from scratch to make it easily extensible.

In a nutshell:

Each of the old materialtypes (metal, glass, stone, wood) are now a class
of materials. When an item in the game is created, if it does not have a
specific materialname of it's own, a materialname is generated randomly
from the matching entries in the "lib/materials" file. This file
contains all of the saving throws, and other material specific
modifications for each of the expanded materials.

Materials can be manually specified in the arch with the "materialname"
directive. Such as the gold coins, which are specified to be made of,
you guessed it, gold.

Saving throws have been slightly rewritten to use the new materialtypes,
and a few other minor details associated with materialtypes have been
patched up.

Adding a new type of stone or wood, is as simple as adding a new entry in
the lib/materials file. The game will automatically start distributing
them around randomly.
Show difference between Revision 1.6 and 1.7
Revision 1.6garbled 2003/01/08 22:20:26 +10 -0
Rewrite alchemy slightly. Now in the formula, we include a difficulty
(percentage) and the experience value for the formula. We no longer
adjust the experience given by the difficulty of the map. We no longer
use the number of items to determine difficulty, rather we use the
difficulty rating in the formula. We no longer multiply the experience
given by the yield of the product, one "casting" one exp. When writing
formulae, calculate the difficulty in when setitng the exp, because it is
not multiplied in any way.

Fix a bug in Mark's new armour enchantment stuff. Send the item to the
player, otherwise they mysteriously dissapear, and only add the split
items back if they were spilt, avoiding a segv when enchanting a single
piece of armour.

Change alchemy skills to only utilize cauldrons directly beneath the
user.. the other behavior was getting annoying.

This should slow down the abusive nature of alchemy. The exp settings
and difficulty levels probably should be tuned better. Feel free.
Show difference between Revision 1.5 and 1.6
Revision 1.5garbled 2002/11/11 02:59:09 +19 -3
New alchemy code, as discussed on the developer list. Now recipies include
two new tags: skill and cauldron. With skill, you can set which skill
activates this recipie, and the cauldron, corresponds to the arch name of
the facility you will use when creating the item. In this way, item
creation is now more generalized than just alchemy, and specific formulae
can be written to utilize different skills, or perhaps special formulae
would require a hard-to-find cauldron.

Functionally, the alchemy, or alchemy-like-skills are now activated by
the use_skill command. The secondary use of the alchemy spell has been
withdrawn, so now it functions in the way it was originally intended again.
Show difference between Revision 1.4 and 1.5
Revision 1.4avogl 2002/03/11 16:05:19 +0 -1
uups, forgot a testing-printf in
the get_random_receipe() function
Show difference between Revision 1.3 and 1.4
Revision 1.3avogl 2002/03/11 14:58:50 +6 -3
Fixed a crash-bug in the get_random_receipe()
function. There was a possible modulo-division
through zero.
Show difference between Revision 1.2 and 1.3
Revision 1.2cvs 1999/08/02 19:33:17 +4 -0
Changes allowing for a keycode in the alchemical recipes.
Now, if the formula has a field called 'keycode xxxx',
the person must possess a MARK with 'slaying xxxx'
in order to execute the formula successfully.
Show difference between Revision 1.1 and 1.2
Revision 1.1uid200 1999/04/02 13:10:03 None
Initial revision
First version
Revision 1.1.1.1uid200 1999/04/02 13:10:03 +0 -0
First CVS revsion: crossfire-0.95.3
Show difference between Revision 1.1 and 1.1.1.1


File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:17