mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
Add comment, use v === 0
instead of !v
Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
This commit is contained in:
parent
058f2d90ee
commit
ed2d64d6be
@ -1849,7 +1849,8 @@ export class GameData {
|
||||
ret |= DexAttr.DEFAULT_VARIANT;
|
||||
}
|
||||
} else {
|
||||
ret |= attr & DexAttr.NON_SHINY || !(attr & DexAttr.SHINY) ? DexAttr.NON_SHINY : DexAttr.SHINY;
|
||||
// Default to non shiny. Fallback to shiny if it's the only thing that's unlocked
|
||||
ret |= (attr & DexAttr.NON_SHINY || !(attr & DexAttr.SHINY)) ? DexAttr.NON_SHINY : DexAttr.SHINY;
|
||||
|
||||
if (attr & DexAttr.DEFAULT_VARIANT) {
|
||||
ret |= DexAttr.DEFAULT_VARIANT;
|
||||
|
@ -1893,7 +1893,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||
let newVariant = props.variant;
|
||||
do {
|
||||
newVariant = (newVariant + 1) % 3;
|
||||
if (!newVariant) {
|
||||
if (newVariant === 0) {
|
||||
if (this.speciesStarterDexEntry!.caughtAttr & DexAttr.DEFAULT_VARIANT) { // TODO: is this bang correct?
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user