Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old March 9, 2009, 14:50   #1
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
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.
PaulBlay is offline   Reply With Quote
Old March 9, 2009, 20:13   #2
Big Al
Swordsman
 
Big Al's Avatar
 
Join Date: Apr 2007
Location: Calgary
Age: 31
Posts: 327
Donated: $18.32
Big Al is on a distinguished road
Quote:
Originally Posted by PaulBlay View Post
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+
Big Al is offline   Reply With Quote
Old March 9, 2009, 20:21   #3
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Big Al View Post
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.
PaulBlay is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.