--- deliantra/server/common/treasure.c 2006/08/10 20:50:34 1.4 +++ deliantra/server/common/treasure.c 2006/08/11 12:40:22 1.5 @@ -841,6 +841,18 @@ */ op->item_power = save_item_power; } + else + { + /* item_power was zero. This is suspicious, as it may be because it + * was never previously calculated. Let's compute a value and see if + * it is non-zero. If it indeed is, then assign it as the new + * item_power value. + * - gros, 21th of July 2006. + */ + op->item_power = calc_item_power(op,0); + save_item_power = op->item_power; /* Just in case it would get used + * again below */ + } } /* materialtype modifications. Note we allow this on artifacts. */