summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sprint.cc
blob: 6e9fff4d363faa924cd122fb0ee22f577acc067d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "AppHdr.h"

#include "sprint.h"

#include "externs.h"
#include "monster.h"
#include "mpr.h"
#include "player.h"
#include "religion.h"
#include "random.h"

int sprint_modify_exp(int exp)
{
    return exp * 9;
}

int sprint_modify_exp_inverse(int exp)
{
    return div_rand_round(exp, 9);
}

int sprint_modify_piety(int piety)
{
    if (you_worship(GOD_OKAWARU))
        return piety;
    return piety * 9;
}