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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dungeon_random_1.c b/src/dungeon_random_1.c
index a6941f3..418a51c 100644
--- a/src/dungeon_random_1.c
+++ b/src/dungeon_random_1.c
@@ -11,3 +11,12 @@ bool8 RollPercentChance(s32 percentChance)
}
return FALSE;
}
+
+bool8 RollPercentChance_2(s32 percentChance)
+{
+ if (DungeonRandomCapped(100) < percentChance)
+ {
+ return TRUE;
+ }
+ return FALSE;
+}