Changeset 616

Show
Ignore:
Timestamp:
12/21/07 20:23:02 (9 months ago)
Author:
takkaria
Message:

Try to make stores a bit more interesting/useful:

  • start applying higher-level magic as the player dives through the dungeon
  • make phase door a staple
Files:

Legend:

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

    r597 r616  
    12141214        if (st == STORE_B_MARKET) 
    12151215        { 
    1216                 min_level = 25; 
    1217                 max_level = 50; 
     1216                min_level = p_ptr->max_depth + 5; 
     1217                max_level = p_ptr->max_depth + 20; 
    12181218        } 
    12191219        else 
    12201220        { 
    1221                 min_level = 1; 
    1222                 max_level = STORE_OBJ_LEVEL; 
    1223         } 
    1224  
     1221                min_level = 1 + MAX(p_ptr->max_depth - 10, 0); 
     1222                max_level = STORE_OBJ_LEVEL + MAX(p_ptr->max_depth - 10, 0); 
     1223        } 
     1224 
     1225        if (min_level > 55) min_level = 65; 
     1226        if (max_level > 70) max_level = 70; 
    12251227 
    12261228        /* Consider up to six items */ 
     
    13141316        { TV_LITE, SV_LITE_TORCH, MAKE_NORMAL }, 
    13151317        { TV_SCROLL, SV_SCROLL_WORD_OF_RECALL, MAKE_NORMAL }, 
     1318        { TV_SCROLL, SV_SCROLL_PHASE_DOOR, MAKE_NORMAL }, 
    13161319        { TV_LITE, SV_LITE_TORCH, MAKE_NORMAL }, 
    13171320        { TV_FLASK, 0, MAKE_NORMAL },