summaryrefslogtreecommitdiff
path: root/src/dungeon_random_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dungeon_random_1.c')
-rw-r--r--src/dungeon_random_1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dungeon_random_1.c b/src/dungeon_random_1.c
new file mode 100644
index 0000000..a6941f3
--- /dev/null
+++ b/src/dungeon_random_1.c
@@ -0,0 +1,13 @@
+#include "global.h"
+#include "dungeon_random_1.h"
+
+#include "dungeon_random.h"
+
+bool8 RollPercentChance(s32 percentChance)
+{
+ if (DungeonRandomCapped(100) < percentChance)
+ {
+ return TRUE;
+ }
+ return FALSE;
+}