From b856aadae58a5f0152d574baa435916a64ad3148 Mon Sep 17 00:00:00 2001 From: Jesse Lerner Date: Wed, 15 May 2024 00:55:19 -0400 Subject: [PATCH] Added documentation --- src/data/ability.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index bd4c54128..325ac57d1 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2126,10 +2126,21 @@ export class PostTerrainChangeAddBattlerTagAttr extends PostTerrainChangeAbAttr } } +/** + * When the terrain changes or the pokemon is summoned, change its type according to + * a Record passed into the constructor. + * @ + * @extends PostTerrainChangeAbAttr + * @see {@link applyPostTerrainChange} + */ export class PostTerrainChangeTypeAttr extends PostTerrainChangeAbAttr { - private oldType: Type[]; private terrainToTypeMap: Record; + /** + * @param {Record} terrainToTypeMap a map from terrain types to pokemon + * types containing information about what type to change to. + * Type.UNKOWN reverts to original typing. + */ constructor(terrainToTypeMap: Record) { super(); this.terrainToTypeMap = terrainToTypeMap;