変愚蛮怒のメインリポジトリです
Revision | 66627aafee0a09d8d126231fcb2b958d728c5ae1 (tree) |
---|---|
Time | 2003-11-30 08:00:19 |
Author | nothere <nothere@0568...> |
Commiter | nothere |
隠しドアを隠せない地形で隠しドアを潰す判定をMOVE || CAN_FLYとした. 潰
す際に1/2でmimicで上書きになるかダンジョン標準の床になるかに分岐する
ように変更.
@@ -152,7 +152,10 @@ void place_random_door(int y, int x, bool room) | ||
152 | 152 | /* Floor type terrain cannot hide a door */ |
153 | 153 | if (feat_supports_los(c_ptr->mimic) && !feat_supports_los(c_ptr->feat)) |
154 | 154 | { |
155 | - if (have_flag(f_info[c_ptr->mimic].flags, FF_MOVE)) c_ptr->feat = c_ptr->mimic; | |
155 | + if (have_flag(f_info[c_ptr->mimic].flags, FF_MOVE) || have_flag(f_info[c_ptr->mimic].flags, FF_CAN_FLY)) | |
156 | + { | |
157 | + c_ptr->feat = one_in_(2) ? c_ptr->mimic : floor_type[randint0(100)]; | |
158 | + } | |
156 | 159 | c_ptr->mimic = 0; |
157 | 160 | } |
158 | 161 | } |
@@ -105,7 +105,10 @@ static void place_secret_door(int y, int x) | ||
105 | 105 | /* Floor type terrain cannot hide a door */ |
106 | 106 | if (feat_supports_los(c_ptr->mimic) && !feat_supports_los(c_ptr->feat)) |
107 | 107 | { |
108 | - if (have_flag(f_info[c_ptr->mimic].flags, FF_MOVE)) c_ptr->feat = c_ptr->mimic; | |
108 | + if (have_flag(f_info[c_ptr->mimic].flags, FF_MOVE) || have_flag(f_info[c_ptr->mimic].flags, FF_CAN_FLY)) | |
109 | + { | |
110 | + c_ptr->feat = one_in_(2) ? c_ptr->mimic : floor_type[randint0(100)]; | |
111 | + } | |
109 | 112 | c_ptr->mimic = 0; |
110 | 113 | } |
111 | 114 |