From 980049cdeb07f65f3d894c2dc0589a99d671e7c2 Mon Sep 17 00:00:00 2001 From: mogami Date: Tue, 27 May 2003 10:14:17 +0000 Subject: [PATCH] =?utf8?q?=EF=BE=80=EF=BE=8E=EF=BD=A4=EF=BD=AB=EF=BD=A4?= =?utf8?q?=E9=AE=9F=EF=BE=84=EF=BD=A4=EF=BE=83=EF=BD=A4=EF=BE=86=EF=BD=A4?= =?utf8?q?=EF=BD=BFTURNS=EF=BD=A4=EF=BE=88TICKS=EF=BD=A4=EF=BE=8E=EF=BE=89?= =?utf8?q?=EF=BD=BD=EF=BD=B5=EF=BD=AD=EF=BD=A4=EF=BE=8E=EF=BD=BA=EF=BD=AE?= =?utf8?q?=EF=BE=8D=EE=81=A3=EE=87=B4=EF=BD=A4=EF=BE=80=EF=BD=B5=EF=BD=A1?= =?utf8?q?=EF=BD=A3STORE=5FTURNS=EF=BD=A2=EF=BD=AASTORE=5FTICKS?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/defines.h | 2 +- src/dungeon.c | 3 ++- src/store.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/defines.h b/src/defines.h index 353c0db60..c32eef43c 100644 --- a/src/defines.h +++ b/src/defines.h @@ -478,7 +478,7 @@ #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 */ /* diff --git a/src/dungeon.c b/src/dungeon.c index 3ef4d84ea..50398d9b9 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -2052,7 +2052,8 @@ msg_print(" } /* 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; diff --git a/src/store.c b/src/store.c index 243dc0d6c..9d07894b5 100644 --- a/src/store.c +++ b/src/store.c @@ -4510,7 +4510,7 @@ void do_cmd_store(void) } /* 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; @@ -5035,7 +5035,7 @@ void store_init(int town_num, int store_num) * 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++) -- 2.11.0