Changeset 760

Show
Ignore:
Timestamp:
03/12/08 16:12:43 (7 months ago)
Author:
GabeCunningham
Message:

Restore some functionality to the drop_good flag - monsters with this flag are significantly more likely to drop "good" magic item types again. To be reviewed pending the monster drop cleanup.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/obj-make.c

    r712 r760  
    14071407        if ((rand_int(prob) != 0) || !make_artifact_special(j_ptr, lev)) 
    14081408        { 
    1409                 int k_idx; 
     1409                int k_idx, i; 
     1410                int tries = 1; 
    14101411 
    14111412#if 0 
     
    14211422#endif 
    14221423 
    1423                 /* Pick a random object */ 
    1424                 k_idx = get_obj_num(base); 
     1424                if (great) 
     1425                    tries = 5; 
     1426                else if (good) 
     1427                    tries = 3; 
     1428 
     1429                for (i = 0; i < tries; i++) 
     1430                { 
     1431                    /* Pick a random object */ 
     1432                    k_idx = get_obj_num(base); 
     1433                     
     1434                    /* Keep if it's good, or try again */ 
     1435                    if (kind_is_good(k_idx)) break; 
     1436                } 
    14251437 
    14261438#if 0