Stores in Angband

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulBlay
    Knight
    • Jan 2009
    • 657

    Stores in Angband

    Looking through the 'changes.txt' file I found

    Code:
     * Start stocking deeper items as the character descends.
    However I can't see anywhere in store.c where this is handled. I would have assumed that it would be somewhere like the min_level and max_level values in store_create_random. Am I missing something?
    Currently turning (Angband) Japanese.
  • Big Al
    Swordsman
    • Apr 2007
    • 327

    #2
    Originally posted by PaulBlay
    However I can't see anywhere in store.c where this is handled. I would have assumed that it would be somewhere like the min_level and max_level values in store_create_random. Am I missing something?
    It is handled by the min_level and max_level in the following code. I don't quite understand the question, unless you missed that.

    Line 1191:
    Code:
    	if (st == STORE_B_MARKET)
    	{
    		min_level = p_ptr->max_depth + 5;
    		max_level = p_ptr->max_depth + 20;
    	}
    	else
    	{
    		min_level = 1;
    		max_level = STORE_OBJ_LEVEL + MAX(p_ptr->max_depth - 20, 0);
    	}
    
    	if (min_level > 55) min_level = 55;
    	if (max_level > 70) max_level = 70;
    Come play Metroplexity!
    Un, V MX H- D c-- f- PV s- d+ P++ M+
    c-- S I++ So+ B+ ac- !GHB SQ RQ+ V+

    Comment

    • PaulBlay
      Knight
      • Jan 2009
      • 657

      #3
      Originally posted by Big Al
      It is handled by the min_level and max_level in the following code. I don't quite understand the question, unless you missed that.
      I think I must have been looking at the wrong page (earlier version)
      Oops.
      Currently turning (Angband) Japanese.

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎