FEAT: partially implemented stockpile

pull/543/head
Marek Sison 2024-05-02 21:30:54 +08:00
parent 08a4a2d7f8
commit 3aac0e7385
2 changed files with 11 additions and 2 deletions

View File

@ -52,5 +52,6 @@ export enum BattlerTagType {
SALT_CURED = "SALT_CURED",
CURSED = "CURSED",
CHARGED = "CHARGED",
GROUNDED = "GROUNDED"
GROUNDED = "GROUNDED",
STOCKPILE = "STOCKPILE"
}

View File

@ -2582,6 +2582,7 @@ export class AddBattlerTagAttr extends MoveEffectAttr {
case BattlerTagType.INGRAIN:
case BattlerTagType.IGNORE_ACCURACY:
case BattlerTagType.AQUA_RING:
case BattlerTagType.STOCKPILE:
return 3;
case BattlerTagType.PROTECTED:
case BattlerTagType.FLYING:
@ -4509,8 +4510,15 @@ export function initMoves() {
.target(MoveTarget.RANDOM_NEAR_ENEMY)
.partial(),
// mareksison/redmaverick616 starts working here
/**
* need to find a way to remove stat changes when stockpile is used
* need to find a way to remove stockpile when the relevant moves are used
*/
new SelfStatusMove(Moves.STOCKPILE, Type.NORMAL, -1, 20, -1, 0, 3)
.unimplemented(),
.attr(AddBattlerTagAttr, BattlerTagType.STOCKPILE, true, false, 0, 10)
.attr(StatChangeAttr, [ BattleStat.DEF, BattleStat.SPDEF ], 1, true)
.target(MoveTarget.USER)
.partial(),
new AttackMove(Moves.SPIT_UP, Type.NORMAL, MoveCategory.SPECIAL, -1, 100, 10, -1, 0, 3)
.unimplemented(),
new SelfStatusMove(Moves.SWALLOW, Type.NORMAL, -1, 10, -1, 0, 3)