mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
Added override for shiny chance
This commit is contained in:
parent
5d7cd97db0
commit
24d94c1dfb
@ -2991,6 +2991,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
shinyThreshold.value = thresholdOverride;
|
shinyThreshold.value = thresholdOverride;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isNullOrUndefined(Overrides.OPP_SHINY_CHANCE_OVERRIDE)) {
|
||||||
|
shinyThreshold.value = Overrides.OPP_SHINY_CHANCE_OVERRIDE;
|
||||||
|
}
|
||||||
|
|
||||||
this.shiny = (E ^ F) < shinyThreshold.value;
|
this.shiny = (E ^ F) < shinyThreshold.value;
|
||||||
|
|
||||||
if (this.shiny) {
|
if (this.shiny) {
|
||||||
|
@ -166,6 +166,7 @@ class DefaultOverrides {
|
|||||||
readonly OPP_GENDER_OVERRIDE: Gender | null = null;
|
readonly OPP_GENDER_OVERRIDE: Gender | null = null;
|
||||||
readonly OPP_MOVESET_OVERRIDE: Moves | Array<Moves> = [];
|
readonly OPP_MOVESET_OVERRIDE: Moves | Array<Moves> = [];
|
||||||
readonly OPP_SHINY_OVERRIDE: boolean | null = null;
|
readonly OPP_SHINY_OVERRIDE: boolean | null = null;
|
||||||
|
readonly OPP_SHINY_CHANCE_OVERRIDE: number | null = null; // Max value 65536
|
||||||
readonly OPP_VARIANT_OVERRIDE: Variant | null = null;
|
readonly OPP_VARIANT_OVERRIDE: Variant | null = null;
|
||||||
readonly OPP_IVS_OVERRIDE: number | number[] = [];
|
readonly OPP_IVS_OVERRIDE: number | number[] = [];
|
||||||
readonly OPP_FORM_OVERRIDES: Partial<Record<Species, number>> = {};
|
readonly OPP_FORM_OVERRIDES: Partial<Record<Species, number>> = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user