summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sprint.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-03-02 22:23:32 -0600
committerJesse Luehrs <doy@tozt.net>2010-03-02 22:40:19 -0600
commit1aab39368fff44aa6791d0e6cd7a7c7247be5932 (patch)
tree8e1d045ea38f5c2635bea37b8ae5444dd67fa9ea /crawl-ref/source/sprint.cc
parentbaa04042e1e5b389ae589b3e80359de8d5b1ad76 (diff)
downloadcrawl-ref-1aab39368fff44aa6791d0e6cd7a7c7247be5932.tar.gz
crawl-ref-1aab39368fff44aa6791d0e6cd7a7c7247be5932.zip
abyss modifications for sprint
13:37 <@dpeg> still another alternative, to make it more sprint-like: more (or better, tougher) monsters, no items, no xp, no piety, more exits
Diffstat (limited to 'crawl-ref/source/sprint.cc')
-rw-r--r--crawl-ref/source/sprint.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/sprint.cc b/crawl-ref/source/sprint.cc
index 352c762ae8..a238febe1e 100644
--- a/crawl-ref/source/sprint.cc
+++ b/crawl-ref/source/sprint.cc
@@ -1,6 +1,11 @@
+#include "AppHdr.h"
+
#include "externs.h"
#include "items.h"
+#include "mon-util.h"
+#include "mpr.h"
#include "player.h"
+#include "random.h"
void sprint_give_items()
{
@@ -57,3 +62,14 @@ int sprint_modify_piety(int piety)
{
return piety * 9;
}
+
+int sprint_modify_abyss_exit_chance(int exit_chance)
+{
+ return exit_chance / 3;
+}
+
+/* XXX: ugh, can't think of a better thing to do here */
+bool sprint_veto_random_abyss_monster(monster_type type)
+{
+ return random2(20) > (int)get_monster_data(type)->hpdice[0];
+}