Difference between revisions of "Teleport Chances"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00176c10: 3c068019 lui r6,0x8019 00176c14: 8cc6f4e0 lw r6,-0x0b20(r6) 00176c18: 27bdffe8 addiu r29,r29,0xffe8 00176c1c: afbf0010 sw r31,0x0010(...")
 
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 +
Contains teleport chances
 
   
 
   
 
  00176c10: 3c068019 lui r6,0x8019
 
  00176c10: 3c068019 lui r6,0x8019
Line 27: Line 28:
 
  00176c70: 00032880 sll r5,r3,0x02
 
  00176c70: 00032880 sll r5,r3,0x02
 
  00176c74: 00a32821 addu r5,r5,r3
 
  00176c74: 00a32821 addu r5,r5,r3
  00176c78: 0c017833 jal 0x0005e0cc
+
  00176c78: 0c017833 jal 0x0005e0cc             [[Check if Random is greater/equal to Chance]]
 
  00176c7c: 00052840 sll r5,r5,0x01
 
  00176c7c: 00052840 sll r5,r5,0x01
 
  00176c80: 8fbf0010 lw r31,0x0010(r29)
 
  00176c80: 8fbf0010 lw r31,0x0010(r29)

Revision as of 04:36, 15 October 2016

Contains teleport chances

00176c10: 3c068019 lui r6,0x8019
00176c14: 8cc6f4e0 lw r6,-0x0b20(r6)
00176c18: 27bdffe8 addiu r29,r29,0xffe8
00176c1c: afbf0010 sw r31,0x0010(r29)
00176c20: 90c20024 lbu r2,0x0024(r6)
00176c24: 00000000 nop
00176c28: 30420004 andi r2,r2,0x0004
00176c2c: 14400014 bne r2,r0,0x00176c80
00176c30: 34020001 ori r2,r0,0x0001
00176c34: 90c5000a lbu r5,0x000a(r6)
00176c38: 90c30007 lbu r3,0x0007(r6)
00176c3c: 90c4000b lbu r4,0x000b(r6)
00176c40: 90c20008 lbu r2,0x0008(r6)
00176c44: 00a31823 subu r3,r5,r3
00176c48: 04610002 bgez r3,0x00176c54
00176c4c: 00822023 subu r4,r4,r2
00176c50: 00031823 subu r3,r0,r3
00176c54: 04810002 bgez r4,0x00176c60
00176c58: 00000000 nop
00176c5c: 00042023 subu r4,r0,r4
00176c60: 90c20006 lbu r2,0x0006(r6)
00176c64: 00641821 addu r3,r3,r4
00176c68: 34040064 ori r4,r0,0x0064
00176c6c: 00621823 subu r3,r3,r2
00176c70: 00032880 sll r5,r3,0x02
00176c74: 00a32821 addu r5,r5,r3
00176c78: 0c017833 jal 0x0005e0cc              Check if Random is greater/equal to Chance
00176c7c: 00052840 sll r5,r5,0x01
00176c80: 8fbf0010 lw r31,0x0010(r29)
00176c84: 27bd0018 addiu r29,r29,0x0018
00176c88: 03e00008 jr r31
00176c8c: 00000000 nop