diff options
author | Idain <luiscarlosholguinperez@outlook.com> | 2021-07-03 16:31:26 -0400 |
---|---|---|
committer | Idain <luiscarlosholguinperez@outlook.com> | 2021-07-03 16:31:26 -0400 |
commit | 509816eaeddcb193046fc63a7e0574777d807536 (patch) | |
tree | 069b828fba10d59e3c909a5dcf1d1234df680f9f | |
parent | 7957ffc8e6a6c20f336e8f01e5eaca5132efd399 (diff) |
Got rid of redundant comments.
-rw-r--r-- | Modify-existing-gender-formula.md | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/Modify-existing-gender-formula.md b/Modify-existing-gender-formula.md index 1457bd8..5c9e9a2 100644 --- a/Modify-existing-gender-formula.md +++ b/Modify-existing-gender-formula.md @@ -50,25 +50,25 @@ Edit `GetGender` in [engine/pokemon/mon_stats.asm](../blob/master/engine/pokemon + cpl + and $10 + swap a -+ add a ; ~(Atk DV & 1) << 1 -+ ld b, a ; Store it in register b ++ add a ++ ld b, a ; ~(Atk DV & 1) << 1 +; Defense DV + ld a, [hli] + and $1 -+ add a ; Def DV << 1 -+ add a ; Def DV << 2 -+ or b ; ~(Atk DV & 1) << 1 | (Def DV & 1) << 2 -+ ld b, a ; Store result in b. ++ add a ++ add a ++ or b ++ ld b, a ; ~(Atk DV & 1) << 1 | (Def DV & 1) << 2 +; Special DV + ld a, [hl] + cpl + and $1 -+ add a ; ~(Spc DV & 1) << 1 -+ add a ; ~(Spc DV & 1) << 2 -+ add a ; ~(Spc DV & 1) << 3 -+ or b ; ~(Atk DV & 1) << 1 | (Def DV & 1) << 2 | ~(Spc DV & 1) << 3 ++ add a ++ add a ++ add a ++ or b + swap a -+ ld b, a ; Again, stored in b. ++ ld b, a ; ~(Atk DV & 1) << 1 | (Def DV & 1) << 2 | ~(Spc DV & 1) << 3 -; Put our DVs together. - or b @@ -78,27 +78,31 @@ Edit `GetGender` in [engine/pokemon/mon_stats.asm](../blob/master/engine/pokemon And that's it! Here are some screenshots of the Pokémon. DVs are displayed for reference and for verifying that they have the correct gender. -Quilava with 7:1 Gender Ratio +Quilava with 7:1 Gender Ratio:  -Snubbull with 1:3 Gender Ratio + +Snubbull with 1:3 Gender Ratio:  -Hoppip with 1:1 Gender Ratio + +Hoppip with 1:1 Gender Ratio:  -Venonat with 1:1 Gender Ratio + +Venonat with 1:1 Gender Ratio:  -Psyduck with 1:1 Gender Ratio + +Psyduck with 1:1 Gender Ratio:  -Growlithe with 3:1 Gender Ratio +Growlithe with 3:1 Gender Ratio:  |