summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2021-07-03 16:31:26 -0400
committerIdain <luiscarlosholguinperez@outlook.com>2021-07-03 16:31:26 -0400
commit509816eaeddcb193046fc63a7e0574777d807536 (patch)
tree069b828fba10d59e3c909a5dcf1d1234df680f9f
parent7957ffc8e6a6c20f336e8f01e5eaca5132efd399 (diff)
Got rid of redundant comments.
-rw-r--r--Modify-existing-gender-formula.md38
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:
![Quilava](https://user-images.githubusercontent.com/38602758/116047709-f4fdfc80-a6a6-11eb-90c6-6bd734582ca9.png)
-Snubbull with 1:3 Gender Ratio
+
+Snubbull with 1:3 Gender Ratio:
![Snubbull](https://user-images.githubusercontent.com/38602758/116048061-5aea8400-a6a7-11eb-856c-738002211617.png)
-Hoppip with 1:1 Gender Ratio
+
+Hoppip with 1:1 Gender Ratio:
![Hoppip](https://user-images.githubusercontent.com/38602758/116048198-81102400-a6a7-11eb-9074-5e58f67350cc.png)
-Venonat with 1:1 Gender Ratio
+
+Venonat with 1:1 Gender Ratio:
![Venonat](https://user-images.githubusercontent.com/38602758/116048343-a9981e00-a6a7-11eb-861a-8b0af55b4142.png)
-Psyduck with 1:1 Gender Ratio
+
+Psyduck with 1:1 Gender Ratio:
![Psyduck](https://user-images.githubusercontent.com/38602758/116049396-ced95c00-a6a8-11eb-8f8b-2530906bd0d0.png)
-Growlithe with 3:1 Gender Ratio
+Growlithe with 3:1 Gender Ratio:
![Growlithe](https://user-images.githubusercontent.com/38602758/116049483-e6b0e000-a6a8-11eb-88ff-42e4320c32cd.png)