OSDN Git Service

[Feature] #38796 水流耐性時溺れない仕様を追加。 / Add feature of no drawn when player has water...
authorDeskull <deskull@users.sourceforge.jp>
Thu, 13 Dec 2018 13:18:00 +0000 (22:18 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 13 Dec 2018 13:18:00 +0000 (22:18 +0900)
src/dungeon.c

index 1790122..ea17378 100644 (file)
@@ -1505,7 +1505,7 @@ static void process_world_aux_hp_and_sp(void)
        }
 
        if (have_flag(f_ptr->flags, FF_WATER) && have_flag(f_ptr->flags, FF_DEEP) &&
-           !p_ptr->levitation && !p_ptr->can_swim)
+           !p_ptr->levitation && !p_ptr->can_swim && !p_ptr->res_water)
        {
                if (p_ptr->total_weight > weight_limit())
                {