Commit 2b8f26d
committed
Fix Encounter9RNG.GenerateData returning early for shiny raids
The previous commit broke IVs, Ability, and Scale display by using
Encounter9RNG.GenerateData with Shiny.Random, which returns early
without setting stats when the generated shiny state doesn't match
the criteria.
Fixed by overriding the shiny parameter based on raid.IsShiny to
bypass the early-return check. This ensures all stats are correctly
generated for both shiny and non-shiny raids.1 parent 5de9276 commit 2b8f26d
2 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4889 | 4889 | | |
4890 | 4890 | | |
4891 | 4891 | | |
| 4892 | + | |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
| 4896 | + | |
4892 | 4897 | | |
4893 | 4898 | | |
4894 | 4899 | | |
| |||
4898 | 4903 | | |
4899 | 4904 | | |
4900 | 4905 | | |
4901 | | - | |
4902 | | - | |
4903 | | - | |
4904 | | - | |
4905 | 4906 | | |
4906 | | - | |
4907 | 4907 | | |
4908 | 4908 | | |
4909 | 4909 | | |
| |||
5001 | 5001 | | |
5002 | 5002 | | |
5003 | 5003 | | |
5004 | | - | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
5005 | 5010 | | |
5006 | 5011 | | |
5007 | 5012 | | |
| |||
5013 | 5018 | | |
5014 | 5019 | | |
5015 | 5020 | | |
5016 | | - | |
5017 | 5021 | | |
5018 | 5022 | | |
5019 | 5023 | | |
| |||
0 commit comments