mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-02 11:46:11 +00:00
improve jsdocs in myster-encounter.ts
This commit is contained in:
parent
5ff1ae617d
commit
0f9c0c5d24
@ -356,6 +356,7 @@ export class MysteryEncounterBuilder implements Partial<MysteryEncounter> {
|
|||||||
doEncounterExp?: (scene: BattleScene) => boolean;
|
doEncounterExp?: (scene: BattleScene) => boolean;
|
||||||
doEncounterRewards?: (scene: BattleScene) => boolean;
|
doEncounterRewards?: (scene: BattleScene) => boolean;
|
||||||
onInit?: (scene: BattleScene) => boolean;
|
onInit?: (scene: BattleScene) => boolean;
|
||||||
|
onDone?: (scene: BattleScene) => boolean;
|
||||||
hideBattleIntroMessage?: boolean;
|
hideBattleIntroMessage?: boolean;
|
||||||
hideIntroVisuals?: boolean;
|
hideIntroVisuals?: boolean;
|
||||||
enemyPartyConfigs?: EnemyPartyConfig[] = [];
|
enemyPartyConfigs?: EnemyPartyConfig[] = [];
|
||||||
@ -374,8 +375,11 @@ export class MysteryEncounterBuilder implements Partial<MysteryEncounter> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines an option for the encounter
|
* Defines an option for the encounter.
|
||||||
* There should be at least 2 options defined and no more than 4
|
* Use for complex options.
|
||||||
|
* There should be at least 2 options defined and no more than 4.
|
||||||
|
* If easy/streamlined use {@linkcode MysteryEncounterBuilder.withOptionPhase}
|
||||||
|
*
|
||||||
* @param option - MysteryEncounterOption to add, can use MysteryEncounterOptionBuilder to create instance
|
* @param option - MysteryEncounterOption to add, can use MysteryEncounterOptionBuilder to create instance
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
@ -391,8 +395,10 @@ export class MysteryEncounterBuilder implements Partial<MysteryEncounter> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a streamlined option phase.
|
* Defines an option + phasefor the encounter.
|
||||||
* Only use if no pre-/post-options or condtions necessary.
|
* Use for easy/streamlined options.
|
||||||
|
* There should be at least 2 options defined and no more than 4.
|
||||||
|
* If complex use {@linkcode MysteryEncounterBuilder.withOption}
|
||||||
*
|
*
|
||||||
* @param callback - OptionPhaseCallback
|
* @param callback - OptionPhaseCallback
|
||||||
* @returns
|
* @returns
|
||||||
|
Loading…
Reference in New Issue
Block a user