Use define for iron ball weight increment
This commit is contained in:
@@ -304,12 +304,12 @@ struct monst *mon;
|
||||
if (ptr == &mons[PM_SHADE] && !shade_glare(otmp))
|
||||
tmp = 0;
|
||||
|
||||
/* "very heavy iron ball"; weight increase is in increments of 160 */
|
||||
/* "very heavy iron ball"; weight increase is in increments */
|
||||
if (otyp == HEAVY_IRON_BALL && tmp > 0) {
|
||||
int wt = (int) objects[HEAVY_IRON_BALL].oc_weight;
|
||||
|
||||
if ((int) otmp->owt > wt) {
|
||||
wt = ((int) otmp->owt - wt) / 160;
|
||||
wt = ((int) otmp->owt - wt) / IRON_BALL_W_INCR;
|
||||
tmp += rnd(4 * wt);
|
||||
if (tmp > 25)
|
||||
tmp = 25; /* objects[].oc_wldam */
|
||||
|
||||
Reference in New Issue
Block a user