#define STORE_MIN_KEEP 6 /* Min slots to "always" keep full */
#define STORE_MAX_KEEP 18 /* Max slots to "always" keep full */
#define STORE_SHUFFLE 21 /* 1/Chance (per day) of an owner changing */
-#define STORE_TURNS 1000 /* Number of turns between turnovers */
+#define STORE_TICKS 1000 /* Number of ticks between turnovers */
/*
}
/* Set back the rewards once a day */
- if (!(turn % (TURNS_PER_TICK*10 * STORE_TURNS)))
+ /* Only used for reward in thief's guild for now */
+ if (!(turn % (TURNS_PER_TICK * TOWN_DAWN)))
{
int n;
}
/* Calculate the number of store maintainances since the last visit */
- maintain_num = (turn - town[p_ptr->town_num].store[which].last_visit) / (TURNS_PER_TICK * STORE_TURNS);
+ maintain_num = (turn - town[p_ptr->town_num].store[which].last_visit) / (TURNS_PER_TICK * STORE_TICKS);
/* Maintain the store max. 10 times */
if (maintain_num > 10) maintain_num = 10;
* MEGA-HACK - Last visit to store is
* BEFORE player birth to enable store restocking
*/
- st_ptr->last_visit = -200L * STORE_TURNS;
+ st_ptr->last_visit = -10L * TURNS_PER_TICK * STORE_TICKS;
/* Clear any old items */
for (k = 0; k < st_ptr->stock_size; k++)