summaryrefslogtreecommitdiff
path: root/src/code_803C190.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-01-07 16:10:24 -0600
committerSeth Barberee <seth.barberee@gmail.com>2021-01-09 10:33:29 -0600
commitec192a8fa80c389c67878d3da9f9faeb07b1451f (patch)
treece0ee74fdae92286e4ae091196bb5044c6a1f768 /src/code_803C190.c
parent469212f7ee42d04e3160d357ed1f088f12edd391 (diff)
5% wooo
Diffstat (limited to 'src/code_803C190.c')
-rw-r--r--src/code_803C190.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/code_803C190.c b/src/code_803C190.c
new file mode 100644
index 0000000..26565c0
--- /dev/null
+++ b/src/code_803C190.c
@@ -0,0 +1,34 @@
+#include "global.h"
+
+struct unkStruct_80EBA18
+{
+ u32 unk0;
+ u32 unk4;
+};
+
+extern struct unkStruct_80EBA18 gUnknown_80EBA18[];
+extern s32 sub_80908D8(u32);
+
+u32 sub_803C190(u8 r0)
+{
+ return gUnknown_80EBA18[r0].unk0;
+}
+
+
+u32 sub_803C1A0(u8 r0)
+{
+ return gUnknown_80EBA18[r0].unk4;
+}
+
+s32 sub_803C1B4(s32 r0, u8 r1)
+{
+ s32 temp;
+ temp = sub_80908D8(r0);
+ if(r1 == 2)
+ {
+ temp += 2;
+ }
+ if(temp > 0xF)
+ temp = 0xF;
+ return temp;
+}