Add tsdocs for new/modified classes

This commit is contained in:
NightKev 2024-09-11 18:15:03 -07:00
parent 8fd0496ffa
commit 38b4d3ddc8

View File

@ -1298,8 +1298,10 @@ export class ProtectedTag extends BattlerTag {
}
}
/** Base class for `BattlerTag`s that block damaging moves but not status moves */
export class DamageProtectedTag extends ProtectedTag {}
/** `BattlerTag` class for moves that block damaging moves damage the enemy if the enemy's move makes contact */
export class ContactDamageProtectedTag extends ProtectedTag {
private damageRatio: number;
@ -1335,6 +1337,7 @@ export class ContactDamageProtectedTag extends ProtectedTag {
}
}
/** `BattlerTag` class for moves that block damaging moves and lower enemy stats if the enemy's move makes contact */
export class ContactStatStageChangeProtectedTag extends DamageProtectedTag {
private stat: BattleStat;
private levels: number;
@ -1391,6 +1394,7 @@ export class ContactPoisonProtectedTag extends ProtectedTag {
}
}
/** `BattlerTag` class for moves that block damaging moves and burn the enemy if the enemy's move makes contact */
export class ContactBurnProtectedTag extends DamageProtectedTag {
constructor(sourceMove: Moves) {
super(sourceMove, BattlerTagType.BURNING_BULWARK);