リビジョン | 3d07df9ab5208876330ceca3a43c4e8b724c1b37 (tree) |
---|---|
日時 | 2020-06-05 00:38:57 |
作者 | Hourier <hourier@user...> |
コミッター | Hourier |
[Refactor] #40465 撃破後であれば闘技場のモンスターもリストに載せるようにした / Added the list of having defeated unique monsters if they're arena uniques
@@ -42,6 +42,7 @@ unique_list_type *initialize_unique_lsit_type(unique_list_type *unique_list_ptr, | ||
42 | 42 | * @param r_ptr モンスター種別への参照ポインタ |
43 | 43 | * @param is_alive 生きているユニークのリストならばTRUE、撃破したユニークのリストならばFALSE |
44 | 44 | * @return is_aliveの条件に見合うユニークがいたらTRUE、それ以外はFALSE |
45 | + * @details 闘技場のモンスターとは再戦できないので、生きているなら表示から外す | |
45 | 46 | */ |
46 | 47 | static bool sweep_uniques(monster_race *r_ptr, bool is_alive) |
47 | 48 | { |
@@ -55,7 +56,8 @@ static bool sweep_uniques(monster_race *r_ptr, bool is_alive) | ||
55 | 56 | if (!cheat_know && !r_ptr->r_sights) |
56 | 57 | return FALSE; |
57 | 58 | |
58 | - if (!r_ptr->rarity || ((r_ptr->rarity > 100) && !(r_ptr->flags1 & RF1_QUESTOR))) | |
59 | + bool is_except_arena = is_alive ? (r_ptr->rarity > 100) && ((r_ptr->flags1 & RF1_QUESTOR) == 0) : FALSE; | |
60 | + if (!r_ptr->rarity || is_except_arena) | |
59 | 61 | return FALSE; |
60 | 62 | |
61 | 63 | if (is_alive) { |