OSDN Git Service

[fix] ダンジョンの雰囲気のBGM判定ミス修正
authorshimitei <shimitei@gmail.com>
Fri, 2 Apr 2021 14:24:04 +0000 (23:24 +0900)
committershimitei <shimitei@gmail.com>
Fri, 2 Apr 2021 14:24:04 +0000 (23:24 +0900)
「退屈」~「緊張する」雰囲気でも「悪い予感」~「とても危険」(feel1)のBGMが流れていたのを修正。

src/main/scene-table.cpp

index 6307d28..ccf1a26 100644 (file)
@@ -94,7 +94,7 @@ static bool scene_field(player_type *player_ptr, scene_type *value)
 
 static bool scene_dungeon_feeling(player_type *player_ptr, scene_type *value)
 {
-    const bool enable = (player_ptr->feeling >= 2);
+    const bool enable = (player_ptr->feeling >= 2) && (player_ptr->feeling <= 5);
     if (enable) {
         value->type = TERM_XTRA_MUSIC_BASIC;