summaryrefslogtreecommitdiff
path: root/src/dungeon_random_1.c
blob: 418a51c65a1d2938903b1df382ef0394d337b47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "global.h"
#include "dungeon_random_1.h"

#include "dungeon_random.h"

bool8 RollPercentChance(s32 percentChance)
{
    if (DungeonRandomCapped(100) < percentChance)
    {
        return TRUE;
    }
    return FALSE;
}

bool8 RollPercentChance_2(s32 percentChance)
{
    if (DungeonRandomCapped(100) < percentChance)
    {
        return TRUE;
    }
    return FALSE;
}