summaryrefslogtreecommitdiff
path: root/src/dungeon_random_1.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-12-24 17:45:49 -0600
committerSeth Barberee <seth.barberee@gmail.com>2021-12-24 17:45:49 -0600
commitf0ef6ae481ec2cc655f1606f074de38ef26276c4 (patch)
tree028f81d66b2cd990d163062280e558a080b30071 /src/dungeon_random_1.c
parente7a59a1a21cec81190434e397f62c245e73063e4 (diff)
decomp some more
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;
+}