add puff costume bound check

This commit is contained in:
UnclePunch
2021-01-17 06:51:17 -05:00
parent b323a0a598
commit fc7bcc8502
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
################################################################################
# Address: 8013c388
################################################################################
.include "Common/Common.s"
lwz r30, 0x002C (r28)
# check if over max costume
lbz r3,0xC(r30)
branchl r12,0x80032330
branchl r12,0x80169238
lbz r4,0x619(r30)
cmpw r4,r3
bge Skip
b Exit
Skip:
branch r12,0x8013c46c
Exit:
lwz r4, 0x002C (r28)

View File

@@ -580,6 +580,17 @@ C216EA30 00000004 #Common/Winners Names are Gold on CSS/Remember Who LRA Started
04261B30 60000000 #External/Closing CSS Door Preserves Nametag/On Window Close/Skip isUsingNametag Bool Reset.asm
042605FC 38C00003 #External/Unplugging Closes CSS Door/Unplugging Closes CSS Door.asm
041239A8 60000000 #External/FreezeGlitchFix/FreezeGlitchFix.asm
C213C388 0000000A #Common/CostumeBoundCheck/PuffCostume.asm
83DC002C 887E000C
3D808003 618C2330
7D8903A6 4E800421
3D808016 618C9238
7D8903A6 4E800421
889E0619 7C041800
40800008 48000014
3D808013 618CC46C
7D8903A6 4E800420
809C002C 00000000
C216DED4 00000039 #Common/CostumeBoundCheck/main.asm
7C0802A6 90010004
9421FF50 BE810008

View File

@@ -580,6 +580,17 @@ C216EA30 00000004 #Common/Winners Names are Gold on CSS/Remember Who LRA Started
04261B30 60000000 #External/Closing CSS Door Preserves Nametag/On Window Close/Skip isUsingNametag Bool Reset.asm
042605FC 38C00003 #External/Unplugging Closes CSS Door/Unplugging Closes CSS Door.asm
041239A8 60000000 #External/FreezeGlitchFix/FreezeGlitchFix.asm
C213C388 0000000A #Common/CostumeBoundCheck/PuffCostume.asm
83DC002C 887E000C
3D808003 618C2330
7D8903A6 4E800421
3D808016 618C9238
7D8903A6 4E800421
889E0619 7C041800
40800008 48000014
3D808013 618CC46C
7D8903A6 4E800420
809C002C 00000000
C216DED4 00000039 #Common/CostumeBoundCheck/main.asm
7C0802A6 90010004
9421FF50 BE810008

View File

@@ -37,6 +37,17 @@ C9E1FFEC EDEF8028
EDEF8824 807E0010
D1E3002C 807E0010
60000000 00000000
C213C388 0000000A #Common/CostumeBoundCheck/PuffCostume.asm
83DC002C 887E000C
3D808003 618C2330
7D8903A6 4E800421
3D808016 618C9238
7D8903A6 4E800421
889E0619 7C041800
40800008 48000014
3D808013 618CC46C
7D8903A6 4E800420
809C002C 00000000
C216DED4 00000039 #Common/CostumeBoundCheck/main.asm
7C0802A6 90010004
9421FF50 BE810008

View File

@@ -37,6 +37,17 @@ C9E1FFEC EDEF8028
EDEF8824 807E0010
D1E3002C 807E0010
60000000 00000000
C213C388 0000000A #Common/CostumeBoundCheck/PuffCostume.asm
83DC002C 887E000C
3D808003 618C2330
7D8903A6 4E800421
3D808016 618C9238
7D8903A6 4E800421
889E0619 7C041800
40800008 48000014
3D808013 618CC46C
7D8903A6 4E800420
809C002C 00000000
C216DED4 00000039 #Common/CostumeBoundCheck/main.asm
7C0802A6 90010004
9421FF50 BE810008