Compare commits

...

18 Commits

Author SHA1 Message Date
3ae3ae da32b03056
Merge 5d288b4eb2 into 0567d4b5e2 2024-09-18 12:23:34 -07:00
3ae3ae 5d288b4eb2 Fixed linting error 2024-09-19 02:14:30 +09:00
3ae3ae 5abcd4871f Merge remote-tracking branch 'upstream/beta'
Changed the remote-tracking branch from upstream/main to upstream/beta, which resulted in a large number of changes.
Deleted battle.ts files in locale, and added uproarOnAdd to battler-tags.json for each language.
Merged the latest changes into moves.ts.
Changed “battle:battlerTagsUproar” to “battlerTags:uproarOnAdd” in the UproarMessage class in moves.ts.
2024-09-19 02:02:59 +09:00
Niccolò 44895d5956
Update src/locales/it/battle.ts 2024-09-18 18:22:49 +02:00
3ae3ae b434b959c6
Merge branch 'pagefaultgames:main' into main 2024-07-07 13:49:03 +09:00
3ae3ae 700ff78998
Merge branch 'pagefaultgames:main' into main 2024-07-05 11:31:18 +09:00
3ae3ae db7e357bf3 feat: add new translation key for all language 2024-07-05 10:54:09 +09:00
3ae3ae ff17ba71ba
Merge branch 'pagefaultgames:main' into main 2024-07-05 09:26:46 +09:00
3ae3ae 1154baf04e feat: Make Uproar translatable 2024-07-05 09:25:19 +09:00
3ae3ae cd5a0ef2ff feat: add Uproar message 2024-07-04 11:55:00 +09:00
3ae3ae 3a2d4b93d7
Merge branch 'pagefaultgames:main' into main 2024-07-04 09:06:01 +09:00
3ae3ae 5d15c4a26d feat: Changed Uproar to stop if it has no effect 2024-07-03 17:22:17 +09:00
3ae3ae d02d28a5e0
Merge branch 'pagefaultgames:main' into main 2024-07-03 12:36:23 +09:00
3ae3ae b3a10e52e5 feat: Add FrenzyAttr to Uproar. Update FrenzyAttr constructor to accept min and max parameters
The FrenzyAttr class in move.ts has been updated to accept min and max parameters in its constructor. This allows for more flexibility in setting the turn count for the Frenzy effect.
2024-07-03 12:34:17 +09:00
3ae3ae 93d8082f24 feat: Add conditional check for adding CONFUSED tag in FrenzyTag.onRemove 2024-07-03 12:30:37 +09:00
3ae3ae 67dde56c5d
Merge branch 'pagefaultgames:main' into main 2024-07-03 10:14:06 +09:00
3ae3ae c56c1ff968
Merge branch 'pagefaultgames:main' into main 2024-06-18 15:15:46 +09:00
3ae3ae e7504b0ff7 Remove partial from Matcha Gotcha 2024-06-18 13:59:57 +09:00
12 changed files with 46 additions and 15 deletions

View File

@ -850,9 +850,10 @@ export class FrenzyTag extends BattlerTag {
onRemove(pokemon: Pokemon): void {
super.onRemove(pokemon);
if (this.turnCount < 2) { // Only add CONFUSED tag if a disruption occurs on the final confusion-inducing turn of FRENZY
pokemon.addTag(BattlerTagType.CONFUSED, pokemon.randSeedIntRange(2, 4));
if ([Moves.OUTRAGE, Moves.PETAL_DANCE, Moves.THRASH].includes(this.sourceMove)) {
if (this.turnCount < 2) { // Only add CONFUSED tag if a disruption occurs on the final confusion-inducing turn of FRENZY
pokemon.addTag(BattlerTagType.CONFUSED, pokemon.randSeedIntRange(2, 4));
}
}
}
}

View File

@ -4442,8 +4442,12 @@ export class TypelessAttr extends MoveAttr { }
export class BypassRedirectAttr extends MoveAttr { }
export class FrenzyAttr extends MoveEffectAttr {
constructor() {
private min: number;
private max: number;
constructor(min: number = 2, max: number = 3) {
super(true, MoveEffectTrigger.HIT, false, true);
this.min = min-1;
this.max = max-1;
}
canApply(user: Pokemon, target: Pokemon, move: Move, args: any[]) {
@ -4456,7 +4460,7 @@ export class FrenzyAttr extends MoveEffectAttr {
}
if (!user.getTag(BattlerTagType.FRENZY) && !user.getMoveQueue().length) {
const turnCount = user.randSeedIntRange(1, 2);
const turnCount = user.randSeedIntRange(this.min, this.max);
new Array(turnCount).fill(null).map(() => user.getMoveQueue().push({ move: move.id, targets: [ target.getBattlerIndex() ], ignorePP: true }));
user.addTag(BattlerTagType.FRENZY, turnCount, move.id, user.id);
} else {
@ -4477,6 +4481,18 @@ export const frenzyMissFunc: UserMoveConditionFunc = (user: Pokemon, move: Move)
return true;
};
export class UproarMessage extends MoveEffectAttr {
constructor() {
super();
}
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
user.scene.queueMessage(i18next.t("battlerTags:uproarOnAdd", {
pokemonNameWithAffix: getPokemonNameWithAffix(user),
}));
return true;
}
}
export class AddBattlerTagAttr extends MoveEffectAttr {
public tagType: BattlerTagType;
public turnCountMin: integer;
@ -7443,6 +7459,10 @@ export function initMoves() {
.attr(FlinchAttr)
.condition(new FirstMoveCondition()),
new AttackMove(Moves.UPROAR, Type.NORMAL, MoveCategory.SPECIAL, 90, 100, 10, -1, 0, 3)
.attr(UproarMessage)
.attr(FrenzyAttr, 3, 3)
.attr(NoEffectAttr, frenzyMissFunc)
.attr(MissEffectAttr, frenzyMissFunc)
.ignoresVirtual()
.soundBased()
.target(MoveTarget.RANDOM_NEAR_ENEMY)

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}} ist nun schwach gegenüber Feuer-Attacken!",
"substituteOnAdd": "Ein Delegator von {{pokemonNameWithAffix}} ist erschienen!",
"substituteOnHit": "Der Delegator steckt den Schlag für {{pokemonNameWithAffix}} ein!",
"substituteOnRemove": "Der Delegator von {{pokemonNameWithAffix}} hört auf zu wirken!"
"substituteOnRemove": "Der Delegator von {{pokemonNameWithAffix}} hört auf zu wirken!",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}} became weaker to fire!",
"substituteOnAdd": "{{pokemonNameWithAffix}} put in a substitute!",
"substituteOnHit": "The substitute took damage for {{pokemonNameWithAffix}}!",
"substituteOnRemove": "{{pokemonNameWithAffix}}'s substitute faded!"
"substituteOnRemove": "{{pokemonNameWithAffix}}'s substitute faded!",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "¡{{pokemonNameWithAffix}} se ha vuelto débil ante el fuego!",
"substituteOnAdd": "¡{{pokemonNameWithAffix}} creó un sustituto!",
"substituteOnHit": "¡El sustituto recibe daño en lugar del {{pokemonNameWithAffix}}!",
"substituteOnRemove": "¡El sustituto del {{pokemonNameWithAffix}} se debilitó!"
"substituteOnRemove": "¡El sustituto del {{pokemonNameWithAffix}} se debilitó!",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}} est maintenant\nvulnérable au feu !",
"substituteOnAdd": "{{pokemonNameWithAffix}}\ncrée un clone !",
"substituteOnHit": "Le clone subit les dégâts à la place\nde {{pokemonNameWithAffix}} !",
"substituteOnRemove": "Le clone de {{pokemonNameWithAffix}}\ndisparait…"
"substituteOnRemove": "Le clone de {{pokemonNameWithAffix}}\ndisparait…",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}} è diventato vulnerabile\nal tipo Fuoco!",
"substituteOnAdd": "Appare un sostituto di {{pokemonNameWithAffix}}!",
"substituteOnHit": "Il sostituto viene colpito al posto di {{pokemonNameWithAffix}}!",
"substituteOnRemove": "Il sostituto di {{pokemonNameWithAffix}} svanisce!"
"substituteOnRemove": "Il sostituto di {{pokemonNameWithAffix}} svanisce!",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -70,5 +70,6 @@
"stockpilingOnAdd": "{{pokemonNameWithAffix}}は {{stockpiledCount}}つ たくわえた!",
"disabledOnAdd": "{{pokemonNameWithAffix}}の\n{{moveName}}\nを 封じこめた",
"disabledLapse": "{{pokemonNameWithAffix}}の\nかなしばりが 解けた",
"tarShotOnAdd": "{{pokemonNameWithAffix}}は ほのおに 弱くなった!"
"tarShotOnAdd": "{{pokemonNameWithAffix}}は ほのおに 弱くなった!",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}}[[는]] 불꽃에 약해졌다!",
"substituteOnAdd": "{{pokemonNameWithAffix}}의\n대타가 나타났다!",
"substituteOnHit": "{{pokemonNameWithAffix}}[[를]] 대신하여\n대타가 공격을 받았다!",
"substituteOnRemove": "{{pokemonNameWithAffix}}의\n대타는 사라져 버렸다..."
"substituteOnRemove": "{{pokemonNameWithAffix}}의\n대타는 사라져 버렸다...",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}} tornou-se mais fraco ao fogo!",
"substituteOnAdd": "{{pokemonNameWithAffix}} colocou um substituto!",
"substituteOnHit": "O substituto tomou o dano pelo {{pokemonNameWithAffix}}!",
"substituteOnRemove": "O substituto de {{pokemonNameWithAffix}} desbotou!"
"substituteOnRemove": "O substituto de {{pokemonNameWithAffix}} desbotou!",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}}\n变得怕火了",
"substituteOnAdd": "{{pokemonNameWithAffix}}的\n替身出现了",
"substituteOnHit": "替身代替{{pokemonNameWithAffix}}\n承受了攻击",
"substituteOnRemove": "{{pokemonNameWithAffix}}的\n替身消失了……"
"substituteOnRemove": "{{pokemonNameWithAffix}}的\n替身消失了……",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}

View File

@ -73,5 +73,6 @@
"tarShotOnAdd": "{{pokemonNameWithAffix}}\n變得怕火了",
"substituteOnAdd": "{{pokemonNameWithAffix}}的\n替身出現了",
"substituteOnHit": "替身代替{{pokemonNameWithAffix}}承受了攻擊!",
"substituteOnRemove": "{{pokemonNameWithAffix}}的\n替身消失了……"
"substituteOnRemove": "{{pokemonNameWithAffix}}的\n替身消失了……",
"uproarOnAdd": "{{pokemonNameWithAffix}} caused\nan uproar!"
}