ref: 27f423b3e21857b1322f34e782c3879a44d997e6
parent: 8bf6a8a29cf7e869e6430b35bbb03d7a79ed0620
author: Marcus Huderle <huderlem@gmail.com>
date: Mon Dec 16 12:49:00 EST 2013
Stat modifier ratios INCBIN.
--- a/main.asm
+++ b/main.asm
@@ -64759,7 +64759,7 @@
Func_3db85: ; 3db85 (f:5b85)
push bc
- ld a, [$d11e]
+ ld a, [$d11e] ; move number
ld c, a
ld b, $0
ld hl, Unknown_3dba3 ; $5ba3
@@ -66438,7 +66438,7 @@
; loop to do the calculations, the first iteration multiplies by the accuracy ratio and the second iteration multiplies by the evasion ratio
.loop
push bc
- ld hl,Unknown_3f6cb ; $76cb ; stat modifier ratios
+ ld hl, StatModifierRatios ; $76cb ; stat modifier ratios
dec b
sla b
ld c,b
@@ -67462,7 +67462,7 @@
.asm_3edd4
pop bc
push hl
- ld hl, Unknown_3f6cb ; $76cb
+ ld hl, StatModifierRatios ; $76cb
dec b
sla b
ld c, b
@@ -68457,7 +68457,7 @@
.asm_3f48a
push hl
push bc
- ld hl, Unknown_3f6cb ; $76cb
+ ld hl, StatModifierRatios ; $76cb
dec b
sla b
ld c, b
@@ -68669,7 +68669,7 @@
.asm_3f5ef
push hl
push bc
- ld hl, Unknown_3f6cb ; $76cb
+ ld hl, StatModifierRatios ; $76cb
dec b
sla b
ld c, b
@@ -68793,8 +68793,21 @@
db "ACCURACY@"
db "EVADE@"
-Unknown_3f6cb: ; 3f6cb (f:76cb)
-INCBIN "baserom.gbc",$3f6cb,$3f6e5 - $3f6cb
+StatModifierRatios: ; 3f6cb (f:76cb)
+; first byte is numerator, second byte is denominator
+ db 25, 100 ; 0.25
+ db 28, 100 ; 0.28
+ db 33, 100 ; 0.33
+ db 40, 100 ; 0.40
+ db 50, 100 ; 0.50
+ db 66, 100 ; 0.66
+ db 1, 1 ; 1.00
+ db 15, 10 ; 1.50
+ db 2, 1 ; 2.00
+ db 25, 10 ; 2.50
+ db 3, 1 ; 3.00
+ db 35, 10 ; 3.50
+ db 4, 1 ; 4.00
Func_3f6e5: ; 3f6e5 (f:76e5)
ld hl, W_PLAYERBATTSTATUS1