変愚蛮怒のメインリポジトリです
Revision | a5c0dcac5ced9d090200c46bb0c4bee1518d1137 (tree) |
---|---|
Time | 2003-12-02 08:49:37 |
Author | nothere <nothere@0568...> |
Commiter | nothere |
new_player_spot()でのプレイヤーのランダム初期配置条件にTELEPORTABLEを
追加. これにより, ダンジョン "森" に入った時に木の中から開始しないよ
うに修正. また, 地上では木と山脈の上に配置できるようにするため, ラン
ダム初期配置条件にはMOVEとTELEPORTABLEを参照しないように変更.
@@ -37,7 +37,11 @@ bool new_player_spot(void) | ||
37 | 37 | |
38 | 38 | /* Must be a "naked" floor grid */ |
39 | 39 | if (c_ptr->m_idx) continue; |
40 | - if (!have_flag(f_flags_grid(c_ptr), FF_MOVE)) continue; | |
40 | + if (dun_level) | |
41 | + { | |
42 | + if (!have_flag(f_flags_grid(c_ptr), FF_MOVE)) continue; | |
43 | + if (!have_flag(f_flags_grid(c_ptr), FF_TELEPORTABLE)) continue; | |
44 | + } | |
41 | 45 | if (!player_can_enter(c_ptr->feat, 0)) continue; |
42 | 46 | if (!in_bounds(y, x)) continue; |
43 | 47 |