mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 07:12:32 +02:00
Add tsdocs for new/modified classes
This commit is contained in:
parent
8fd0496ffa
commit
38b4d3ddc8
@ -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 {}
|
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 {
|
export class ContactDamageProtectedTag extends ProtectedTag {
|
||||||
private damageRatio: number;
|
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 {
|
export class ContactStatStageChangeProtectedTag extends DamageProtectedTag {
|
||||||
private stat: BattleStat;
|
private stat: BattleStat;
|
||||||
private levels: number;
|
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 {
|
export class ContactBurnProtectedTag extends DamageProtectedTag {
|
||||||
constructor(sourceMove: Moves) {
|
constructor(sourceMove: Moves) {
|
||||||
super(sourceMove, BattlerTagType.BURNING_BULWARK);
|
super(sourceMove, BattlerTagType.BURNING_BULWARK);
|
||||||
|
Loading…
Reference in New Issue
Block a user