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.105 by root, Thu Apr 15 04:56:47 2010 UTC vs.
Revision 1.106 by elmex, Wed Apr 21 09:30:07 2010 UTC

1055 if (creator->slaying && !op->slaying) /* for check_inv floors */ 1055 if (creator->slaying && !op->slaying) /* for check_inv floors */
1056 op->slaying = creator->slaying; 1056 op->slaying = creator->slaying;
1057 break; 1057 break;
1058 1058
1059 case SPELLBOOK: 1059 case SPELLBOOK:
1060 op->value = op->value * op->inv->value; 1060 op->value *=
1061 pow ((op->inv->value > 0 ? op->inv->value : 1)
1062 * op->inv->level,
1063 1.5);
1061 /* add exp so learning gives xp */ 1064 /* add exp so learning gives xp */
1062 op->level = op->inv->level; 1065 op->level = op->inv->level;
1063 op->stats.exp = op->value; 1066 op->stats.exp = op->value;
1064 break; 1067 break;
1065 1068

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines