summaryrefslogtreecommitdiff
path: root/src/monster2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster2.cc')
-rw-r--r--src/monster2.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/monster2.cc b/src/monster2.cc
index c3429298..65035cca 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -32,6 +32,9 @@
#define MAX_FUNNY 22
#define MAX_COMMENT 5
+#define MODIFY_AUX(o, n) ((o) = modify_aux((o), (n) >> 2, (n) & 3))
+#define MODIFY(o, n, min) MODIFY_AUX(o, n); (o) = ((o) < (min))?(min):(o)
+
s32b monster_exp(s16b level)
{
s32b capped_level = std::min(level, static_cast<s16b>(MONSTER_LEVEL_MAX));