From 7d5af4ad0ba21a2cf0ef3e0a8fd9ca30e533eef3 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Tue, 10 Sep 2024 03:17:36 -0700 Subject: [PATCH] Add some tsdocs --- src/data/ability.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data/ability.ts b/src/data/ability.ts index 777151df944..869cfa5c5e5 100755 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2834,6 +2834,14 @@ export class BonusItemChanceAbAttr extends PreEncounterAbAttr { return true; } + /** + * @override + * @param pokemon n/a + * @param passive n/a + * @param simulated n/a + * @param args `[0]` The chance for an enemy to generate held items + * @returns `true` + */ override applyPreEncounter(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean { (args[0] as Utils.NumberHolder).value *= this.chanceMultiplier; return true;