OSDN Git Service

[Fix] #41316 get_mon_num() に最小生成階範囲追加. / Add min level range to get_mon_num().
[hengband/hengband.git] / src / market / bounty.c
index 31f58c7..1e19f1c 100644 (file)
@@ -283,7 +283,7 @@ void determine_daily_bounty(player_type *player_ptr, bool conv_old)
     get_mon_num_prep(player_ptr, NULL, NULL);
 
     while (TRUE) {
-        today_mon = get_mon_num(player_ptr, max_dl, GMN_ARENA);
+        today_mon = get_mon_num(player_ptr, MIN(max_dl / 2, 40), max_dl, GMN_ARENA);
         monster_race *r_ptr;
         r_ptr = &r_info[today_mon];
 
@@ -295,8 +295,6 @@ void determine_daily_bounty(player_type *player_ptr, bool conv_old)
             continue;
         if ((r_ptr->flags9 & (RF9_DROP_CORPSE | RF9_DROP_SKELETON)) != (RF9_DROP_CORPSE | RF9_DROP_SKELETON))
             continue;
-        if (r_ptr->level < MIN(max_dl / 2, 40))
-            continue;
         if (r_ptr->rarity > 10)
             continue;
         break;
@@ -313,7 +311,7 @@ void determine_bounty_uniques(player_type *player_ptr)
     get_mon_num_prep(player_ptr, NULL, NULL);
     for (int i = 0; i < MAX_BOUNTY; i++) {
         while (TRUE) {
-            current_world_ptr->bounty_r_idx[i] = get_mon_num(player_ptr, MAX_DEPTH - 1, GMN_ARENA);
+            current_world_ptr->bounty_r_idx[i] = get_mon_num(player_ptr, 0, MAX_DEPTH - 1, GMN_ARENA);
             monster_race *r_ptr;
             r_ptr = &r_info[current_world_ptr->bounty_r_idx[i]];