OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Fix] #41316 get_mon_num() に最小生成階範囲追加. / Add min level range to get_mon_num().
[hengband/hengband.git]
/
src
/
market
/
bounty.c
diff --git
a/src/market/bounty.c
b/src/market/bounty.c
index
31f58c7
..
1e19f1c
100644
(file)
--- a/
src/market/bounty.c
+++ b/
src/market/bounty.c
@@
-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) {
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];
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;
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;
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) {
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]];
monster_race *r_ptr;
r_ptr = &r_info[current_world_ptr->bounty_r_idx[i]];