Sufficiently interested monsters will now accept gifts.
[rogue-pphs.git] / rogue.h
diff --git a/rogue.h b/rogue.h
index 2e67f38..b79c5f9 100644 (file)
--- a/rogue.h
+++ b/rogue.h
@@ -72,7 +72,7 @@
 #define o_charges o_ac\r
 #define ISMULT(type) (type == POTION || type == SCROLL || type == FOOD)\r
 #define rndchoice(a) (a[rnd(sizeof(a)/sizeof((a)[0]))])\r
-\r
+#define hash(i) ((unsigned)(i)*2654435761u)\r
 /*\r
  * Things that appear on the screens\r
  */\r