OSDN Git Service

タホ、ォ、鮟ト、テ、ニ、ソTURNS、ネTICKS、ホノスオュ、ホコョヘ、タオ。」STORE_TURNS「ェSTORE_TICKS
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 27 May 2003 10:14:17 +0000 (10:14 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 27 May 2003 10:14:17 +0000 (10:14 +0000)
src/defines.h
src/dungeon.c
src/store.c

index 353c0db..c32eef4 100644 (file)
 #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 */
 
 
 /*
index 3ef4d84..50398d9 100644 (file)
@@ -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;
 
index 243dc0d..9d07894 100644 (file)
@@ -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++)