]> granicus.if.org Git - nethack/commitdiff
Half_physical_damage 03
authornethack.allison <nethack.allison>
Tue, 21 Oct 2003 17:54:32 +0000 (17:54 +0000)
committernethack.allison <nethack.allison>
Tue, 21 Oct 2003 17:54:32 +0000 (17:54 +0000)
- fish out of water

src/allmain.c

index 366787be615c4ae92893976d1e157c31bc7b275a..91ec6a2341b42112e358d6ecb9368dbd079a8163 100644 (file)
@@ -154,8 +154,11 @@ moveloop()
                        wtcap = UNENCUMBERED;
                    } else if (Upolyd && youmonst.data->mlet == S_EEL && !is_pool(u.ux,u.uy) && !Is_waterlevel(&u.uz)) {
                        if (u.mh > 1) {
-                           u.mh--;
-                           context.botl = 1;
+                           if (!Half_physical_damage ||
+                               (Half_physical_damage && !(moves % 2))) {
+                               u.mh--;
+                               context.botl = 1;
+                           }
                        } else if (u.mh < 1)
                            rehumanize();
                    } else if (Upolyd && u.mh < u.mhmax) {