ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/treasure.c
(Generate patch)

Comparing deliantra/server/common/treasure.c (file contents):
Revision 1.3.2.2 by elmex, Thu Aug 10 19:09:02 2006 UTC vs.
Revision 1.3.2.3 by elmex, Thu Aug 10 19:33:32 2006 UTC

1 1
2/* 2/*
3 * static char *rcs_treasure_c = 3 * static char *rcs_treasure_c =
4 * "$Id: treasure.c,v 1.3.2.2 2006/08/10 19:09:02 elmex Exp $"; 4 * "$Id: treasure.c,v 1.3.2.3 2006/08/10 19:33:32 elmex Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
806 set_magic (difficulty, op, max_magic, flags); 806 set_magic (difficulty, op, max_magic, flags);
807 807
808 num_enchantments = calc_item_power (op, 1); 808 num_enchantments = calc_item_power (op, 1);
809 809
810 if ((!was_magic && !(RANDOM () % CHANCE_FOR_ARTIFACT)) 810 if ((!was_magic && !(RANDOM () % CHANCE_FOR_ARTIFACT))
811 || op->type == HORN) 811 || op->type == HORN
812 || difficulty >= settings.max_level) /* high difficulties always generate an artifact,
813 * used for shop_floors or treasures */
812 generate_artifact (op, difficulty); 814 generate_artifact (op, difficulty);
813 } 815 }
814 816
815 /* Object was made an artifact. Calculate its item_power rating. 817 /* Object was made an artifact. Calculate its item_power rating.
816 * the item_power in the object is what the artfiact adds. 818 * the item_power in the object is what the artfiact adds.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines