Skip to content

Commit

Permalink
minor adjustments in modifier.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
flx-sta committed Oct 2, 2024
1 parent 63f762c commit fe026af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modifier/modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { type PermanentStat, type TempBattleStat, BATTLE_STATS, Stat, TEMP_BATTL
import { StatusEffect } from "#enums/status-effect";
import i18next from "i18next";
import { type DoubleBattleChanceBoosterModifierType, type EvolutionItemModifierType, type FormChangeItemModifierType, type ModifierOverride, type ModifierType, type PokemonBaseStatTotalModifierType, type PokemonExpBoosterModifierType, type PokemonFriendshipBoosterModifierType, type PokemonMoveAccuracyBoosterModifierType, type PokemonMultiHitModifierType, type TerastallizeModifierType, type TmModifierType, getModifierType, ModifierPoolType, ModifierTypeGenerator, modifierTypes, PokemonHeldItemModifierType } from "./modifier-type";
import { ShadowColor } from "#app/enums/color";
import { Color, ShadowColor } from "#enums/color";

export type ModifierPredicate = (modifier: Modifier) => boolean;

Expand Down Expand Up @@ -145,7 +145,7 @@ export abstract class Modifier {

/**
* Checks if {@linkcode Modifier} should be applied
* @param _args parameters passed to {@linkcode Modifier#apply}
* @param _args parameters passed to {@linkcode Modifier.apply}
* @returns always `true` by default
*/
shouldApply(..._args: Parameters<this["apply"]>): boolean {
Expand Down Expand Up @@ -774,7 +774,7 @@ export abstract class LapsingPokemonHeldItemModifier extends PokemonHeldItemModi
const container = super.getIcon(scene, forSummary);

if (this.getPokemon(scene)?.isPlayer()) {
const battleCountText = addTextObject(scene, 27, 0, this.battlesLeft.toString(), TextStyle.PARTY, { fontSize: "66px", color: "#f89890" });
const battleCountText = addTextObject(scene, 27, 0, this.battlesLeft.toString(), TextStyle.PARTY, { fontSize: "66px", color: Color.PINK });
battleCountText.setShadow(0, 0);
battleCountText.setStroke(ShadowColor.RED, 16);
battleCountText.setOrigin(1, 0);
Expand Down Expand Up @@ -1270,7 +1270,7 @@ export class EvolutionStatBoosterModifier extends StatBoosterModifier {
}

/**
* Boosts the incoming stat value by a {@linkcode EvolutionStatBoosterModifier#multiplier} if the holder
* Boosts the incoming stat value by a {@linkcode EvolutionStatBoosterModifier.multiplier} if the holder
* can evolve. Note that, if the holder is a fusion, they will receive
* only half of the boost if either of the fused members are fully
* evolved. However, if they are both unevolved, the full boost
Expand Down Expand Up @@ -2008,7 +2008,7 @@ export abstract class ConsumablePokemonModifier extends ConsumableModifier {
/**
* Applies {@linkcode ConsumablePokemonModifier}
* @param playerPokemon The {@linkcode PlayerPokemon} that consumes the item
* @param args Additional arguments passed to {@linkcode ConsumablePokemonModifier#apply}
* @param args Additional arguments passed to {@linkcode ConsumablePokemonModifier.apply}
*/
abstract override apply(playerPokemon: PlayerPokemon, ...args: unknown[]): boolean | Promise<boolean>;

Expand Down

0 comments on commit fe026af

Please sign in to comment.