Changeset 244

Show
Ignore:
Timestamp:
06/30/07 13:11:22 (1 year ago)
Author:
takkaria
Message:

Make destruction take 0 time, and auto-repeat the command (with thanks to Leon Marrick).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd3.c

    r156 r244  
    499499        } 
    500500 
    501  
    502         /* Take a turn */ 
    503         p_ptr->energy_use = 100; 
    504501 
    505502        /* Artifacts cannot be destroyed */ 
     
    559556                floor_item_describe(0 - item); 
    560557                floor_item_optimize(0 - item); 
     558        } 
     559 
     560 
     561        /* We have destroyed a floor item, and the floor is not empty */ 
     562        if ((item < 0) && (cave_o_idx[p_ptr->py][p_ptr->px])) 
     563        { 
     564                /* Automatically repeat this command (unless disturbed) */ 
     565                p_ptr->command_cmd = 'k'; 
     566                p_ptr->command_rep = 2; 
    561567        } 
    562568}