diff -Naur nethack-3.4.3/src/attrib.c nethack-fedora/src/attrib.c --- nethack-3.4.3/src/attrib.c 2003-12-08 10:39:13.000000000 +1100 +++ nethack-fedora/src/attrib.c 2005-08-18 14:28:38.000000000 +1000 @@ -218,6 +218,9 @@ else if (parameter) bonchance += otmp->quan; } + /* Stephen White's code for lucky fedoras from SLASHEM */ + if (uarmh && uarmh->otyp == FEDORA && !uarmh->cursed) bonchance += 2; + return sgn((int)bonchance); } diff -Naur nethack-3.4.3/src/do_wear.c nethack-fedora/src/do_wear.c --- nethack-3.4.3/src/do_wear.c 2003-12-08 10:39:13.000000000 +1100 +++ nethack-fedora/src/do_wear.c 2005-08-18 14:36:52.000000000 +1000 @@ -294,6 +294,8 @@ { switch(uarmh->otyp) { case FEDORA: + set_moreluck(); + break; case HELMET: case DENTED_POT: case ELVEN_LEATHER_HELM: @@ -353,6 +355,10 @@ switch(uarmh->otyp) { case FEDORA: + setworn((struct obj *)0, W_ARMH); + set_moreluck(); + cancelled_don = FALSE; + return 0; case HELMET: case DENTED_POT: case ELVEN_LEATHER_HELM: