]> granicus.if.org Git - nethack/commitdiff
Bear traps wound legs
authorPasi Kallinen <paxed@alt.org>
Tue, 31 Mar 2015 06:38:38 +0000 (09:38 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 31 Mar 2015 06:38:38 +0000 (09:38 +0300)
src/trap.c

index 4c8adccbd7e08da88dba00537151e62f77aad130..f30fb5a6de5d06d21bbbc192d1708065f92fd9de 100644 (file)
@@ -946,6 +946,7 @@ unsigned trflags;
                } else {
                    pline("%s bear trap closes on your %s!",
                            A_Your[trap->madeby_u], body_part(FOOT));
+                   set_wounded_legs(rn2(2) ? RIGHT_SIDE : LEFT_SIDE, rn1(10,10));
                    if(u.umonnum == PM_OWLBEAR || u.umonnum == PM_BUGBEAR)
                        You("howl in anger!");
                    losehp(Maybe_Half_Phys(dmg), "bear trap", KILLED_BY_AN);