2024-05-23 16:03:10 +01:00
import Phaser from "phaser" ;
2024-06-01 13:56:32 +01:00
import UI from "./ui/ui" ;
2024-09-22 04:47:32 +01:00
import Pokemon , { EnemyPokemon , PlayerPokemon } from "./field/pokemon" ;
import PokemonSpecies , { allSpecies , getPokemonSpecies , PokemonSpeciesFilter } from "./data/pokemon-species" ;
2024-09-22 18:53:18 +01:00
import { Constructor , isNullOrUndefined , randSeedInt } from "#app/utils" ;
2024-05-23 16:03:10 +01:00
import * as Utils from "./utils" ;
2024-09-22 04:47:32 +01:00
import { ConsumableModifier , ConsumablePokemonModifier , DoubleBattleChanceBoosterModifier , ExpBalanceModifier , ExpShareModifier , FusePokemonModifier , HealingBoosterModifier , Modifier , ModifierBar , ModifierPredicate , MultipleParticipantExpBonusModifier , overrideHeldItems , overrideModifiers , PersistentModifier , PokemonExpBoosterModifier , PokemonFormChangeItemModifier , PokemonHeldItemModifier , PokemonHpRestoreModifier , PokemonIncrementingStatModifier , TerastallizeModifier , TurnHeldItemTransferModifier } from "./modifier/modifier" ;
2024-05-23 16:03:10 +01:00
import { PokeballType } from "./data/pokeball" ;
import { initCommonAnims , initMoveAnim , loadCommonAnimAssets , loadMoveAnimAssets , populateAnims } from "./data/battle-anims" ;
import { Phase } from "./phase" ;
import { initGameSpeed } from "./system/game-speed" ;
import { Arena , ArenaBase } from "./field/arena" ;
2024-06-06 01:11:07 +01:00
import { GameData } from "./system/game-data" ;
2024-09-14 03:05:58 +01:00
import { addTextObject , getTextColor , TextStyle } from "./ui/text" ;
2024-04-19 19:55:01 +01:00
import { allMoves } from "./data/move" ;
2024-09-22 04:47:32 +01:00
import { getDefaultModifierTypeForTier , getEnemyModifierTypesForWave , getLuckString , getLuckTextTint , getModifierPoolForType , getModifierType , getPartyLuckValue , ModifierPoolType , modifierTypes , PokemonHeldItemModifierType } from "./modifier/modifier-type" ;
2024-05-23 16:03:10 +01:00
import AbilityBar from "./ui/ability-bar" ;
2024-09-22 04:47:32 +01:00
import { allAbilities , applyAbAttrs , applyPostBattleInitAbAttrs , BlockItemTheftAbAttr , ChangeMovePriorityAbAttr , DoubleBattleChanceAbAttr , PostBattleInitAbAttr } from "./data/ability" ;
2024-06-08 06:07:23 +01:00
import Battle , { BattleType , FixedBattleConfig } from "./battle" ;
import { GameMode , GameModes , getGameMode } from "./game-mode" ;
2024-05-23 16:03:10 +01:00
import FieldSpritePipeline from "./pipelines/field-sprite" ;
import SpritePipeline from "./pipelines/sprite" ;
import PartyExpBar from "./ui/party-exp-bar" ;
2024-09-14 03:05:58 +01:00
import { trainerConfigs , TrainerSlot } from "./data/trainer-config" ;
2024-05-23 16:03:10 +01:00
import Trainer , { TrainerVariant } from "./field/trainer" ;
import TrainerData from "./system/trainer-data" ;
import SoundFade from "phaser3-rex-plugins/plugins/soundfade" ;
import { pokemonPrevolutions } from "./data/pokemon-evolutions" ;
import PokeballTray from "./ui/pokeball-tray" ;
import InvertPostFX from "./pipelines/invert" ;
2024-09-14 03:05:58 +01:00
import { Achv , achvs , ModifierAchv , MoneyAchv } from "./system/achv" ;
2024-05-23 16:03:10 +01:00
import { Voucher , vouchers } from "./system/voucher" ;
import { Gender } from "./data/gender" ;
import UIPlugin from "phaser3-rex-plugins/templates/ui/ui-plugin" ;
import { addUiThemeOverrides } from "./ui/ui-theme" ;
import PokemonData from "./system/pokemon-data" ;
import { Nature } from "./data/nature" ;
2024-09-22 04:47:32 +01:00
import { FormChangeItem , pokemonFormChanges , SpeciesFormChange , SpeciesFormChangeManualTrigger , SpeciesFormChangeTimeOfDayTrigger , SpeciesFormChangeTrigger } from "./data/pokemon-forms" ;
2024-08-19 03:23:52 +01:00
import { FormChangePhase } from "./phases/form-change-phase" ;
2024-05-23 16:03:10 +01:00
import { getTypeRgb } from "./data/type" ;
import PokemonSpriteSparkleHandler from "./field/pokemon-sprite-sparkle-handler" ;
import CharSprite from "./ui/char-sprite" ;
import DamageNumberHandler from "./field/damage-number-handler" ;
import PokemonInfoContainer from "./ui/pokemon-info-container" ;
import { biomeDepths , getBiomeName } from "./data/biomes" ;
import { SceneBase } from "./scene-base" ;
import CandyBar from "./ui/candy-bar" ;
import { Variant , variantData } from "./data/variant" ;
2024-06-17 22:05:33 +01:00
import { Localizable } from "#app/interfaces/locales" ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
import Overrides from "#app/overrides" ;
2024-08-24 17:42:20 +01:00
import { InputsController } from "./inputs-controller" ;
import { UiInputs } from "./ui-inputs" ;
2024-06-11 02:19:07 +01:00
import { NewArenaEvent } from "./events/battle-scene" ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
import { ArenaFlyout } from "./ui/arena-flyout" ;
2024-06-13 23:44:23 +01:00
import { EaseType } from "#enums/ease-type" ;
import { BattleSpec } from "#enums/battle-spec" ;
import { BattleStyle } from "#enums/battle-style" ;
import { Biome } from "#enums/biome" ;
import { ExpNotification } from "#enums/exp-notification" ;
import { MoneyFormat } from "#enums/money-format" ;
import { Moves } from "#enums/moves" ;
import { PlayerGender } from "#enums/player-gender" ;
import { Species } from "#enums/species" ;
import { UiTheme } from "#enums/ui-theme" ;
2024-09-08 05:37:37 +01:00
import { TimedEventManager } from "#app/timed-event-manager" ;
2024-09-13 17:46:22 +01:00
import { PokemonAnimType } from "#enums/pokemon-anim-type" ;
2024-07-05 02:34:18 +01:00
import i18next from "i18next" ;
2024-08-24 17:42:20 +01:00
import { TrainerType } from "#enums/trainer-type" ;
2024-07-30 04:51:56 +01:00
import { battleSpecDialogue } from "./data/dialogue" ;
2024-07-30 05:28:43 +01:00
import { LoadingScene } from "./loading-scene" ;
2024-08-19 03:23:52 +01:00
import { LevelCapPhase } from "./phases/level-cap-phase" ;
import { LoginPhase } from "./phases/login-phase" ;
import { MessagePhase } from "./phases/message-phase" ;
import { MovePhase } from "./phases/move-phase" ;
import { NewBiomeEncounterPhase } from "./phases/new-biome-encounter-phase" ;
import { NextEncounterPhase } from "./phases/next-encounter-phase" ;
2024-09-13 17:46:22 +01:00
import { PokemonAnimPhase } from "./phases/pokemon-anim-phase" ;
2024-08-19 03:23:52 +01:00
import { QuietFormChangePhase } from "./phases/quiet-form-change-phase" ;
import { ReturnPhase } from "./phases/return-phase" ;
import { SelectBiomePhase } from "./phases/select-biome-phase" ;
import { ShowTrainerPhase } from "./phases/show-trainer-phase" ;
import { SummonPhase } from "./phases/summon-phase" ;
import { SwitchPhase } from "./phases/switch-phase" ;
import { TitlePhase } from "./phases/title-phase" ;
import { ToggleDoublePositionPhase } from "./phases/toggle-double-position-phase" ;
import { TurnInitPhase } from "./phases/turn-init-phase" ;
2024-08-22 17:26:10 +01:00
import { ShopCursorTarget } from "./enums/shop-cursor-target" ;
2024-09-14 03:05:58 +01:00
import MysteryEncounter from "./data/mystery-encounters/mystery-encounter" ;
import { allMysteryEncounters , ANTI_VARIANCE_WEIGHT_MODIFIER , AVERAGE_ENCOUNTERS_PER_RUN_TARGET , BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT , MYSTERY_ENCOUNTER_SPAWN_MAX_WEIGHT , mysteryEncountersByBiome , WEIGHT_INCREMENT_ON_SPAWN_MISS } from "./data/mystery-encounters/mystery-encounters" ;
import { MysteryEncounterSaveData } from "#app/data/mystery-encounters/mystery-encounter-save-data" ;
import { MysteryEncounterType } from "#enums/mystery-encounter-type" ;
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier" ;
import HeldModifierConfig from "#app/interfaces/held-modifier-config" ;
import { ExpPhase } from "#app/phases/exp-phase" ;
import { ShowPartyExpBarPhase } from "#app/phases/show-party-exp-bar-phase" ;
import { MysteryEncounterMode } from "#enums/mystery-encounter-mode" ;
2024-09-14 17:35:46 +01:00
import { ExpGainsSpeed } from "./enums/exp-gains-speed" ;
2023-03-28 19:54:52 +01:00
2024-04-04 17:34:23 +01:00
export const bypassLogin = import . meta . env . VITE_BYPASS_LOGIN === "1" ;
2024-03-16 01:59:34 +00:00
2024-04-01 17:48:35 +01:00
const DEBUG_RNG = false ;
2024-03-16 01:59:34 +00:00
2024-06-12 14:56:23 +01:00
const OPP_IVS_OVERRIDE_VALIDATED : integer [ ] = (
Array . isArray ( Overrides . OPP_IVS_OVERRIDE ) ?
Overrides . OPP_IVS_OVERRIDE :
new Array ( 6 ) . fill ( Overrides . OPP_IVS_OVERRIDE )
) . map ( iv = > isNaN ( iv ) || iv === null || iv > 31 ? - 1 : iv ) ;
2024-05-09 20:52:09 +01:00
export const startingWave = Overrides . STARTING_WAVE_OVERRIDE || 1 ;
2023-04-09 05:22:14 +01:00
2024-02-25 02:16:19 +00:00
const expSpriteKeys : string [ ] = [ ] ;
2024-04-13 23:59:58 +01:00
export let starterColors : StarterColors ;
interface StarterColors {
2024-06-06 02:28:12 +01:00
[ key : string ] : [ string , string ]
2024-04-13 23:59:58 +01:00
}
2023-04-28 20:03:42 +01:00
export interface PokeballCounts {
2024-06-06 02:28:12 +01:00
[ pb : string ] : integer ;
2023-04-22 03:59:09 +01:00
}
2023-10-26 21:33:59 +01:00
export type AnySound = Phaser . Sound . WebAudioSound | Phaser . Sound . HTML5AudioSound | Phaser . Sound . NoAudioSound ;
2024-06-06 02:28:12 +01:00
export interface InfoToggle {
toggleInfo ( force? : boolean ) : void ;
isActive ( ) : boolean ;
}
2024-04-02 00:56:46 +01:00
export default class BattleScene extends SceneBase {
2024-05-23 16:03:10 +01:00
public rexUI : UIPlugin ;
public inputController : InputsController ;
public uiInputs : UiInputs ;
2024-08-07 17:23:12 +01:00
public sessionPlayTime : integer | null = null ;
public lastSavePlayTime : integer | null = null ;
2024-05-23 16:03:10 +01:00
public masterVolume : number = 0.5 ;
public bgmVolume : number = 1 ;
2024-08-25 17:40:14 +01:00
public fieldVolume : number = 1 ;
2024-05-23 16:03:10 +01:00
public seVolume : number = 1 ;
2024-08-26 21:01:54 +01:00
public uiVolume : number = 1 ;
2024-05-23 16:03:10 +01:00
public gameSpeed : integer = 1 ;
public damageNumbersMode : integer = 0 ;
2024-05-30 18:45:30 +01:00
public reroll : boolean = false ;
2024-09-04 02:07:56 +01:00
public shopCursorTarget : number = ShopCursorTarget . REWARDS ;
2024-05-30 01:29:59 +01:00
public showMovesetFlyout : boolean = true ;
2024-06-04 03:18:09 +01:00
public showArenaFlyout : boolean = true ;
2024-06-06 04:57:55 +01:00
public showTimeOfDayWidget : boolean = true ;
public timeOfDayAnimation : EaseType = EaseType . NONE ;
2024-05-23 16:03:10 +01:00
public showLevelUpStats : boolean = true ;
public enableTutorials : boolean = import . meta . env . VITE_BYPASS_TUTORIAL === "1" ;
2024-06-06 02:28:12 +01:00
public enableMoveInfo : boolean = true ;
2024-05-23 16:03:10 +01:00
public enableRetries : boolean = false ;
2024-08-08 06:04:12 +01:00
public hideIvs : boolean = false ;
2024-05-28 18:49:15 +01:00
/ * *
* Determines the condition for a notification should be shown for Candy Upgrades
* - 0 = 'Off'
* - 1 = 'Passives Only'
* - 2 = 'On'
* /
public candyUpgradeNotification : integer = 0 ;
/ * *
* Determines what type of notification is used for Candy Upgrades
* - 0 = 'Icon'
* - 1 = 'Animation'
* /
public candyUpgradeDisplay : integer = 0 ;
2024-05-28 03:58:33 +01:00
public moneyFormat : MoneyFormat = MoneyFormat . NORMAL ;
2024-05-23 16:03:10 +01:00
public uiTheme : UiTheme = UiTheme . DEFAULT ;
public windowType : integer = 0 ;
public experimentalSprites : boolean = false ;
2024-06-08 03:52:14 +01:00
public musicPreference : integer = 0 ;
2024-05-23 16:03:10 +01:00
public moveAnimations : boolean = true ;
2024-09-14 17:35:46 +01:00
public expGainsSpeed : ExpGainsSpeed = ExpGainsSpeed . DEFAULT ;
2024-06-03 11:49:13 +01:00
public skipSeenDialogues : boolean = false ;
2024-09-12 15:33:36 +01:00
/ * *
* Determines if the egg hatching animation should be skipped
* - 0 = Never ( never skip animation )
* - 1 = Ask ( ask to skip animation when hatching 2 or more eggs )
* - 2 = Always ( automatically skip animation when hatching 2 or more eggs )
* /
public eggSkipPreference : number = 0 ;
2024-06-03 11:49:13 +01:00
2024-05-23 16:03:10 +01:00
/ * *
2024-06-06 02:28:12 +01:00
* Defines the experience gain display mode .
*
* @remarks
* The ` expParty ` can have several modes :
* - ` 0 ` - Default : The normal experience gain display , nothing changed .
* - ` 1 ` - Level Up Notification : Displays the level up in the small frame instead of a message .
* - ` 2 ` - Skip : No level up frame nor message .
*
* Modes ` 1 ` and ` 2 ` are still compatible with stats display , level up , new move , etc .
* @default 0 - Uses the default normal experience gain display .
* /
2024-06-07 18:14:52 +01:00
public expParty : ExpNotification = 0 ;
2024-05-23 16:03:10 +01:00
public hpBarSpeed : integer = 0 ;
public fusionPaletteSwaps : boolean = true ;
public enableTouchControls : boolean = false ;
public enableVibration : boolean = false ;
2024-06-24 16:31:38 +01:00
public showBgmBar : boolean = true ;
2024-06-06 16:26:04 +01:00
/ * *
* Determines the selected battle style .
2024-06-13 15:10:31 +01:00
* - 0 = 'Switch'
2024-06-06 16:26:04 +01:00
* - 1 = 'Set' - The option to switch the active pokemon at the start of a battle will not display .
* /
2024-06-13 15:10:31 +01:00
public battleStyle : integer = BattleStyle . SWITCH ;
2024-05-23 16:03:10 +01:00
2024-06-08 20:33:13 +01:00
/ * *
* Defines whether or not to show type effectiveness hints
* - true : No hints
* - false : Show hints for moves
* /
public typeHints : boolean = false ;
2024-05-23 16:03:10 +01:00
public disableMenu : boolean = false ;
public gameData : GameData ;
public sessionSlotId : integer ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/** PhaseQueue: dequeue/remove the first element to get the next phase */
2024-06-07 23:33:45 +01:00
public phaseQueue : Phase [ ] ;
2024-06-11 23:55:16 +01:00
public conditionalQueue : Array < [ ( ) = > boolean , Phase ] > ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/** PhaseQueuePrepend: is a temp storage of what will be added to PhaseQueue */
2024-05-23 16:03:10 +01:00
private phaseQueuePrepend : Phase [ ] ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/** overrides default of inserting phases to end of phaseQueuePrepend array, useful or inserting Phases "out of order" */
2024-05-23 16:03:10 +01:00
private phaseQueuePrependSpliceIndex : integer ;
private nextCommandPhaseQueue : Phase [ ] ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
2024-08-07 17:23:12 +01:00
private currentPhase : Phase | null ;
private standbyPhase : Phase | null ;
2024-05-23 16:03:10 +01:00
public field : Phaser.GameObjects.Container ;
public fieldUI : Phaser.GameObjects.Container ;
public charSprite : CharSprite ;
public pbTray : PokeballTray ;
public pbTrayEnemy : PokeballTray ;
public abilityBar : AbilityBar ;
public partyExpBar : PartyExpBar ;
public candyBar : CandyBar ;
public arenaBg : Phaser.GameObjects.Sprite ;
public arenaBgTransition : Phaser.GameObjects.Sprite ;
public arenaPlayer : ArenaBase ;
public arenaPlayerTransition : ArenaBase ;
public arenaEnemy : ArenaBase ;
public arenaNextEnemy : ArenaBase ;
public arena : Arena ;
public gameMode : GameMode ;
public score : integer ;
public lockModifierTiers : boolean ;
public trainer : Phaser.GameObjects.Sprite ;
2024-08-07 17:23:12 +01:00
public lastEnemyTrainer : Trainer | null ;
2024-05-23 16:03:10 +01:00
public currentBattle : Battle ;
public pokeballCounts : PokeballCounts ;
public money : integer ;
public pokemonInfoContainer : PokemonInfoContainer ;
private party : PlayerPokemon [ ] ;
2024-09-14 03:05:58 +01:00
/** Session save data that pertains to Mystery Encounters */
public mysteryEncounterSaveData : MysteryEncounterSaveData = new MysteryEncounterSaveData ( ) ;
/** If the previous wave was a MysteryEncounter, tracks the object with this variable. Mostly used for visual object cleanup */
public lastMysteryEncounter? : MysteryEncounter ;
2024-05-25 00:43:38 +01:00
/** Combined Biome and Wave count text */
private biomeWaveText : Phaser.GameObjects.Text ;
2024-05-23 16:03:10 +01:00
private moneyText : Phaser.GameObjects.Text ;
private scoreText : Phaser.GameObjects.Text ;
private luckLabelText : Phaser.GameObjects.Text ;
private luckText : Phaser.GameObjects.Text ;
private modifierBar : ModifierBar ;
private enemyModifierBar : ModifierBar ;
2024-06-04 03:18:09 +01:00
public arenaFlyout : ArenaFlyout ;
2024-05-23 16:03:10 +01:00
private fieldOverlay : Phaser.GameObjects.Rectangle ;
2024-06-22 00:04:25 +01:00
private shopOverlay : Phaser.GameObjects.Rectangle ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
private shopOverlayShown : boolean = false ;
2024-07-29 21:47:37 +01:00
private shopOverlayOpacity : number = . 8 ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
2024-06-07 23:33:45 +01:00
public modifiers : PersistentModifier [ ] ;
2024-05-23 16:03:10 +01:00
private enemyModifiers : PersistentModifier [ ] ;
public uiContainer : Phaser.GameObjects.Container ;
public ui : UI ;
public seed : string ;
public waveSeed : string ;
public waveCycleOffset : integer ;
public offsetGym : boolean ;
public damageNumberHandler : DamageNumberHandler ;
private spriteSparkleHandler : PokemonSpriteSparkleHandler ;
public fieldSpritePipeline : FieldSpritePipeline ;
public spritePipeline : SpritePipeline ;
private bgm : AnySound ;
2024-08-07 17:23:12 +01:00
private bgmResumeTimer : Phaser.Time.TimerEvent | null ;
2024-05-23 16:03:10 +01:00
private bgmCache : Set < string > = new Set ( ) ;
private playTimeTimer : Phaser.Time.TimerEvent ;
public rngCounter : integer = 0 ;
public rngSeedOverride : string = "" ;
public rngOffset : integer = 0 ;
2024-06-09 02:35:11 +01:00
public inputMethod : string ;
2024-06-06 02:28:12 +01:00
private infoToggles : InfoToggle [ ] = [ ] ;
2024-06-14 17:42:37 +01:00
public eventManager : TimedEventManager ;
2024-05-24 23:01:47 +01:00
/ * *
2024-05-24 23:03:49 +01:00
* Allows subscribers to listen for events
*
* Current Events :
* - { @linkcode BattleSceneEventType . MOVE_USED } { @linkcode MoveUsedEvent }
2024-05-30 01:29:59 +01:00
* - { @linkcode BattleSceneEventType . TURN_INIT } { @linkcode TurnInitEvent }
* - { @linkcode BattleSceneEventType . TURN_END } { @linkcode TurnEndEvent }
* - { @linkcode BattleSceneEventType . NEW_ARENA } { @linkcode NewArenaEvent }
2024-05-24 23:03:49 +01:00
* /
2024-05-24 23:01:47 +01:00
public readonly eventTarget : EventTarget = new EventTarget ( ) ;
2024-05-23 16:03:10 +01:00
constructor ( ) {
super ( "battle" ) ;
this . phaseQueue = [ ] ;
this . phaseQueuePrepend = [ ] ;
2024-06-11 23:55:16 +01:00
this . conditionalQueue = [ ] ;
2024-05-23 16:03:10 +01:00
this . phaseQueuePrependSpliceIndex = - 1 ;
this . nextCommandPhaseQueue = [ ] ;
this . updateGameInfo ( ) ;
}
loadPokemonAtlas ( key : string , atlasPath : string , experimental? : boolean ) {
if ( experimental === undefined ) {
experimental = this . experimentalSprites ;
}
const variant = atlasPath . includes ( "variant/" ) || /_[0-3]$/ . test ( atlasPath ) ;
if ( experimental ) {
experimental = this . hasExpSprite ( key ) ;
}
if ( variant ) {
atlasPath = atlasPath . replace ( "variant/" , "" ) ;
}
this . load . atlas ( key , ` images/pokemon/ ${ variant ? "variant/" : "" } ${ experimental ? "exp/" : "" } ${ atlasPath } .png ` , ` images/pokemon/ ${ variant ? "variant/" : "" } ${ experimental ? "exp/" : "" } ${ atlasPath } .json ` ) ;
}
async preload() {
if ( DEBUG_RNG ) {
const scene = this ;
const originalRealInRange = Phaser . Math . RND . realInRange ;
Phaser . Math . RND . realInRange = function ( min : number , max : number ) : number {
const ret = originalRealInRange . apply ( this , [ min , max ] ) ;
const args = [ "RNG" , ++ scene . rngCounter , ret / ( max - min ) , ` min: ${ min } / max: ${ max } ` ] ;
args . push ( ` seed: ${ scene . rngSeedOverride || scene . waveSeed || scene . seed } ` ) ;
if ( scene . rngOffset ) {
args . push ( ` offset: ${ scene . rngOffset } ` ) ;
}
console . log ( . . . args ) ;
return ret ;
} ;
}
populateAnims ( ) ;
await this . initVariantData ( ) ;
}
create() {
2024-07-30 05:28:43 +01:00
this . scene . remove ( LoadingScene . KEY ) ;
2024-05-23 16:03:10 +01:00
initGameSpeed . apply ( this ) ;
this . inputController = new InputsController ( this ) ;
this . uiInputs = new UiInputs ( this , this . inputController ) ;
this . gameData = new GameData ( this ) ;
addUiThemeOverrides ( this ) ;
this . load . setBaseURL ( ) ;
this . spritePipeline = new SpritePipeline ( this . game ) ;
( this . renderer as Phaser . Renderer . WebGL . WebGLRenderer ) . pipelines . add ( "Sprite" , this . spritePipeline ) ;
this . fieldSpritePipeline = new FieldSpritePipeline ( this . game ) ;
( this . renderer as Phaser . Renderer . WebGL . WebGLRenderer ) . pipelines . add ( "FieldSprite" , this . fieldSpritePipeline ) ;
2024-06-14 17:42:37 +01:00
this . eventManager = new TimedEventManager ( ) ;
2024-06-07 23:33:45 +01:00
this . launchBattle ( ) ;
2024-05-23 16:03:10 +01:00
}
update() {
this . ui ? . update ( ) ;
}
launchBattle() {
this . arenaBg = this . add . sprite ( 0 , 0 , "plains_bg" ) ;
2024-06-23 17:09:23 +01:00
this . arenaBg . setName ( "sprite-arena-bg" ) ;
2024-05-23 16:03:10 +01:00
this . arenaBgTransition = this . add . sprite ( 0 , 0 , "plains_bg" ) ;
2024-06-23 17:09:23 +01:00
this . arenaBgTransition . setName ( "sprite-arena-bg-transition" ) ;
2024-05-23 16:03:10 +01:00
[ this . arenaBgTransition , this . arenaBg ] . forEach ( a = > {
a . setPipeline ( this . fieldSpritePipeline ) ;
a . setScale ( 6 ) ;
a . setOrigin ( 0 ) ;
a . setSize ( 320 , 240 ) ;
} ) ;
const field = this . add . container ( 0 , 0 ) ;
2024-06-23 17:09:23 +01:00
field . setName ( "field" ) ;
2024-05-23 16:03:10 +01:00
field . setScale ( 6 ) ;
this . field = field ;
const fieldUI = this . add . container ( 0 , this . game . canvas . height ) ;
2024-06-23 17:09:23 +01:00
fieldUI . setName ( "field-ui" ) ;
2024-05-23 16:03:10 +01:00
fieldUI . setDepth ( 1 ) ;
fieldUI . setScale ( 6 ) ;
this . fieldUI = fieldUI ;
2024-07-30 05:28:43 +01:00
const transition = this . make . rexTransitionImagePack ( {
2024-05-23 16:03:10 +01:00
x : 0 ,
y : 0 ,
scale : 6 ,
key : "loading_bg" ,
origin : { x : 0 , y : 0 }
} , true ) ;
2024-07-30 05:28:43 +01:00
//@ts-ignore (the defined types in the package are incromplete...)
2024-05-23 16:03:10 +01:00
transition . transit ( {
mode : "blinds" ,
ease : "Cubic.easeInOut" ,
duration : 1250 ,
2024-07-30 05:28:43 +01:00
} ) ;
transition . once ( "complete" , ( ) = > {
transition . destroy ( ) ;
2024-05-23 16:03:10 +01:00
} ) ;
2024-04-02 00:56:46 +01:00
2024-05-23 16:03:10 +01:00
this . add . existing ( transition ) ;
2024-04-02 00:56:46 +01:00
2024-05-23 16:03:10 +01:00
const uiContainer = this . add . container ( 0 , 0 ) ;
2024-06-23 17:09:23 +01:00
uiContainer . setName ( "ui" ) ;
2024-05-23 16:03:10 +01:00
uiContainer . setDepth ( 2 ) ;
uiContainer . setScale ( 6 ) ;
2024-04-02 00:56:46 +01:00
2024-05-23 16:03:10 +01:00
this . uiContainer = uiContainer ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
const overlayWidth = this . game . canvas . width / 6 ;
const overlayHeight = ( this . game . canvas . height / 6 ) - 48 ;
this . fieldOverlay = this . add . rectangle ( 0 , overlayHeight * - 1 - 48 , overlayWidth , overlayHeight , 0x424242 ) ;
2024-05-30 16:27:17 +01:00
this . fieldOverlay . setName ( "rect-field-overlay" ) ;
2024-05-23 16:03:10 +01:00
this . fieldOverlay . setOrigin ( 0 , 0 ) ;
this . fieldOverlay . setAlpha ( 0 ) ;
this . fieldUI . add ( this . fieldOverlay ) ;
2023-03-28 19:54:52 +01:00
2024-06-22 00:04:25 +01:00
this . shopOverlay = this . add . rectangle ( 0 , overlayHeight * - 1 - 48 , overlayWidth , overlayHeight , 0x070707 ) ;
this . shopOverlay . setName ( "rect-shop-overlay" ) ;
this . shopOverlay . setOrigin ( 0 , 0 ) ;
this . shopOverlay . setAlpha ( 0 ) ;
this . fieldUI . add ( this . shopOverlay ) ;
2024-05-23 16:03:10 +01:00
this . modifiers = [ ] ;
this . enemyModifiers = [ ] ;
2023-11-10 20:51:34 +00:00
2024-05-23 16:03:10 +01:00
this . modifierBar = new ModifierBar ( this ) ;
2024-06-23 17:09:23 +01:00
this . modifierBar . setName ( "modifier-bar" ) ;
2024-05-23 16:03:10 +01:00
this . add . existing ( this . modifierBar ) ;
uiContainer . add ( this . modifierBar ) ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . enemyModifierBar = new ModifierBar ( this , true ) ;
2024-06-23 17:09:23 +01:00
this . enemyModifierBar . setName ( "enemy-modifier-bar" ) ;
2024-05-23 16:03:10 +01:00
this . add . existing ( this . enemyModifierBar ) ;
uiContainer . add ( this . enemyModifierBar ) ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . charSprite = new CharSprite ( this ) ;
2024-05-30 16:27:17 +01:00
this . charSprite . setName ( "sprite-char" ) ;
2024-05-23 16:03:10 +01:00
this . charSprite . setup ( ) ;
2023-04-21 00:44:56 +01:00
2024-05-23 16:03:10 +01:00
this . fieldUI . add ( this . charSprite ) ;
2024-02-22 23:03:36 +00:00
2024-05-23 16:03:10 +01:00
this . pbTray = new PokeballTray ( this , true ) ;
2024-06-23 17:09:23 +01:00
this . pbTray . setName ( "pb-tray" ) ;
2024-05-23 16:03:10 +01:00
this . pbTray . setup ( ) ;
2024-02-22 23:03:36 +00:00
2024-05-23 16:03:10 +01:00
this . pbTrayEnemy = new PokeballTray ( this , false ) ;
2024-06-23 17:09:23 +01:00
this . pbTrayEnemy . setName ( "enemy-pb-tray" ) ;
2024-05-23 16:03:10 +01:00
this . pbTrayEnemy . setup ( ) ;
2023-10-18 23:01:15 +01:00
2024-05-23 16:03:10 +01:00
this . fieldUI . add ( this . pbTray ) ;
this . fieldUI . add ( this . pbTrayEnemy ) ;
2023-10-18 23:01:15 +01:00
2024-05-23 16:03:10 +01:00
this . abilityBar = new AbilityBar ( this ) ;
2024-06-23 17:09:23 +01:00
this . abilityBar . setName ( "ability-bar" ) ;
2024-05-23 16:03:10 +01:00
this . abilityBar . setup ( ) ;
this . fieldUI . add ( this . abilityBar ) ;
2023-10-18 23:01:15 +01:00
2024-05-23 16:03:10 +01:00
this . partyExpBar = new PartyExpBar ( this ) ;
2024-06-23 17:09:23 +01:00
this . partyExpBar . setName ( "party-exp-bar" ) ;
2024-05-23 16:03:10 +01:00
this . partyExpBar . setup ( ) ;
this . fieldUI . add ( this . partyExpBar ) ;
2023-04-27 06:14:15 +01:00
2024-05-23 16:03:10 +01:00
this . candyBar = new CandyBar ( this ) ;
2024-06-23 17:09:23 +01:00
this . candyBar . setName ( "candy-bar" ) ;
2024-05-23 16:03:10 +01:00
this . candyBar . setup ( ) ;
this . fieldUI . add ( this . candyBar ) ;
2023-10-04 22:24:28 +01:00
2024-05-25 00:43:38 +01:00
this . biomeWaveText = addTextObject ( this , ( this . game . canvas . width / 6 ) - 2 , 0 , startingWave . toString ( ) , TextStyle . BATTLE_INFO ) ;
2024-05-30 16:27:17 +01:00
this . biomeWaveText . setName ( "text-biome-wave" ) ;
2024-06-06 17:50:02 +01:00
this . biomeWaveText . setOrigin ( 1 , 0.5 ) ;
2024-05-25 00:43:38 +01:00
this . fieldUI . add ( this . biomeWaveText ) ;
2024-04-13 23:59:58 +01:00
2024-05-23 16:03:10 +01:00
this . moneyText = addTextObject ( this , ( this . game . canvas . width / 6 ) - 2 , 0 , "" , TextStyle . MONEY ) ;
2024-05-30 16:27:17 +01:00
this . moneyText . setName ( "text-money" ) ;
2024-06-06 17:50:02 +01:00
this . moneyText . setOrigin ( 1 , 0.5 ) ;
2024-05-23 16:03:10 +01:00
this . fieldUI . add ( this . moneyText ) ;
2023-04-19 04:54:07 +01:00
2024-05-23 16:03:10 +01:00
this . scoreText = addTextObject ( this , ( this . game . canvas . width / 6 ) - 2 , 0 , "" , TextStyle . PARTY , { fontSize : "54px" } ) ;
2024-05-30 16:27:17 +01:00
this . scoreText . setName ( "text-score" ) ;
2024-06-06 17:50:02 +01:00
this . scoreText . setOrigin ( 1 , 0.5 ) ;
2024-05-23 16:03:10 +01:00
this . fieldUI . add ( this . scoreText ) ;
2023-10-22 01:23:43 +01:00
2024-05-23 16:03:10 +01:00
this . luckText = addTextObject ( this , ( this . game . canvas . width / 6 ) - 2 , 0 , "" , TextStyle . PARTY , { fontSize : "54px" } ) ;
2024-05-30 16:27:17 +01:00
this . luckText . setName ( "text-luck" ) ;
2024-06-06 17:50:02 +01:00
this . luckText . setOrigin ( 1 , 0.5 ) ;
2024-05-23 16:03:10 +01:00
this . luckText . setVisible ( false ) ;
this . fieldUI . add ( this . luckText ) ;
2024-03-19 04:03:41 +00:00
2024-07-05 02:34:18 +01:00
this . luckLabelText = addTextObject ( this , ( this . game . canvas . width / 6 ) - 2 , 0 , i18next . t ( "common:luckIndicator" ) , TextStyle . PARTY , { fontSize : "54px" } ) ;
2024-05-30 16:27:17 +01:00
this . luckLabelText . setName ( "text-luck-label" ) ;
2024-06-06 17:50:02 +01:00
this . luckLabelText . setOrigin ( 1 , 0.5 ) ;
2024-05-23 16:03:10 +01:00
this . luckLabelText . setVisible ( false ) ;
this . fieldUI . add ( this . luckLabelText ) ;
2024-04-26 16:31:39 +01:00
2024-06-04 03:18:09 +01:00
this . arenaFlyout = new ArenaFlyout ( this ) ;
this . fieldUI . add ( this . arenaFlyout ) ;
this . fieldUI . moveBelow < Phaser.GameObjects.GameObject > ( this . arenaFlyout , this . fieldOverlay ) ;
2024-05-23 16:03:10 +01:00
this . updateUIPositions ( ) ;
2024-04-26 16:31:39 +01:00
2024-05-23 16:03:10 +01:00
this . damageNumberHandler = new DamageNumberHandler ( ) ;
2023-10-22 01:23:43 +01:00
2024-05-23 16:03:10 +01:00
this . spriteSparkleHandler = new PokemonSpriteSparkleHandler ( ) ;
this . spriteSparkleHandler . setup ( this ) ;
2024-03-01 05:27:46 +00:00
2024-05-23 16:03:10 +01:00
this . pokemonInfoContainer = new PokemonInfoContainer ( this , ( this . game . canvas . width / 6 ) + 52 , - ( this . game . canvas . height / 6 ) + 66 ) ;
this . pokemonInfoContainer . setup ( ) ;
2024-02-17 05:40:03 +00:00
2024-05-23 16:03:10 +01:00
this . fieldUI . add ( this . pokemonInfoContainer ) ;
2024-03-08 03:43:15 +00:00
2024-05-23 16:03:10 +01:00
this . party = [ ] ;
2024-03-08 03:43:15 +00:00
2024-05-23 16:03:10 +01:00
const loadPokemonAssets = [ ] ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . arenaPlayer = new ArenaBase ( this , true ) ;
2024-06-23 17:09:23 +01:00
this . arenaPlayer . setName ( "arena-player" ) ;
2024-05-23 16:03:10 +01:00
this . arenaPlayerTransition = new ArenaBase ( this , true ) ;
2024-06-23 17:09:23 +01:00
this . arenaPlayerTransition . setName ( "arena-player-transition" ) ;
2024-05-23 16:03:10 +01:00
this . arenaEnemy = new ArenaBase ( this , false ) ;
2024-06-23 17:09:23 +01:00
this . arenaEnemy . setName ( "arena-enemy" ) ;
2024-05-23 16:03:10 +01:00
this . arenaNextEnemy = new ArenaBase ( this , false ) ;
2024-06-23 17:09:23 +01:00
this . arenaNextEnemy . setName ( "arena-next-enemy" ) ;
2023-03-29 05:31:25 +01:00
2024-05-23 16:03:10 +01:00
this . arenaBgTransition . setVisible ( false ) ;
this . arenaPlayerTransition . setVisible ( false ) ;
this . arenaNextEnemy . setVisible ( false ) ;
2023-04-12 05:37:56 +01:00
2024-05-23 16:03:10 +01:00
[ this . arenaPlayer , this . arenaPlayerTransition , this . arenaEnemy , this . arenaNextEnemy ] . forEach ( a = > {
if ( a instanceof Phaser . GameObjects . Sprite ) {
a . setOrigin ( 0 , 0 ) ;
}
field . add ( a ) ;
} ) ;
2023-04-12 05:37:56 +01:00
2024-05-23 16:03:10 +01:00
const trainer = this . addFieldSprite ( 0 , 0 , ` trainer_ ${ this . gameData . gender === PlayerGender . FEMALE ? "f" : "m" } _back ` ) ;
trainer . setOrigin ( 0.5 , 1 ) ;
2024-06-07 15:27:29 +01:00
trainer . setName ( "sprite-trainer" ) ;
2023-04-12 05:37:56 +01:00
2024-05-23 16:03:10 +01:00
field . add ( trainer ) ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . trainer = trainer ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . anims . create ( {
key : "prompt" ,
frames : this.anims.generateFrameNumbers ( "prompt" , { start : 1 , end : 4 } ) ,
frameRate : 6 ,
repeat : - 1 ,
showOnStart : true
} ) ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . anims . create ( {
key : "tera_sparkle" ,
frames : this.anims.generateFrameNumbers ( "tera_sparkle" , { start : 0 , end : 12 } ) ,
frameRate : 18 ,
repeat : 0 ,
showOnStart : true ,
hideOnComplete : true
} ) ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
this . reset ( false , false , true ) ;
2024-02-17 05:40:03 +00:00
2024-05-23 16:03:10 +01:00
const ui = new UI ( this ) ;
this . uiContainer . add ( ui ) ;
2023-04-22 03:59:09 +01:00
2024-05-23 16:03:10 +01:00
this . ui = ui ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
ui . setup ( ) ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
const defaultMoves = [ Moves . TACKLE , Moves . TAIL_WHIP , Moves . FOCUS_ENERGY , Moves . STRUGGLE ] ;
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
Promise . all ( [
Promise . all ( loadPokemonAssets ) ,
initCommonAnims ( this ) . then ( ( ) = > loadCommonAnimAssets ( this , true ) ) ,
Promise . all ( [ Moves . TACKLE , Moves . TAIL_WHIP , Moves . FOCUS_ENERGY , Moves . STRUGGLE ] . map ( m = > initMoveAnim ( this , m ) ) ) . then ( ( ) = > loadMoveAnimAssets ( this , defaultMoves , true ) ) ,
this . initStarterColors ( )
] ) . then ( ( ) = > {
this . pushPhase ( new LoginPhase ( this ) ) ;
this . pushPhase ( new TitlePhase ( this ) ) ;
2024-04-04 14:45:25 +01:00
2024-05-23 16:03:10 +01:00
this . shiftPhase ( ) ;
} ) ;
}
2023-03-29 05:31:25 +01:00
2024-05-23 16:03:10 +01:00
initSession ( ) : void {
if ( this . sessionPlayTime === null ) {
this . sessionPlayTime = 0 ;
}
if ( this . lastSavePlayTime === null ) {
this . lastSavePlayTime = 0 ;
}
2023-03-28 19:54:52 +01:00
2024-05-23 16:03:10 +01:00
if ( this . playTimeTimer ) {
this . playTimeTimer . destroy ( ) ;
}
2024-01-12 01:27:50 +00:00
2024-05-23 16:03:10 +01:00
this . playTimeTimer = this . time . addEvent ( {
delay : Utils.fixedInt ( 1000 ) ,
repeat : - 1 ,
2024-06-06 02:28:12 +01:00
callback : ( ) = > {
2024-05-23 16:03:10 +01:00
if ( this . gameData ) {
this . gameData . gameStats . playTime ++ ;
}
if ( this . sessionPlayTime !== null ) {
this . sessionPlayTime ++ ;
}
if ( this . lastSavePlayTime !== null ) {
this . lastSavePlayTime ++ ;
}
}
} ) ;
2024-05-25 00:43:38 +01:00
this . updateBiomeWaveText ( ) ;
2024-05-23 16:03:10 +01:00
this . updateMoneyText ( ) ;
this . updateScoreText ( ) ;
}
async initExpSprites ( ) : Promise < void > {
if ( expSpriteKeys . length ) {
return ;
}
this . cachedFetch ( "./exp-sprites.json" ) . then ( res = > res . json ( ) ) . then ( keys = > {
if ( Array . isArray ( keys ) ) {
expSpriteKeys . push ( . . . keys ) ;
}
Promise . resolve ( ) ;
} ) ;
}
async initVariantData ( ) : Promise < void > {
Object . keys ( variantData ) . forEach ( key = > delete variantData [ key ] ) ;
await this . cachedFetch ( "./images/pokemon/variant/_masterlist.json" ) . then ( res = > res . json ( ) )
. then ( v = > {
Object . keys ( v ) . forEach ( k = > variantData [ k ] = v [ k ] ) ;
if ( this . experimentalSprites ) {
const expVariantData = variantData [ "exp" ] ;
const traverseVariantData = ( keys : string [ ] ) = > {
let variantTree = variantData ;
let expTree = expVariantData ;
keys . map ( ( k : string , i : integer ) = > {
if ( i < keys . length - 1 ) {
variantTree = variantTree [ k ] ;
expTree = expTree [ k ] ;
} else if ( variantTree . hasOwnProperty ( k ) && expTree . hasOwnProperty ( k ) ) {
if ( [ "back" , "female" ] . includes ( k ) ) {
traverseVariantData ( keys . concat ( k ) ) ;
} else {
variantTree [ k ] = expTree [ k ] ;
}
}
} ) ;
} ;
Object . keys ( expVariantData ) . forEach ( ek = > traverseVariantData ( [ ek ] ) ) ;
}
Promise . resolve ( ) ;
} ) ;
}
cachedFetch ( url : string , init? : RequestInit ) : Promise < Response > {
const manifest = this . game [ "manifest" ] ;
if ( manifest ) {
const timestamp = manifest [ ` / ${ url . replace ( "./" , "" ) } ` ] ;
if ( timestamp ) {
url += ` ?t= ${ timestamp } ` ;
}
}
return fetch ( url , init ) ;
}
initStarterColors ( ) : Promise < void > {
return new Promise ( resolve = > {
if ( starterColors ) {
return resolve ( ) ;
}
this . cachedFetch ( "./starter-colors.json" ) . then ( res = > res . json ( ) ) . then ( sc = > {
starterColors = { } ;
Object . keys ( sc ) . forEach ( key = > {
starterColors [ key ] = sc [ key ] ;
} ) ;
/ * c o n s t l o a d P o k e m o n A s s e t s : P r o m i s e < v o i d > [ ] = [ ] ;
2024-04-13 23:59:58 +01:00
2024-06-06 02:28:12 +01:00
for ( let s of Object . keys ( speciesStarters ) ) {
const species = getPokemonSpecies ( parseInt ( s ) ) ;
loadPokemonAssets . push ( species . loadAssets ( this , false , 0 , false ) ) ;
}
2024-05-24 00:45:04 +01:00
2024-06-06 02:28:12 +01:00
Promise . all ( loadPokemonAssets ) . then ( ( ) = > {
const starterCandyColors = { } ;
const rgbaToHexFunc = ( r , g , b ) = > [ r , g , b ] . map ( x = > x . toString ( 16 ) . padStart ( 2 , '0' ) ) . join ( '' ) ;
2024-05-24 00:45:04 +01:00
2024-06-06 02:28:12 +01:00
for ( let s of Object . keys ( speciesStarters ) ) {
const species = getPokemonSpecies ( parseInt ( s ) ) ;
2024-05-24 00:45:04 +01:00
2024-06-06 02:28:12 +01:00
starterCandyColors [ species . speciesId ] = species . generateCandyColors ( this ) . map ( c = > rgbaToHexFunc ( c [ 0 ] , c [ 1 ] , c [ 2 ] ) ) ;
}
2024-05-24 00:45:04 +01:00
2024-06-06 02:28:12 +01:00
console . log ( JSON . stringify ( starterCandyColors ) ) ;
2024-04-13 23:59:58 +01:00
2024-06-06 02:28:12 +01:00
resolve ( ) ;
} ) ; * /
2024-04-13 23:59:58 +01:00
2024-05-23 16:03:10 +01:00
resolve ( ) ;
} ) ;
} ) ;
}
hasExpSprite ( key : string ) : boolean {
const keyMatch = /^pkmn__?(back__)?(shiny__)?(female__)?(\d+)(\-.*?)?(?:_[1-3])?$/g . exec ( key ) ;
2024-08-07 17:23:12 +01:00
if ( ! keyMatch ) {
return false ;
}
let k = keyMatch [ 4 ] ! ;
2024-05-23 16:03:10 +01:00
if ( keyMatch [ 2 ] ) {
k += "s" ;
}
if ( keyMatch [ 1 ] ) {
k += "b" ;
}
if ( keyMatch [ 3 ] ) {
k += "f" ;
}
if ( keyMatch [ 5 ] ) {
k += keyMatch [ 5 ] ;
}
if ( ! expSpriteKeys . includes ( k ) ) {
return false ;
}
return true ;
}
getParty ( ) : PlayerPokemon [ ] {
return this . party ;
}
2024-08-07 17:23:12 +01:00
getPlayerPokemon ( ) : PlayerPokemon | undefined {
2024-05-23 16:03:10 +01:00
return this . getPlayerField ( ) . find ( p = > p . isActive ( ) ) ;
}
2024-09-20 15:27:43 +01:00
/ * *
* Finds the first { @linkcode Pokemon . isActive ( ) | active PlayerPokemon } that isn ' t also currently switching out
* @returns Either the first { @linkcode PlayerPokemon } satisfying , or undefined if no player pokemon on the field satisfy
* /
getNonSwitchedPlayerPokemon ( ) : PlayerPokemon | undefined {
return this . getPlayerField ( ) . find ( p = > p . isActive ( ) && p . switchOutStatus === false ) ;
}
2024-06-12 15:19:50 +01:00
/ * *
* Returns an array of PlayerPokemon of length 1 or 2 depending on if double battles or not
* @returns array of { @linkcode PlayerPokemon }
* /
2024-05-23 16:03:10 +01:00
getPlayerField ( ) : PlayerPokemon [ ] {
const party = this . getParty ( ) ;
return party . slice ( 0 , Math . min ( party . length , this . currentBattle ? . double ? 2 : 1 ) ) ;
}
getEnemyParty ( ) : EnemyPokemon [ ] {
return this . currentBattle ? . enemyParty || [ ] ;
}
2024-08-07 17:23:12 +01:00
getEnemyPokemon ( ) : EnemyPokemon | undefined {
2024-05-23 16:03:10 +01:00
return this . getEnemyField ( ) . find ( p = > p . isActive ( ) ) ;
}
2024-09-20 15:27:43 +01:00
/ * *
* Finds the first { @linkcode Pokemon . isActive ( ) | active EnemyPokemon } pokemon from the enemy that isn ' t also currently switching out
* @returns Either the first { @linkcode EnemyPokemon } satisfying , or undefined if no player pokemon on the field satisfy
* /
getNonSwitchedEnemyPokemon ( ) : EnemyPokemon | undefined {
return this . getEnemyField ( ) . find ( p = > p . isActive ( ) && p . switchOutStatus === false ) ;
}
2024-06-12 15:19:50 +01:00
/ * *
* Returns an array of EnemyPokemon of length 1 or 2 depending on if double battles or not
* @returns array of { @linkcode EnemyPokemon }
* /
2024-05-23 16:03:10 +01:00
getEnemyField ( ) : EnemyPokemon [ ] {
const party = this . getEnemyParty ( ) ;
return party . slice ( 0 , Math . min ( party . length , this . currentBattle ? . double ? 2 : 1 ) ) ;
}
getField ( activeOnly : boolean = false ) : Pokemon [ ] {
const ret = new Array ( 4 ) . fill ( null ) ;
const playerField = this . getPlayerField ( ) ;
const enemyField = this . getEnemyField ( ) ;
ret . splice ( 0 , playerField . length , . . . playerField ) ;
ret . splice ( 2 , enemyField . length , . . . enemyField ) ;
return activeOnly
? ret . filter ( p = > p ? . isActive ( ) )
: ret ;
}
2024-08-08 01:44:34 +01:00
/ * *
* Used in doubles battles to redirect moves from one pokemon to another when one faints or is removed from the field
* @param removedPokemon { @linkcode Pokemon } the pokemon that is being removed from the field ( flee , faint ) , moves to be redirected FROM
* @param allyPokemon { @linkcode Pokemon } the pokemon that will have the moves be redirected TO
* /
redirectPokemonMoves ( removedPokemon : Pokemon , allyPokemon : Pokemon ) : void {
// failsafe: if not a double battle just return
if ( this . currentBattle . double === false ) {
return ;
}
if ( allyPokemon ? . isActive ( true ) ) {
let targetingMovePhase : MovePhase ;
do {
targetingMovePhase = this . findPhase ( mp = > mp instanceof MovePhase && mp . targets . length === 1 && mp . targets [ 0 ] === removedPokemon . getBattlerIndex ( ) && mp . pokemon . isPlayer ( ) !== allyPokemon . isPlayer ( ) ) as MovePhase ;
if ( targetingMovePhase && targetingMovePhase . targets [ 0 ] !== allyPokemon . getBattlerIndex ( ) ) {
targetingMovePhase . targets [ 0 ] = allyPokemon . getBattlerIndex ( ) ;
}
} while ( targetingMovePhase ) ;
}
}
2024-06-22 00:04:25 +01:00
/ * *
* Returns the ModifierBar of this scene , which is declared private and therefore not accessible elsewhere
2024-08-13 21:30:01 +01:00
* @param isEnemy Whether to return the enemy ' s modifier bar
2024-06-22 00:04:25 +01:00
* @returns { ModifierBar }
* /
2024-08-13 21:30:01 +01:00
getModifierBar ( isEnemy? : boolean ) : ModifierBar {
return isEnemy ? this . enemyModifierBar : this.modifierBar ;
2024-06-22 00:04:25 +01:00
}
2024-06-06 02:28:12 +01:00
// store info toggles to be accessible by the ui
addInfoToggle ( infoToggle : InfoToggle ) : void {
this . infoToggles . push ( infoToggle ) ;
}
// return the stored info toggles; used by ui-inputs
getInfoToggles ( activeOnly : boolean = false ) : InfoToggle [ ] {
return activeOnly ? this . infoToggles . filter ( t = > t ? . isActive ( ) ) : this . infoToggles ;
}
2024-08-07 17:23:12 +01:00
getPokemonById ( pokemonId : integer ) : Pokemon | null {
2024-05-23 16:03:10 +01:00
const findInParty = ( party : Pokemon [ ] ) = > party . find ( p = > p . id === pokemonId ) ;
2024-08-07 17:23:12 +01:00
return ( findInParty ( this . getParty ( ) ) || findInParty ( this . getEnemyParty ( ) ) ) ? ? null ;
2024-05-23 16:03:10 +01:00
}
2024-08-07 17:23:12 +01:00
addPlayerPokemon ( species : PokemonSpecies , level : integer , abilityIndex? : integer , formIndex? : integer , gender? : Gender , shiny? : boolean , variant? : Variant , ivs? : integer [ ] , nature? : Nature , dataSource? : Pokemon | PokemonData , postProcess ? : ( playerPokemon : PlayerPokemon ) = > void ) : PlayerPokemon {
2024-06-04 16:39:02 +01:00
const pokemon = new PlayerPokemon ( this , species , level , abilityIndex , formIndex , gender , shiny , variant , ivs , nature , dataSource ) ;
2024-05-23 16:03:10 +01:00
if ( postProcess ) {
postProcess ( pokemon ) ;
}
pokemon . init ( ) ;
return pokemon ;
}
addEnemyPokemon ( species : PokemonSpecies , level : integer , trainerSlot : TrainerSlot , boss : boolean = false , dataSource? : PokemonData , postProcess ? : ( enemyPokemon : EnemyPokemon ) = > void ) : EnemyPokemon {
2024-09-02 23:29:15 +01:00
if ( Overrides . OPP_LEVEL_OVERRIDE > 0 ) {
level = Overrides . OPP_LEVEL_OVERRIDE ;
}
2024-05-23 16:03:10 +01:00
if ( Overrides . OPP_SPECIES_OVERRIDE ) {
species = getPokemonSpecies ( Overrides . OPP_SPECIES_OVERRIDE ) ;
2024-09-02 23:29:15 +01:00
// The fact that a Pokemon is a boss or not can change based on its Species and level
boss = this . getEncounterBossSegments ( this . currentBattle . waveIndex , level , species ) > 1 ;
2024-05-29 20:17:36 +01:00
}
2024-08-28 01:34:16 +01:00
const pokemon = new EnemyPokemon ( this , species , level , trainerSlot , boss , dataSource ) ;
2024-05-23 16:03:10 +01:00
overrideModifiers ( this , false ) ;
overrideHeldItems ( this , pokemon , false ) ;
if ( boss && ! dataSource ) {
2024-09-06 00:51:05 +01:00
const secondaryIvs = Utils . getIvsFromId ( Utils . randSeedInt ( 4294967296 ) ) ;
2024-05-23 16:03:10 +01:00
for ( let s = 0 ; s < pokemon . ivs . length ; s ++ ) {
pokemon . ivs [ s ] = Math . round ( Phaser . Math . Linear ( Math . min ( pokemon . ivs [ s ] , secondaryIvs [ s ] ) , Math . max ( pokemon . ivs [ s ] , secondaryIvs [ s ] ) , 0.75 ) ) ;
}
}
if ( postProcess ) {
postProcess ( pokemon ) ;
}
2024-06-12 14:56:23 +01:00
for ( let i = 0 ; i < pokemon . ivs . length ; i ++ ) {
if ( OPP_IVS_OVERRIDE_VALIDATED [ i ] > - 1 ) {
pokemon . ivs [ i ] = OPP_IVS_OVERRIDE_VALIDATED [ i ] ;
}
}
2024-05-23 16:03:10 +01:00
pokemon . init ( ) ;
return pokemon ;
}
2024-09-14 03:05:58 +01:00
/ * *
* Removes a { @linkcode PlayerPokemon } from the party , and clears modifiers for that Pokemon ' s id
* Useful for MEs / Challenges that remove Pokemon from the player party temporarily or permanently
* @param pokemon
* @param destroy Default true . If true , will destroy the { @linkcode PlayerPokemon } after removing
* /
removePokemonFromPlayerParty ( pokemon : PlayerPokemon , destroy : boolean = true ) {
if ( ! pokemon ) {
return ;
}
const partyIndex = this . party . indexOf ( pokemon ) ;
this . party . splice ( partyIndex , 1 ) ;
if ( destroy ) {
this . field . remove ( pokemon , true ) ;
pokemon . destroy ( ) ;
}
this . updateModifiers ( true ) ;
}
2024-05-23 16:03:10 +01:00
addPokemonIcon ( pokemon : Pokemon , x : number , y : number , originX : number = 0.5 , originY : number = 0.5 , ignoreOverride : boolean = false ) : Phaser . GameObjects . Container {
const container = this . add . container ( x , y ) ;
2024-06-23 17:09:23 +01:00
container . setName ( ` ${ pokemon . name } -icon ` ) ;
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
const icon = this . add . sprite ( 0 , 0 , pokemon . getIconAtlasKey ( ignoreOverride ) ) ;
2024-06-23 17:09:23 +01:00
icon . setName ( ` sprite- ${ pokemon . name } -icon ` ) ;
2024-06-06 02:28:12 +01:00
icon . setFrame ( pokemon . getIconId ( true ) ) ;
2024-05-23 16:03:10 +01:00
// Temporary fix to show pokemon's default icon if variant icon doesn't exist
if ( icon . frame . name !== pokemon . getIconId ( true ) ) {
console . log ( ` ${ pokemon . name } 's variant icon does not exist. Replacing with default. ` ) ;
const temp = pokemon . shiny ;
pokemon . shiny = false ;
icon . setTexture ( pokemon . getIconAtlasKey ( ignoreOverride ) ) ;
icon . setFrame ( pokemon . getIconId ( true ) ) ;
pokemon . shiny = temp ;
}
icon . setOrigin ( 0.5 , 0 ) ;
container . add ( icon ) ;
if ( pokemon . isFusion ( ) ) {
const fusionIcon = this . add . sprite ( 0 , 0 , pokemon . getFusionIconAtlasKey ( ignoreOverride ) ) ;
2024-06-23 17:09:23 +01:00
fusionIcon . setName ( "sprite-fusion-icon" ) ;
2024-05-23 16:03:10 +01:00
fusionIcon . setOrigin ( 0.5 , 0 ) ;
fusionIcon . setFrame ( pokemon . getFusionIconId ( true ) ) ;
const originalWidth = icon . width ;
const originalHeight = icon . height ;
const originalFrame = icon . frame ;
const iconHeight = ( icon . frame . cutHeight <= fusionIcon . frame . cutHeight ? Math . ceil : Math.floor ) ( ( icon . frame . cutHeight + fusionIcon . frame . cutHeight ) / 4 ) ;
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
// Inefficient, but for some reason didn't work with only the unique properties as part of the name
const iconFrameId = ` ${ icon . frame . name } f ${ fusionIcon . frame . name } ` ;
if ( ! icon . frame . texture . has ( iconFrameId ) ) {
icon . frame . texture . add ( iconFrameId , icon . frame . sourceIndex , icon . frame . cutX , icon . frame . cutY , icon . frame . cutWidth , iconHeight ) ;
}
icon . setFrame ( iconFrameId ) ;
fusionIcon . y = icon . frame . cutHeight ;
const originalFusionFrame = fusionIcon . frame ;
const fusionIconY = fusionIcon . frame . cutY + icon . frame . cutHeight ;
const fusionIconHeight = fusionIcon . frame . cutHeight - icon . frame . cutHeight ;
// Inefficient, but for some reason didn't work with only the unique properties as part of the name
const fusionIconFrameId = ` ${ fusionIcon . frame . name } f ${ icon . frame . name } ` ;
if ( ! fusionIcon . frame . texture . has ( fusionIconFrameId ) ) {
fusionIcon . frame . texture . add ( fusionIconFrameId , fusionIcon . frame . sourceIndex , fusionIcon . frame . cutX , fusionIconY , fusionIcon . frame . cutWidth , fusionIconHeight ) ;
}
fusionIcon . setFrame ( fusionIconFrameId ) ;
const frameY = ( originalFrame . y + originalFusionFrame . y ) / 2 ;
icon . frame . y = fusionIcon . frame . y = frameY ;
container . add ( fusionIcon ) ;
if ( originX !== 0.5 ) {
container . x -= originalWidth * ( originX - 0.5 ) ;
}
if ( originY !== 0 ) {
container . y -= ( originalHeight ) * originY ;
}
} else {
if ( originX !== 0.5 ) {
container . x -= icon . width * ( originX - 0.5 ) ;
}
if ( originY !== 0 ) {
container . y -= icon . height * originY ;
}
}
return container ;
}
setSeed ( seed : string ) : void {
this . seed = seed ;
this . rngCounter = 0 ;
this . waveCycleOffset = this . getGeneratedWaveCycleOffset ( ) ;
this . offsetGym = this . gameMode . isClassic && this . getGeneratedOffsetGym ( ) ;
}
2024-09-06 00:51:05 +01:00
/ * *
* Generates a random number using the current battle ' s seed
*
* This calls { @linkcode Battle . randSeedInt } ( ` scene ` , { @linkcode range } , { @linkcode min } ) in ` src/battle.ts `
* which calls { @linkcode Utils . randSeedInt randSeedInt } ( { @linkcode range } , { @linkcode min } ) in ` src/utils.ts `
*
* @param range How large of a range of random numbers to choose from . If { @linkcode range } <= 1 , returns { @linkcode min }
* @param min The minimum integer to pick , default ` 0 `
* @returns A random integer between { @linkcode min } and ( { @linkcode min } + { @linkcode range } - 1 )
* /
2024-05-23 16:03:10 +01:00
randBattleSeedInt ( range : integer , min : integer = 0 ) : integer {
2024-08-13 22:12:42 +01:00
return this . currentBattle ? . randSeedInt ( this , range , min ) ;
2024-05-23 16:03:10 +01:00
}
reset ( clearScene : boolean = false , clearData : boolean = false , reloadI18n : boolean = false ) : void {
if ( clearData ) {
this . gameData = new GameData ( this ) ;
}
2024-06-08 06:07:23 +01:00
this . gameMode = getGameMode ( GameModes . CLASSIC ) ;
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
this . setSeed ( Overrides . SEED_OVERRIDE || Utils . randomString ( 24 ) ) ;
console . log ( "Seed:" , this . seed ) ;
2024-09-03 03:18:18 +01:00
this . resetSeed ( ) ; // Properly resets RNG after saving and quitting a session
2024-05-23 16:03:10 +01:00
this . disableMenu = false ;
this . score = 0 ;
this . money = 0 ;
this . lockModifierTiers = false ;
this . pokeballCounts = Object . fromEntries ( Utils . getEnumValues ( PokeballType ) . filter ( p = > p <= PokeballType . MASTER_BALL ) . map ( t = > [ t , 0 ] ) ) ;
this . pokeballCounts [ PokeballType . POKEBALL ] += 5 ;
if ( Overrides . POKEBALL_OVERRIDE . active ) {
this . pokeballCounts = Overrides . POKEBALL_OVERRIDE . pokeballs ;
}
this . modifiers = [ ] ;
this . enemyModifiers = [ ] ;
this . modifierBar . removeAll ( true ) ;
this . enemyModifierBar . removeAll ( true ) ;
for ( const p of this . getParty ( ) ) {
p . destroy ( ) ;
}
this . party = [ ] ;
for ( const p of this . getEnemyParty ( ) ) {
p . destroy ( ) ;
}
2024-05-24 00:45:04 +01:00
2024-09-22 04:47:32 +01:00
// If this is a ME, clear any residual visual sprites before reloading
if ( this . currentBattle ? . mysteryEncounter ? . introVisuals ) {
this . field . remove ( this . currentBattle . mysteryEncounter ? . introVisuals , true ) ;
}
2024-08-07 17:23:12 +01:00
//@ts-ignore - allowing `null` for currentBattle causes a lot of trouble
this . currentBattle = null ; // TODO: resolve ts-ignore
2024-03-16 01:59:34 +00:00
2024-05-25 00:43:38 +01:00
this . biomeWaveText . setText ( startingWave . toString ( ) ) ;
this . biomeWaveText . setVisible ( false ) ;
2023-04-22 03:59:09 +01:00
2024-05-23 16:03:10 +01:00
this . updateMoneyText ( ) ;
this . moneyText . setVisible ( false ) ;
2023-10-22 01:23:43 +01:00
2024-05-23 16:03:10 +01:00
this . updateScoreText ( ) ;
this . scoreText . setVisible ( false ) ;
2024-03-22 13:16:49 +00:00
2024-05-23 16:03:10 +01:00
[ this . luckLabelText , this . luckText ] . map ( t = > t . setVisible ( false ) ) ;
2024-04-26 16:31:39 +01:00
2024-05-23 16:03:10 +01:00
this . newArena ( Overrides . STARTING_BIOME_OVERRIDE || Biome . TOWN ) ;
2023-04-22 03:59:09 +01:00
2024-05-23 16:03:10 +01:00
this . field . setVisible ( true ) ;
2024-05-10 23:12:33 +01:00
2024-05-23 16:03:10 +01:00
this . arenaBgTransition . setPosition ( 0 , 0 ) ;
this . arenaPlayer . setPosition ( 300 , 0 ) ;
this . arenaPlayerTransition . setPosition ( 0 , 0 ) ;
[ this . arenaEnemy , this . arenaNextEnemy ] . forEach ( a = > a . setPosition ( - 280 , 0 ) ) ;
this . arenaNextEnemy . setVisible ( false ) ;
2023-04-22 03:59:09 +01:00
2024-05-23 16:03:10 +01:00
this . arena . init ( ) ;
2024-04-01 17:48:35 +01:00
2024-05-23 16:03:10 +01:00
this . trainer . setTexture ( ` trainer_ ${ this . gameData . gender === PlayerGender . FEMALE ? "f" : "m" } _back ` ) ;
this . trainer . setPosition ( 406 , 186 ) ;
this . trainer . setVisible ( true ) ;
2024-05-24 00:45:04 +01:00
2024-09-22 04:47:32 +01:00
this . mysteryEncounterSaveData = new MysteryEncounterSaveData ( ) ;
2024-05-23 16:03:10 +01:00
this . updateGameInfo ( ) ;
if ( reloadI18n ) {
const localizable : Localizable [ ] = [
. . . allSpecies ,
. . . allMoves ,
. . . allAbilities ,
. . . Utils . getEnumValues ( ModifierPoolType ) . map ( mpt = > getModifierPoolForType ( mpt ) ) . map ( mp = > Object . values ( mp ) . flat ( ) . map ( mt = > mt . modifierType ) . filter ( mt = > "localize" in mt ) . map ( lpb = > lpb as unknown as Localizable ) ) . flat ( )
] ;
for ( const item of localizable ) {
item . localize ( ) ;
}
}
if ( clearScene ) {
// Reload variant data in case sprite set has changed
this . initVariantData ( ) ;
this . fadeOutBgm ( 250 , false ) ;
this . tweens . add ( {
targets : [ this . uiContainer ] ,
alpha : 0 ,
duration : 250 ,
ease : "Sine.easeInOut" ,
onComplete : ( ) = > {
this . clearPhaseQueue ( ) ;
this . children . removeAll ( true ) ;
this . game . domContainer . innerHTML = "" ;
this . launchBattle ( ) ;
}
} ) ;
}
}
2024-09-22 02:40:47 +01:00
getDoubleBattleChance ( newWaveIndex : number , playerField : PlayerPokemon [ ] ) {
const doubleChance = new Utils . IntegerHolder ( newWaveIndex % 10 === 0 ? 32 : 8 ) ;
this . applyModifiers ( DoubleBattleChanceBoosterModifier , true , doubleChance ) ;
playerField . forEach ( p = > applyAbAttrs ( DoubleBattleChanceAbAttr , p , null , false , doubleChance ) ) ;
return Math . max ( doubleChance . value , 1 ) ;
}
2024-09-14 03:05:58 +01:00
newBattle ( waveIndex? : integer , battleType? : BattleType , trainerData? : TrainerData , double? : boolean , mysteryEncounterType? : MysteryEncounterType ) : Battle | null {
2024-06-07 23:33:45 +01:00
const _startingWave = Overrides . STARTING_WAVE_OVERRIDE || startingWave ;
const newWaveIndex = waveIndex || ( ( this . currentBattle ? . waveIndex || ( _startingWave - 1 ) ) + 1 ) ;
2024-08-07 17:23:12 +01:00
let newDouble : boolean | undefined ;
2024-05-23 16:03:10 +01:00
let newBattleType : BattleType ;
2024-08-07 17:23:12 +01:00
let newTrainer : Trainer | undefined ;
2024-05-23 16:03:10 +01:00
2024-08-07 17:23:12 +01:00
let battleConfig : FixedBattleConfig | null = null ;
2024-05-23 16:03:10 +01:00
this . resetSeed ( newWaveIndex ) ;
const playerField = this . getPlayerField ( ) ;
2024-05-24 00:45:04 +01:00
2024-06-08 06:07:23 +01:00
if ( this . gameMode . isFixedBattle ( newWaveIndex ) && trainerData === undefined ) {
battleConfig = this . gameMode . getFixedBattle ( newWaveIndex ) ;
2024-05-23 16:03:10 +01:00
newDouble = battleConfig . double ;
newBattleType = battleConfig . battleType ;
2024-08-07 17:23:12 +01:00
this . executeWithSeedOffset ( ( ) = > newTrainer = battleConfig ? . getTrainer ( this ) , ( battleConfig . seedOffsetWaveIndex || newWaveIndex ) << 8 ) ;
2024-05-23 16:03:10 +01:00
if ( newTrainer ) {
this . field . add ( newTrainer ) ;
}
} else {
if ( ! this . gameMode . hasTrainers ) {
newBattleType = BattleType . WILD ;
} else if ( battleType === undefined ) {
newBattleType = this . gameMode . isWaveTrainer ( newWaveIndex , this . arena ) ? BattleType.TRAINER : BattleType.WILD ;
} else {
newBattleType = battleType ;
}
if ( newBattleType === BattleType . TRAINER ) {
const trainerType = this . arena . randomTrainerType ( newWaveIndex ) ;
let doubleTrainer = false ;
if ( trainerConfigs [ trainerType ] . doubleOnly ) {
doubleTrainer = true ;
} else if ( trainerConfigs [ trainerType ] . hasDouble ) {
const doubleChance = new Utils . IntegerHolder ( newWaveIndex % 10 === 0 ? 32 : 8 ) ;
this . applyModifiers ( DoubleBattleChanceBoosterModifier , true , doubleChance ) ;
2024-08-22 02:29:21 +01:00
playerField . forEach ( p = > applyAbAttrs ( DoubleBattleChanceAbAttr , p , null , false , doubleChance ) ) ;
2024-05-23 16:03:10 +01:00
doubleTrainer = ! Utils . randSeedInt ( doubleChance . value ) ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
// Add a check that special trainers can't be double except for tate and liza - they should use the normal double chance
2024-07-29 21:47:37 +01:00
if ( trainerConfigs [ trainerType ] . trainerTypeDouble && ! [ TrainerType . TATE , TrainerType . LIZA ] . includes ( trainerType ) ) {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
doubleTrainer = false ;
}
2024-05-23 16:03:10 +01:00
}
2024-09-06 00:51:05 +01:00
const variant = doubleTrainer ? TrainerVariant . DOUBLE : ( Utils . randSeedInt ( 2 ) ? TrainerVariant.FEMALE : TrainerVariant.DEFAULT ) ;
newTrainer = trainerData !== undefined ? trainerData . toTrainer ( this ) : new Trainer ( this , trainerType , variant ) ;
2024-05-23 16:03:10 +01:00
this . field . add ( newTrainer ) ;
}
2024-09-14 03:05:58 +01:00
// Check for mystery encounter
// Can only occur in place of a standard (non-boss) wild battle, waves 10-180
2024-09-24 00:23:46 +01:00
if ( this . isWaveMysteryEncounter ( newBattleType , newWaveIndex , mysteryEncounterType ) || newBattleType === BattleType . MYSTERY_ENCOUNTER || ! isNullOrUndefined ( mysteryEncounterType ) ) {
2024-09-22 18:53:18 +01:00
newBattleType = BattleType . MYSTERY_ENCOUNTER ;
// Reset base spawn weight
this . mysteryEncounterSaveData . encounterSpawnChance = BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT ;
} else if ( newBattleType === BattleType . WILD ) {
this . mysteryEncounterSaveData . encounterSpawnChance += WEIGHT_INCREMENT_ON_SPAWN_MISS ;
2024-09-14 03:05:58 +01:00
}
2024-05-23 16:03:10 +01:00
}
if ( double === undefined && newWaveIndex > 1 ) {
if ( newBattleType === BattleType . WILD && ! this . gameMode . isWaveFinal ( newWaveIndex ) ) {
2024-09-22 02:40:47 +01:00
newDouble = ! Utils . randSeedInt ( this . getDoubleBattleChance ( newWaveIndex , playerField ) ) ;
2024-05-23 16:03:10 +01:00
} else if ( newBattleType === BattleType . TRAINER ) {
2024-08-07 17:23:12 +01:00
newDouble = newTrainer ? . variant === TrainerVariant . DOUBLE ;
2024-05-23 16:03:10 +01:00
}
} else if ( ! battleConfig ) {
newDouble = ! ! double ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
if ( Overrides . BATTLE_TYPE_OVERRIDE === "double" ) {
2024-05-23 16:03:10 +01:00
newDouble = true ;
}
2024-06-08 14:41:56 +01:00
/* Override battles into single only if not fighting with trainers */
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
if ( newBattleType !== BattleType . TRAINER && Overrides . BATTLE_TYPE_OVERRIDE === "single" ) {
2024-06-07 23:33:45 +01:00
newDouble = false ;
}
2024-05-23 16:03:10 +01:00
const lastBattle = this . currentBattle ;
if ( lastBattle ? . double && ! newDouble ) {
this . tryRemovePhase ( p = > p instanceof SwitchPhase ) ;
}
const maxExpLevel = this . getMaxExpLevel ( ) ;
this . lastEnemyTrainer = lastBattle ? . trainer ? ? null ;
2024-09-14 03:05:58 +01:00
this . lastMysteryEncounter = lastBattle ? . mysteryEncounter ;
2024-05-23 16:03:10 +01:00
this . executeWithSeedOffset ( ( ) = > {
this . currentBattle = new Battle ( this . gameMode , newWaveIndex , newBattleType , newTrainer , newDouble ) ;
} , newWaveIndex << 3 , this . waveSeed ) ;
this . currentBattle . incrementTurn ( this ) ;
2024-09-14 03:05:58 +01:00
if ( newBattleType === BattleType . MYSTERY_ENCOUNTER ) {
// Disable double battle on mystery encounters (it may be re-enabled as part of encounter)
this . currentBattle . double = false ;
2024-09-22 18:53:18 +01:00
// Will generate the actual Mystery Encounter during NextEncounterPhase, to ensure it uses proper biome
this . currentBattle . mysteryEncounterType = mysteryEncounterType ;
2024-09-14 03:05:58 +01:00
}
2024-05-23 16:03:10 +01:00
//this.pushPhase(new TrainerMessageTestPhase(this, TrainerType.RIVAL, TrainerType.RIVAL_2, TrainerType.RIVAL_3, TrainerType.RIVAL_4, TrainerType.RIVAL_5, TrainerType.RIVAL_6));
if ( ! waveIndex && lastBattle ) {
2024-08-07 21:29:41 +01:00
const isWaveIndexMultipleOfTen = ! ( lastBattle . waveIndex % 10 ) ;
const isEndlessOrDaily = this . gameMode . hasShortBiomes || this . gameMode . isDaily ;
const isEndlessFifthWave = this . gameMode . hasShortBiomes && ( lastBattle . waveIndex % 5 ) === 0 ;
const isWaveIndexMultipleOfFiftyMinusOne = ( lastBattle . waveIndex % 50 ) === 49 ;
const isNewBiome = isWaveIndexMultipleOfTen || isEndlessFifthWave || ( isEndlessOrDaily && isWaveIndexMultipleOfFiftyMinusOne ) ;
2024-09-14 03:05:58 +01:00
const resetArenaState = isNewBiome || [ BattleType . TRAINER , BattleType . MYSTERY_ENCOUNTER ] . includes ( this . currentBattle . battleType ) || this . currentBattle . battleSpec === BattleSpec . FINAL_BOSS ;
2024-05-23 16:03:10 +01:00
this . getEnemyParty ( ) . forEach ( enemyPokemon = > enemyPokemon . destroy ( ) ) ;
this . trySpreadPokerus ( ) ;
if ( ! isNewBiome && ( newWaveIndex % 10 ) === 5 ) {
this . arena . updatePoolsForTimeOfDay ( ) ;
}
if ( resetArenaState ) {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
this . arena . resetArenaEffects ( ) ;
2024-09-14 03:05:58 +01:00
playerField . forEach ( ( pokemon , p ) = > {
if ( pokemon . isOnField ( ) ) {
this . pushPhase ( new ReturnPhase ( this , p ) ) ;
}
} ) ;
2024-06-06 16:49:50 +01:00
for ( const pokemon of this . getParty ( ) ) {
2024-06-13 10:36:12 +01:00
pokemon . resetBattleData ( ) ;
applyPostBattleInitAbAttrs ( PostBattleInitAbAttr , pokemon ) ;
2024-06-06 16:49:50 +01:00
}
2024-06-13 10:36:12 +01:00
2024-09-14 03:05:58 +01:00
if ( ! this . trainer . visible ) {
this . pushPhase ( new ShowTrainerPhase ( this ) ) ;
}
2024-05-23 16:03:10 +01:00
}
2024-06-13 10:36:12 +01:00
2024-05-23 16:03:10 +01:00
for ( const pokemon of this . getParty ( ) ) {
2024-06-13 10:36:12 +01:00
this . triggerPokemonFormChange ( pokemon , SpeciesFormChangeTimeOfDayTrigger ) ;
2024-05-23 16:03:10 +01:00
}
2024-06-13 10:36:12 +01:00
2024-05-23 16:03:10 +01:00
if ( ! this . gameMode . hasRandomBiomes && ! isNewBiome ) {
this . pushPhase ( new NextEncounterPhase ( this ) ) ;
} else {
this . pushPhase ( new SelectBiomePhase ( this ) ) ;
this . pushPhase ( new NewBiomeEncounterPhase ( this ) ) ;
const newMaxExpLevel = this . getMaxExpLevel ( ) ;
if ( newMaxExpLevel > maxExpLevel ) {
this . pushPhase ( new LevelCapPhase ( this ) ) ;
}
}
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
return this . currentBattle ;
}
newArena ( biome : Biome ) : Arena {
this . arena = new Arena ( this , biome , Biome [ biome ] . toLowerCase ( ) ) ;
2024-05-25 17:23:53 +01:00
this . eventTarget . dispatchEvent ( new NewArenaEvent ( ) ) ;
2024-05-23 16:03:10 +01:00
this . arenaBg . pipelineData = { terrainColorRatio : this.arena.getBgTerrainColorRatioForBiome ( ) } ;
return this . arena ;
}
updateFieldScale ( ) : Promise < void > {
return new Promise ( resolve = > {
const fieldScale = Math . floor ( Math . pow ( 1 / this . getField ( true )
. map ( p = > p . getSpriteScale ( ) )
. reduce ( ( highestScale : number , scale : number ) = > highestScale = Math . max ( scale , highestScale ) , 0 ) , 0.7 ) * 40
) / 40 ;
this . setFieldScale ( fieldScale ) . then ( ( ) = > resolve ( ) ) ;
} ) ;
}
setFieldScale ( scale : number , instant : boolean = false ) : Promise < void > {
return new Promise ( resolve = > {
scale *= 6 ;
if ( this . field . scale === scale ) {
return resolve ( ) ;
}
const defaultWidth = this . arenaBg . width * 6 ;
const defaultHeight = 132 * 6 ;
const scaledWidth = this . arenaBg . width * scale ;
const scaledHeight = 132 * scale ;
this . tweens . add ( {
targets : this.field ,
scale : scale ,
x : ( defaultWidth - scaledWidth ) / 2 ,
y : defaultHeight - scaledHeight ,
duration : ! instant ? Utils . fixedInt ( Math . abs ( this . field . scale - scale ) * 200 ) : 0 ,
ease : "Sine.easeInOut" ,
onComplete : ( ) = > resolve ( )
} ) ;
} ) ;
}
getSpeciesFormIndex ( species : PokemonSpecies , gender? : Gender , nature? : Nature , ignoreArena? : boolean ) : integer {
if ( ! species . forms ? . length ) {
return 0 ;
}
switch ( species . speciesId ) {
case Species . UNOWN :
case Species . SHELLOS :
case Species . GASTRODON :
case Species . BASCULIN :
case Species . DEERLING :
case Species . SAWSBUCK :
case Species . FROAKIE :
case Species . FROGADIER :
case Species . SCATTERBUG :
case Species . SPEWPA :
case Species . VIVILLON :
case Species . FLABEBE :
case Species . FLOETTE :
case Species . FLORGES :
case Species . FURFROU :
2024-06-04 06:33:57 +01:00
case Species . PUMPKABOO :
case Species . GOURGEIST :
2024-05-23 16:03:10 +01:00
case Species . ORICORIO :
case Species . MAGEARNA :
case Species . ZARUDE :
case Species . SQUAWKABILLY :
case Species . TATSUGIRI :
case Species . PALDEA_TAUROS :
return Utils . randSeedInt ( species . forms . length ) ;
2024-05-26 22:13:22 +01:00
case Species . PIKACHU :
return Utils . randSeedInt ( 8 ) ;
case Species . EEVEE :
return Utils . randSeedInt ( 2 ) ;
2024-05-23 16:03:10 +01:00
case Species . GRENINJA :
return Utils . randSeedInt ( 2 ) ;
case Species . ZYGARDE :
return Utils . randSeedInt ( 3 ) ;
case Species . MINIOR :
return Utils . randSeedInt ( 6 ) ;
case Species . ALCREMIE :
return Utils . randSeedInt ( 9 ) ;
case Species . MEOWSTIC :
case Species . INDEEDEE :
case Species . BASCULEGION :
case Species . OINKOLOGNE :
return gender === Gender . FEMALE ? 1 : 0 ;
case Species . TOXTRICITY :
const lowkeyNatures = [ Nature . LONELY , Nature . BOLD , Nature . RELAXED , Nature . TIMID , Nature . SERIOUS , Nature . MODEST , Nature . MILD , Nature . QUIET , Nature . BASHFUL , Nature . CALM , Nature . GENTLE , Nature . CAREFUL ] ;
if ( nature !== undefined && lowkeyNatures . indexOf ( nature ) > - 1 ) {
return 1 ;
}
return 0 ;
2024-09-14 03:05:58 +01:00
case Species . GIMMIGHOUL :
// Chest form can only be found in Mysterious Chest Encounter, if this is a game mode with MEs
if ( this . gameMode . hasMysteryEncounters ) {
return 1 ; // Wandering form
} else {
return Utils . randSeedInt ( species . forms . length ) ;
}
2024-05-23 16:03:10 +01:00
}
if ( ignoreArena ) {
switch ( species . speciesId ) {
case Species . BURMY :
case Species . WORMADAM :
case Species . ROTOM :
case Species . LYCANROC :
return Utils . randSeedInt ( species . forms . length ) ;
}
return 0 ;
}
return this . arena . getSpeciesFormIndex ( species ) ;
}
private getGeneratedOffsetGym ( ) : boolean {
let ret = false ;
this . executeWithSeedOffset ( ( ) = > {
ret = ! Utils . randSeedInt ( 2 ) ;
} , 0 , this . seed . toString ( ) ) ;
return ret ;
}
private getGeneratedWaveCycleOffset ( ) : integer {
let ret = 0 ;
this . executeWithSeedOffset ( ( ) = > {
ret = Utils . randSeedInt ( 8 ) * 5 ;
} , 0 , this . seed . toString ( ) ) ;
return ret ;
}
getEncounterBossSegments ( waveIndex : integer , level : integer , species? : PokemonSpecies , forceBoss : boolean = false ) : integer {
2024-09-02 23:29:15 +01:00
if ( Overrides . OPP_HEALTH_SEGMENTS_OVERRIDE > 1 ) {
return Overrides . OPP_HEALTH_SEGMENTS_OVERRIDE ;
} else if ( Overrides . OPP_HEALTH_SEGMENTS_OVERRIDE === 1 ) {
// The rest of the code expects to be returned 0 and not 1 if the enemy is not a boss
return 0 ;
}
2024-05-23 16:03:10 +01:00
if ( this . gameMode . isDaily && this . gameMode . isWaveFinal ( waveIndex ) ) {
return 5 ;
}
2024-08-07 17:23:12 +01:00
let isBoss : boolean | undefined ;
2024-05-23 16:03:10 +01:00
if ( forceBoss || ( species && ( species . subLegendary || species . legendary || species . mythical ) ) ) {
isBoss = true ;
} else {
this . executeWithSeedOffset ( ( ) = > {
isBoss = waveIndex % 10 === 0 || ( this . gameMode . hasRandomBosses && Utils . randSeedInt ( 100 ) < Math . min ( Math . max ( Math . ceil ( ( waveIndex - 250 ) / 50 ) , 0 ) * 2 , 30 ) ) ;
} , waveIndex << 2 ) ;
}
if ( ! isBoss ) {
return 0 ;
}
let ret : integer = 2 ;
if ( level >= 100 ) {
ret ++ ;
}
if ( species ) {
if ( species . baseTotal >= 670 ) {
ret ++ ;
}
}
ret += Math . floor ( waveIndex / 250 ) ;
return ret ;
}
trySpreadPokerus ( ) : void {
const party = this . getParty ( ) ;
const infectedIndexes : integer [ ] = [ ] ;
const spread = ( index : number , spreadTo : number ) = > {
const partyMember = party [ index + spreadTo ] ;
if ( ! partyMember . pokerus && ! Utils . randSeedInt ( 10 ) ) {
partyMember . pokerus = true ;
infectedIndexes . push ( index + spreadTo ) ;
}
} ;
party . forEach ( ( pokemon , p ) = > {
if ( ! pokemon . pokerus || infectedIndexes . indexOf ( p ) > - 1 ) {
return ;
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
this . executeWithSeedOffset ( ( ) = > {
if ( p ) {
spread ( p , - 1 ) ;
}
if ( p < party . length - 1 ) {
spread ( p , 1 ) ;
}
} , this . currentBattle . waveIndex + ( p << 8 ) ) ;
} ) ;
}
resetSeed ( waveIndex? : integer ) : void {
const wave = waveIndex || this . currentBattle ? . waveIndex || 0 ;
this . waveSeed = Utils . shiftCharCodes ( this . seed , wave ) ;
Phaser . Math . RND . sow ( [ this . waveSeed ] ) ;
console . log ( "Wave Seed:" , this . waveSeed , wave ) ;
this . rngCounter = 0 ;
}
executeWithSeedOffset ( func : Function , offset : integer , seedOverride? : string ) : void {
if ( ! func ) {
return ;
}
const tempRngCounter = this . rngCounter ;
const tempRngOffset = this . rngOffset ;
const tempRngSeedOverride = this . rngSeedOverride ;
const state = Phaser . Math . RND . state ( ) ;
Phaser . Math . RND . sow ( [ Utils . shiftCharCodes ( seedOverride || this . seed , offset ) ] ) ;
this . rngCounter = 0 ;
this . rngOffset = offset ;
this . rngSeedOverride = seedOverride || "" ;
func ( ) ;
Phaser . Math . RND . state ( state ) ;
this . rngCounter = tempRngCounter ;
this . rngOffset = tempRngOffset ;
this . rngSeedOverride = tempRngSeedOverride ;
}
addFieldSprite ( x : number , y : number , texture : string | Phaser . Textures . Texture , frame? : string | number , terrainColorRatio : number = 0 ) : Phaser . GameObjects . Sprite {
const ret = this . add . sprite ( x , y , texture , frame ) ;
ret . setPipeline ( this . fieldSpritePipeline ) ;
if ( terrainColorRatio ) {
ret . pipelineData [ "terrainColorRatio" ] = terrainColorRatio ;
}
return ret ;
}
addPokemonSprite ( pokemon : Pokemon , x : number , y : number , texture : string | Phaser . Textures . Texture , frame? : string | number , hasShadow : boolean = false , ignoreOverride : boolean = false ) : Phaser . GameObjects . Sprite {
const ret = this . addFieldSprite ( x , y , texture , frame ) ;
this . initPokemonSprite ( ret , pokemon , hasShadow , ignoreOverride ) ;
return ret ;
}
initPokemonSprite ( sprite : Phaser.GameObjects.Sprite , pokemon? : Pokemon , hasShadow : boolean = false , ignoreOverride : boolean = false ) : Phaser . GameObjects . Sprite {
sprite . setPipeline ( this . spritePipeline , { tone : [ 0.0 , 0.0 , 0.0 , 0.0 ] , hasShadow : hasShadow , ignoreOverride : ignoreOverride , teraColor : pokemon ? getTypeRgb ( pokemon . getTeraType ( ) ) : undefined } ) ;
this . spriteSparkleHandler . add ( sprite ) ;
return sprite ;
}
2024-06-04 03:18:09 +01:00
moveBelowOverlay < T extends Phaser.GameObjects.GameObject > ( gameObject : T ) {
this . fieldUI . moveBelow < any > ( gameObject , this . fieldOverlay ) ;
}
processInfoButton ( pressed : boolean ) : void {
this . arenaFlyout . toggleFlyout ( pressed ) ;
}
2024-05-23 16:03:10 +01:00
showFieldOverlay ( duration : integer ) : Promise < void > {
return new Promise ( resolve = > {
this . tweens . add ( {
targets : this.fieldOverlay ,
alpha : 0.5 ,
ease : "Sine.easeOut" ,
duration : duration ,
onComplete : ( ) = > resolve ( )
} ) ;
} ) ;
}
hideFieldOverlay ( duration : integer ) : Promise < void > {
return new Promise ( resolve = > {
this . tweens . add ( {
targets : this.fieldOverlay ,
alpha : 0 ,
duration : duration ,
ease : "Cubic.easeIn" ,
onComplete : ( ) = > resolve ( )
} ) ;
} ) ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
updateShopOverlayOpacity ( value : number ) : void {
this . shopOverlayOpacity = value ;
if ( this . shopOverlayShown ) {
this . shopOverlay . setAlpha ( this . shopOverlayOpacity ) ;
}
}
2024-06-22 00:04:25 +01:00
showShopOverlay ( duration : integer ) : Promise < void > {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
this . shopOverlayShown = true ;
2024-06-22 00:04:25 +01:00
return new Promise ( resolve = > {
this . tweens . add ( {
targets : this.shopOverlay ,
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
alpha : this.shopOverlayOpacity ,
2024-06-22 00:04:25 +01:00
ease : "Sine.easeOut" ,
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
duration ,
2024-06-22 00:04:25 +01:00
onComplete : ( ) = > resolve ( )
} ) ;
} ) ;
}
hideShopOverlay ( duration : integer ) : Promise < void > {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
this . shopOverlayShown = false ;
2024-06-22 00:04:25 +01:00
return new Promise ( resolve = > {
this . tweens . add ( {
targets : this.shopOverlay ,
alpha : 0 ,
duration : duration ,
ease : "Cubic.easeIn" ,
onComplete : ( ) = > resolve ( )
} ) ;
} ) ;
}
2024-06-05 15:09:06 +01:00
showEnemyModifierBar ( ) : void {
this . enemyModifierBar . setVisible ( true ) ;
}
hideEnemyModifierBar ( ) : void {
this . enemyModifierBar . setVisible ( false ) ;
}
2024-05-25 00:43:38 +01:00
updateBiomeWaveText ( ) : void {
2024-05-23 16:03:10 +01:00
const isBoss = ! ( this . currentBattle . waveIndex % 10 ) ;
2024-05-24 23:36:02 +01:00
const biomeString : string = getBiomeName ( this . arena . biomeType ) ;
2024-06-22 01:47:00 +01:00
this . fieldUI . moveAbove ( this . biomeWaveText , this . luckText ) ;
2024-05-25 00:43:38 +01:00
this . biomeWaveText . setText ( biomeString + " - " + this . currentBattle . waveIndex . toString ( ) ) ;
2024-05-25 01:31:33 +01:00
this . biomeWaveText . setColor ( ! isBoss ? "#ffffff" : "#f89890" ) ;
this . biomeWaveText . setShadowColor ( ! isBoss ? "#636363" : "#984038" ) ;
2024-05-25 00:43:38 +01:00
this . biomeWaveText . setVisible ( true ) ;
2024-05-23 16:03:10 +01:00
}
2024-05-28 03:58:33 +01:00
updateMoneyText ( forceVisible : boolean = true ) : void {
if ( this . money === undefined ) {
return ;
}
2024-06-08 02:09:12 +01:00
const formattedMoney = Utils . formatMoney ( this . moneyFormat , this . money ) ;
2024-08-22 04:57:46 +01:00
this . moneyText . setText ( i18next . t ( "battleScene:moneyOwned" , { formattedMoney } ) ) ;
2024-05-30 18:45:30 +01:00
this . fieldUI . moveAbove ( this . moneyText , this . luckText ) ;
2024-05-28 03:58:33 +01:00
if ( forceVisible ) {
this . moneyText . setVisible ( true ) ;
}
2024-05-23 16:03:10 +01:00
}
2024-06-06 17:50:02 +01:00
animateMoneyChanged ( positiveChange : boolean ) : void {
2024-06-06 18:30:43 +01:00
if ( this . tweens . getTweensOf ( this . moneyText ) . length > 0 ) {
return ;
2024-06-06 17:50:02 +01:00
}
2024-06-06 18:30:43 +01:00
const deltaScale = this . moneyText . scale * 0.14 * ( positiveChange ? 1 : - 1 ) ;
this . moneyText . setShadowColor ( positiveChange ? "#008000" : "#FF0000" ) ;
2024-06-06 17:50:02 +01:00
this . tweens . add ( {
targets : this.moneyText ,
2024-06-06 18:30:43 +01:00
duration : 250 ,
2024-06-06 17:50:02 +01:00
scale : this.moneyText.scale + deltaScale ,
loop : 0 ,
yoyo : true ,
onComplete : ( _ ) = > this . moneyText . setShadowColor ( getTextColor ( TextStyle . MONEY , true ) ) ,
} ) ;
}
2024-05-23 16:03:10 +01:00
updateScoreText ( ) : void {
this . scoreText . setText ( ` Score: ${ this . score . toString ( ) } ` ) ;
this . scoreText . setVisible ( this . gameMode . isDaily ) ;
}
2024-09-26 09:39:59 +01:00
/ * *
* Displays the current luck value .
* @param duration The time for this label to fade in , if it is not already visible .
* /
updateAndShowText ( duration : number ) : void {
2024-05-23 16:03:10 +01:00
const labels = [ this . luckLabelText , this . luckText ] ;
2024-05-30 18:45:30 +01:00
labels . forEach ( t = > t . setAlpha ( 0 ) ) ;
2024-05-23 16:03:10 +01:00
const luckValue = getPartyLuckValue ( this . getParty ( ) ) ;
this . luckText . setText ( getLuckString ( luckValue ) ) ;
if ( luckValue < 14 ) {
this . luckText . setTint ( getLuckTextTint ( luckValue ) ) ;
} else {
2024-05-28 01:14:16 +01:00
this . luckText . setTint ( 0xffef5c , 0x47ff69 , 0x6b6bff , 0xff6969 ) ;
2024-05-23 16:03:10 +01:00
}
this . luckLabelText . setX ( ( this . game . canvas . width / 6 ) - 2 - ( this . luckText . displayWidth + 2 ) ) ;
this . tweens . add ( {
targets : labels ,
duration : duration ,
2024-05-30 18:45:30 +01:00
alpha : 1 ,
onComplete : ( ) = > {
labels . forEach ( t = > t . setVisible ( true ) ) ;
}
2024-05-23 16:03:10 +01:00
} ) ;
}
hideLuckText ( duration : integer ) : void {
2024-05-30 18:45:30 +01:00
if ( this . reroll ) {
return ;
}
2024-05-23 16:03:10 +01:00
const labels = [ this . luckLabelText , this . luckText ] ;
this . tweens . add ( {
targets : labels ,
duration : duration ,
alpha : 0 ,
onComplete : ( ) = > {
2024-05-30 18:45:30 +01:00
labels . forEach ( l = > l . setVisible ( false ) ) ;
2024-05-23 16:03:10 +01:00
}
} ) ;
}
updateUIPositions ( ) : void {
const enemyModifierCount = this . enemyModifiers . filter ( m = > m . isIconVisible ( this ) ) . length ;
2024-06-06 17:50:02 +01:00
const biomeWaveTextHeight = this . biomeWaveText . getBottomLeft ( ) . y - this . biomeWaveText . getTopLeft ( ) . y ;
this . biomeWaveText . setY (
- ( this . game . canvas . height / 6 ) + ( enemyModifierCount ? enemyModifierCount <= 12 ? 15 : 24 : 0 ) + ( biomeWaveTextHeight / 2 )
) ;
2024-05-25 00:43:38 +01:00
this . moneyText . setY ( this . biomeWaveText . y + 10 ) ;
2024-05-23 16:03:10 +01:00
this . scoreText . setY ( this . moneyText . y + 10 ) ;
[ this . luckLabelText , this . luckText ] . map ( l = > l . setY ( ( this . scoreText . visible ? this . scoreText : this.moneyText ) . y + 10 ) ) ;
const offsetY = ( this . scoreText . visible ? this . scoreText : this.moneyText ) . y + 15 ;
this . partyExpBar . setY ( offsetY ) ;
this . candyBar . setY ( offsetY + 15 ) ;
this . ui ? . achvBar . setY ( this . game . canvas . height / 6 + offsetY ) ;
}
2024-05-30 01:29:59 +01:00
/ * *
* Pushes all { @linkcode Phaser . GameObjects . Text } objects in the top right to the bottom of the canvas
* /
sendTextToBack ( ) : void {
this . fieldUI . sendToBack ( this . biomeWaveText ) ;
this . fieldUI . sendToBack ( this . moneyText ) ;
this . fieldUI . sendToBack ( this . scoreText ) ;
}
2024-05-23 16:03:10 +01:00
addFaintedEnemyScore ( enemy : EnemyPokemon ) : void {
let scoreIncrease = enemy . getSpeciesForm ( ) . getBaseExp ( ) * ( enemy . level / this . getMaxExpLevel ( ) ) * ( ( enemy . ivs . reduce ( ( iv : integer , total : integer ) = > total += iv , 0 ) / 93 ) * 0.2 + 0.8 ) ;
this . findModifiers ( m = > m instanceof PokemonHeldItemModifier && m . pokemonId === enemy . id , false ) . map ( m = > scoreIncrease *= ( m as PokemonHeldItemModifier ) . getScoreMultiplier ( ) ) ;
if ( enemy . isBoss ( ) ) {
scoreIncrease *= Math . sqrt ( enemy . bossSegments ) ;
}
this . currentBattle . battleScore += Math . ceil ( scoreIncrease ) ;
}
getMaxExpLevel ( ignoreLevelCap? : boolean ) : integer {
if ( ignoreLevelCap ) {
return Number . MAX_SAFE_INTEGER ;
}
const waveIndex = Math . ceil ( ( this . currentBattle ? . waveIndex || 1 ) / 10 ) * 10 ;
const difficultyWaveIndex = this . gameMode . getWaveForDifficulty ( waveIndex ) ;
const baseLevel = ( 1 + difficultyWaveIndex / 2 + Math . pow ( difficultyWaveIndex / 25 , 2 ) ) * 1.2 ;
return Math . ceil ( baseLevel / 2 ) * 2 + 2 ;
}
randomSpecies ( waveIndex : integer , level : integer , fromArenaPool? : boolean , speciesFilter? : PokemonSpeciesFilter , filterAllEvolutions? : boolean ) : PokemonSpecies {
if ( fromArenaPool ) {
2024-08-23 09:36:10 +01:00
return this . arena . randomSpecies ( waveIndex , level , undefined , getPartyLuckValue ( this . party ) ) ;
2024-05-23 16:03:10 +01:00
}
const filteredSpecies = speciesFilter ? [ . . . new Set ( allSpecies . filter ( s = > s . isCatchable ( ) ) . filter ( speciesFilter ) . map ( s = > {
if ( ! filterAllEvolutions ) {
while ( pokemonPrevolutions . hasOwnProperty ( s . speciesId ) ) {
s = getPokemonSpecies ( pokemonPrevolutions [ s . speciesId ] ) ;
}
}
return s ;
} ) ) ] : allSpecies . filter ( s = > s . isCatchable ( ) ) ;
return filteredSpecies [ Utils . randSeedInt ( filteredSpecies . length ) ] ;
}
generateRandomBiome ( waveIndex : integer ) : Biome {
const relWave = waveIndex % 250 ;
const biomes = Utils . getEnumValues ( Biome ) . slice ( 1 , Utils . getEnumValues ( Biome ) . filter ( b = > b >= 40 ) . length * - 1 ) ;
const maxDepth = biomeDepths [ Biome . END ] [ 0 ] - 2 ;
const depthWeights = new Array ( maxDepth + 1 ) . fill ( null )
. map ( ( _ , i : integer ) = > ( ( 1 - Math . min ( Math . abs ( ( i / ( maxDepth - 1 ) ) - ( relWave / 250 ) ) + 0.25 , 1 ) ) / 0.75 ) * 250 ) ;
const biomeThresholds : integer [ ] = [ ] ;
let totalWeight = 0 ;
for ( const biome of biomes ) {
totalWeight += Math . ceil ( depthWeights [ biomeDepths [ biome ] [ 0 ] - 1 ] / biomeDepths [ biome ] [ 1 ] ) ;
biomeThresholds . push ( totalWeight ) ;
}
const randInt = Utils . randSeedInt ( totalWeight ) ;
for ( const biome of biomes ) {
if ( randInt < biomeThresholds [ biome ] ) {
return biome ;
}
}
return biomes [ Utils . randSeedInt ( biomes . length ) ] ;
}
isBgmPlaying ( ) : boolean {
return this . bgm && this . bgm . isPlaying ;
}
playBgm ( bgmName? : string , fadeOut? : boolean ) : void {
if ( bgmName === undefined ) {
bgmName = this . currentBattle ? . getBgmOverride ( this ) || this . arena ? . bgm ;
}
if ( this . bgm && bgmName === this . bgm . key ) {
if ( ! this . bgm . isPlaying ) {
this . bgm . play ( {
volume : this.masterVolume * this . bgmVolume
} ) ;
}
return ;
}
if ( fadeOut && ! this . bgm ) {
fadeOut = false ;
}
this . bgmCache . add ( bgmName ) ;
this . loadBgm ( bgmName ) ;
let loopPoint = 0 ;
loopPoint = bgmName === this . arena . bgm
? this . arena . getBgmLoopPoint ( )
: this . getBgmLoopPoint ( bgmName ) ;
let loaded = false ;
const playNewBgm = ( ) = > {
2024-06-24 16:31:38 +01:00
this . ui . bgmBar . setBgmToBgmBar ( bgmName ) ;
2024-05-23 16:03:10 +01:00
if ( bgmName === null && this . bgm && ! this . bgm . pendingRemove ) {
this . bgm . play ( {
volume : this.masterVolume * this . bgmVolume
} ) ;
return ;
}
if ( this . bgm && ! this . bgm . pendingRemove && this . bgm . isPlaying ) {
this . bgm . stop ( ) ;
}
this . bgm = this . sound . add ( bgmName , { loop : true } ) ;
this . bgm . play ( {
volume : this.masterVolume * this . bgmVolume
} ) ;
if ( loopPoint ) {
this . bgm . on ( "looped" , ( ) = > this . bgm . play ( { seek : loopPoint } ) ) ;
}
} ;
this . load . once ( Phaser . Loader . Events . COMPLETE , ( ) = > {
loaded = true ;
if ( ! fadeOut || ! this . bgm . isPlaying ) {
playNewBgm ( ) ;
}
} ) ;
if ( fadeOut ) {
const onBgmFaded = ( ) = > {
if ( loaded && ( ! this . bgm . isPlaying || this . bgm . pendingRemove ) ) {
playNewBgm ( ) ;
}
} ;
this . time . delayedCall ( this . fadeOutBgm ( 500 , true ) ? 750 : 250 , onBgmFaded ) ;
}
if ( ! this . load . isLoading ( ) ) {
this . load . start ( ) ;
}
}
pauseBgm ( ) : boolean {
if ( this . bgm && ! this . bgm . pendingRemove && this . bgm . isPlaying ) {
this . bgm . pause ( ) ;
return true ;
}
return false ;
}
resumeBgm ( ) : boolean {
if ( this . bgm && ! this . bgm . pendingRemove && this . bgm . isPaused ) {
this . bgm . resume ( ) ;
return true ;
}
return false ;
}
updateSoundVolume ( ) : void {
if ( this . sound ) {
2024-08-25 17:40:14 +01:00
for ( const sound of this . sound . getAllPlaying ( ) as AnySound [ ] ) {
if ( this . bgmCache . has ( sound . key ) ) {
sound . setVolume ( this . masterVolume * this . bgmVolume ) ;
} else {
const soundDetails = sound . key . split ( "/" ) ;
switch ( soundDetails [ 0 ] ) {
2024-08-26 21:50:19 +01:00
2024-08-25 17:40:14 +01:00
case "battle_anims" :
case "cry" :
if ( soundDetails [ 1 ] . startsWith ( "PRSFX- " ) ) {
sound . setVolume ( this . masterVolume * this . fieldVolume * 0.5 ) ;
} else {
sound . setVolume ( this . masterVolume * this . fieldVolume ) ;
}
break ;
case "se" :
case "ui" :
sound . setVolume ( this . masterVolume * this . seVolume ) ;
}
}
2024-05-23 16:03:10 +01:00
}
}
}
fadeOutBgm ( duration : integer = 500 , destroy : boolean = true ) : boolean {
if ( ! this . bgm ) {
return false ;
}
2024-01-15 01:47:08 +00:00
const bgm = this . sound . getAllPlaying ( ) . find ( bgm = > bgm . key === this . bgm . key ) ;
2024-05-23 16:03:10 +01:00
if ( bgm ) {
SoundFade . fadeOut ( this , this . bgm , duration , destroy ) ;
return true ;
}
return false ;
}
2024-09-19 14:44:10 +01:00
/ * *
* Fades out current track for ` delay ` ms , then fades in new track .
* @param newBgmKey
* @param destroy
* @param delay
* /
fadeAndSwitchBgm ( newBgmKey : string , destroy : boolean = false , delay : number = 2000 ) {
this . fadeOutBgm ( delay , destroy ) ;
this . time . delayedCall ( delay , ( ) = > {
this . playBgm ( newBgmKey ) ;
} ) ;
}
2024-05-23 16:03:10 +01:00
playSound ( sound : string | AnySound , config? : object ) : AnySound {
2024-08-25 17:40:14 +01:00
const key = typeof sound === "string" ? sound : sound.key ;
config = config ? ? { } ;
try {
const keyDetails = key . split ( "/" ) ;
2024-09-02 05:26:35 +01:00
config [ "volume" ] = config [ "volume" ] ? ? 1 ;
2024-08-25 17:40:14 +01:00
switch ( keyDetails [ 0 ] ) {
2024-08-26 21:50:19 +01:00
case "level_up_fanfare" :
case "item_fanfare" :
case "minor_fanfare" :
case "heal" :
case "evolution" :
case "evolution_fanfare" :
// These sounds are loaded in as BGM, but played as sound effects
// When these sounds are updated in updateVolume(), they are treated as BGM however because they are placed in the BGM Cache through being called by playSoundWithoutBGM()
2024-09-02 05:26:35 +01:00
config [ "volume" ] *= ( this . masterVolume * this . bgmVolume ) ;
2024-08-26 21:50:19 +01:00
break ;
2024-08-25 17:40:14 +01:00
case "battle_anims" :
case "cry" :
2024-09-02 05:26:35 +01:00
config [ "volume" ] *= ( this . masterVolume * this . fieldVolume ) ;
2024-08-25 17:40:14 +01:00
//PRSFX sound files are unusually loud
2024-08-27 19:25:49 +01:00
if ( keyDetails [ 1 ] . startsWith ( "PRSFX- " ) ) {
2024-08-25 17:40:14 +01:00
config [ "volume" ] *= 0.5 ;
}
break ;
case "ui" :
2024-08-26 21:01:54 +01:00
//As of, right now this applies to the "select", "menu_open", "error" sound effects
2024-09-02 05:26:35 +01:00
config [ "volume" ] *= ( this . masterVolume * this . uiVolume ) ;
2024-08-26 21:01:54 +01:00
break ;
case "se" :
2024-09-02 05:26:35 +01:00
config [ "volume" ] *= ( this . masterVolume * this . seVolume ) ;
2024-08-25 17:40:14 +01:00
break ;
2024-05-23 16:03:10 +01:00
}
2024-08-25 17:40:14 +01:00
this . sound . play ( key , config ) ;
return this . sound . get ( key ) as AnySound ;
} catch {
console . log ( ` ${ key } not found ` ) ;
return sound as AnySound ;
2024-05-23 16:03:10 +01:00
}
}
playSoundWithoutBgm ( soundName : string , pauseDuration? : integer ) : AnySound {
this . bgmCache . add ( soundName ) ;
const resumeBgm = this . pauseBgm ( ) ;
this . playSound ( soundName ) ;
const sound = this . sound . get ( soundName ) as AnySound ;
if ( this . bgmResumeTimer ) {
this . bgmResumeTimer . destroy ( ) ;
}
if ( resumeBgm ) {
this . bgmResumeTimer = this . time . delayedCall ( ( pauseDuration || Utils . fixedInt ( sound . totalDuration * 1000 ) ) , ( ) = > {
this . resumeBgm ( ) ;
this . bgmResumeTimer = null ;
} ) ;
}
return sound ;
}
getBgmLoopPoint ( bgmName : string ) : number {
switch ( bgmName ) {
2024-06-09 02:51:37 +01:00
case "battle_kanto_champion" : //B2W2 Kanto Champion Battle
2024-05-23 16:03:10 +01:00
return 13.950 ;
2024-06-09 02:51:37 +01:00
case "battle_johto_champion" : //B2W2 Johto Champion Battle
2024-05-23 16:03:10 +01:00
return 23.498 ;
2024-08-05 01:45:29 +01:00
case "battle_hoenn_champion_g5" : //B2W2 Hoenn Champion Battle
2024-05-23 16:03:10 +01:00
return 11.328 ;
2024-08-05 01:45:29 +01:00
case "battle_hoenn_champion_g6" : //ORAS Hoenn Champion Battle
return 11.762 ;
2024-06-09 02:51:37 +01:00
case "battle_sinnoh_champion" : //B2W2 Sinnoh Champion Battle
2024-05-23 16:03:10 +01:00
return 12.235 ;
2024-06-09 02:51:37 +01:00
case "battle_champion_alder" : //BW Unova Champion Battle
2024-05-23 16:03:10 +01:00
return 27.653 ;
2024-06-09 02:51:37 +01:00
case "battle_champion_iris" : //B2W2 Unova Champion Battle
2024-05-23 16:03:10 +01:00
return 10.145 ;
2024-06-09 02:51:37 +01:00
case "battle_kalos_champion" : //XY Kalos Champion Battle
return 10.380 ;
case "battle_alola_champion" : //USUM Alola Champion Battle
return 13.025 ;
case "battle_galar_champion" : //SWSH Galar Champion Battle
return 61.635 ;
case "battle_champion_geeta" : //SV Champion Geeta Battle
return 37.447 ;
case "battle_champion_nemona" : //SV Champion Nemona Battle
return 14.914 ;
case "battle_champion_kieran" : //SV Champion Kieran Battle
return 7.206 ;
case "battle_hoenn_elite" : //ORAS Elite Four Battle
return 11.350 ;
case "battle_unova_elite" : //BW Elite Four Battle
2024-05-23 16:03:10 +01:00
return 17.730 ;
2024-06-09 02:51:37 +01:00
case "battle_kalos_elite" : //XY Elite Four Battle
return 12.340 ;
case "battle_alola_elite" : //SM Elite Four Battle
return 19.212 ;
case "battle_galar_elite" : //SWSH League Tournament Battle
return 164.069 ;
case "battle_paldea_elite" : //SV Elite Four Battle
return 12.770 ;
case "battle_bb_elite" : //SV BB League Elite Four Battle
return 19.434 ;
case "battle_final_encounter" : //PMD RTDX Rayquaza's Domain
2024-05-23 16:03:10 +01:00
return 19.159 ;
2024-06-09 02:51:37 +01:00
case "battle_final" : //BW Ghetsis Battle
2024-05-23 16:03:10 +01:00
return 16.453 ;
2024-06-09 02:51:37 +01:00
case "battle_kanto_gym" : //B2W2 Kanto Gym Battle
2024-05-23 16:03:10 +01:00
return 13.857 ;
2024-06-09 02:51:37 +01:00
case "battle_johto_gym" : //B2W2 Johto Gym Battle
2024-05-23 16:03:10 +01:00
return 12.911 ;
2024-06-09 02:51:37 +01:00
case "battle_hoenn_gym" : //B2W2 Hoenn Gym Battle
2024-05-23 16:03:10 +01:00
return 12.379 ;
2024-06-09 02:51:37 +01:00
case "battle_sinnoh_gym" : //B2W2 Sinnoh Gym Battle
2024-05-23 16:03:10 +01:00
return 13.122 ;
2024-06-09 02:51:37 +01:00
case "battle_unova_gym" : //BW Unova Gym Battle
2024-05-23 16:03:10 +01:00
return 19.145 ;
2024-06-09 02:51:37 +01:00
case "battle_kalos_gym" : //XY Kalos Gym Battle
return 44.810 ;
case "battle_galar_gym" : //SWSH Galar Gym Battle
return 171.262 ;
case "battle_paldea_gym" : //SV Paldea Gym Battle
return 127.489 ;
2024-06-08 03:52:14 +01:00
case "battle_legendary_kanto" : //XY Kanto Legendary Battle
return 32.966 ;
case "battle_legendary_raikou" : //HGSS Raikou Battle
return 12.632 ;
case "battle_legendary_entei" : //HGSS Entei Battle
return 2.905 ;
case "battle_legendary_suicune" : //HGSS Suicune Battle
return 12.636 ;
case "battle_legendary_lugia" : //HGSS Lugia Battle
return 19.770 ;
case "battle_legendary_ho_oh" : //HGSS Ho-oh Battle
return 17.668 ;
case "battle_legendary_regis_g5" : //B2W2 Legendary Titan Battle
2024-05-23 16:03:10 +01:00
return 49.500 ;
2024-06-08 03:52:14 +01:00
case "battle_legendary_regis_g6" : //ORAS Legendary Titan Battle
return 21.130 ;
case "battle_legendary_gro_kyo" : //ORAS Groudon & Kyogre Battle
return 10.547 ;
case "battle_legendary_rayquaza" : //ORAS Rayquaza Battle
return 10.495 ;
case "battle_legendary_deoxys" : //ORAS Deoxys Battle
return 13.333 ;
case "battle_legendary_lake_trio" : //ORAS Lake Guardians Battle
return 16.887 ;
case "battle_legendary_sinnoh" : //ORAS Sinnoh Legendary Battle
return 22.770 ;
case "battle_legendary_dia_pal" : //ORAS Dialga & Palkia Battle
return 16.009 ;
2024-08-24 19:15:41 +01:00
case "battle_legendary_origin_forme" : //LA Origin Dialga & Palkia Battle
2024-08-24 19:07:11 +01:00
return 18.961 ;
2024-06-08 03:52:14 +01:00
case "battle_legendary_giratina" : //ORAS Giratina Battle
return 10.451 ;
case "battle_legendary_arceus" : //HGSS Arceus Battle
return 9.595 ;
2024-05-23 16:03:10 +01:00
case "battle_legendary_unova" : //BW Unova Legendary Battle
return 13.855 ;
case "battle_legendary_kyurem" : //BW Kyurem Battle
return 18.314 ;
case "battle_legendary_res_zek" : //BW Reshiram & Zekrom Battle
return 18.329 ;
2024-06-08 03:52:14 +01:00
case "battle_legendary_xern_yvel" : //XY Xerneas & Yveltal Battle
return 26.468 ;
case "battle_legendary_tapu" : //SM Tapu Battle
return 0.000 ;
case "battle_legendary_sol_lun" : //SM Solgaleo & Lunala Battle
return 6.525 ;
case "battle_legendary_ub" : //SM Ultra Beast Battle
return 9.818 ;
case "battle_legendary_dusk_dawn" : //USUM Dusk Mane & Dawn Wings Necrozma Battle
return 5.211 ;
case "battle_legendary_ultra_nec" : //USUM Ultra Necrozma Battle
return 10.344 ;
case "battle_legendary_zac_zam" : //SWSH Zacian & Zamazenta Battle
return 11.424 ;
case "battle_legendary_glas_spec" : //SWSH Glastrier & Spectrier Battle
return 12.503 ;
case "battle_legendary_calyrex" : //SWSH Calyrex Battle
return 50.641 ;
2024-08-24 19:07:11 +01:00
case "battle_legendary_riders" : //SWSH Ice & Shadow Rider Calyrex Battle
return 18.155 ;
2024-06-08 03:52:14 +01:00
case "battle_legendary_birds_galar" : //SWSH Galarian Legendary Birds Battle
return 0.175 ;
case "battle_legendary_ruinous" : //SV Treasures of Ruin Battle
return 6.333 ;
2024-06-28 00:59:24 +01:00
case "battle_legendary_kor_mir" : //SV Depths of Area Zero Battle
return 6.442 ;
2024-06-08 03:52:14 +01:00
case "battle_legendary_loyal_three" : //SV Loyal Three Battle
return 6.500 ;
case "battle_legendary_ogerpon" : //SV Ogerpon Battle
return 14.335 ;
case "battle_legendary_terapagos" : //SV Terapagos Battle
return 24.377 ;
case "battle_legendary_pecharunt" : //SV Pecharunt Battle
return 6.508 ;
2024-06-09 02:51:37 +01:00
case "battle_rival" : //BW Rival Battle
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
return 14.110 ;
2024-06-09 02:51:37 +01:00
case "battle_rival_2" : //BW N Battle
2024-05-23 16:03:10 +01:00
return 17.714 ;
2024-06-09 02:51:37 +01:00
case "battle_rival_3" : //BW Final N Battle
2024-05-23 16:03:10 +01:00
return 17.586 ;
2024-06-09 02:51:37 +01:00
case "battle_trainer" : //BW Trainer Battle
2024-05-23 16:03:10 +01:00
return 13.686 ;
2024-06-09 02:51:37 +01:00
case "battle_wild" : //BW Wild Battle
2024-05-23 16:03:10 +01:00
return 12.703 ;
2024-06-09 02:51:37 +01:00
case "battle_wild_strong" : //BW Strong Wild Battle
2024-05-23 16:03:10 +01:00
return 13.940 ;
2024-06-09 02:51:37 +01:00
case "end_summit" : //PMD RTDX Sky Tower Summit
2024-05-23 16:03:10 +01:00
return 30.025 ;
2024-06-25 04:51:13 +01:00
case "battle_rocket_grunt" : //HGSS Team Rocket Battle
return 12.707 ;
case "battle_aqua_magma_grunt" : //ORAS Team Aqua & Magma Battle
return 12.062 ;
case "battle_galactic_grunt" : //BDSP Team Galactic Battle
return 13.043 ;
2024-06-10 00:02:29 +01:00
case "battle_plasma_grunt" : //BW Team Plasma Battle
return 12.974 ;
2024-06-25 04:51:13 +01:00
case "battle_flare_grunt" : //XY Team Flare Battle
return 4.228 ;
2024-08-27 18:45:58 +01:00
case "battle_aether_grunt" : // SM Aether Foundation Battle
return 16.00 ;
case "battle_skull_grunt" : // SM Team Skull Battle
return 20.87 ;
case "battle_macro_grunt" : // SWSH Trainer Battle
return 11.56 ;
[Enhancement] Add Team Star as potential evil team (#4019)
* Add Team Star (WIP)
Still missing dialogue for all new trainer types, team compositions will need refining, and Starmobile graphics still do not exist yet.
* Add dialogue for all Team Star trainers
Dialogue put together courtesy of @Blitz425
* Add additional Macro Grunt dialogue lines
As suggested to be included by @Blitz425
* Add dialogue entries in dialogue.ts
Forgot them with my last commit, whoops
* Add back Team Star trainer types
Latest merge of beta into this PR deleted them for some reason
* Update Team Star boss team compositions
Bunch up Eeveelutions more in first fight, move random Rotom form to first fight. Remove Espeon, Umbreon, and Rotom from second fight, add legendary beasts and paradox beasts in their place, remove Zacian chance from second fight.
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* fix missing semicolon
* Guarantee Sylveon is always Terastallized
* Guarantee Starmobiles on admin's teams
Also resizing the Starmobiles by 1.5 like Gigantamax Pokémon (it is still just regular Revavroom visually for now).
* Adjust trainer pools for Grunts and Admins
* Add new custom sprites for Starmobiles
This adds front and shiny front sprites made by Kieran. Party icons and back sprites are still placeholders for now.
* Minor pool adjustments
Eevee moved to Uncommon on grunts, Varoom replaced with Hisui Qwilfish for Atticus, and Heracross replaced with Pawmi for Eri.
* Remove Leon's Zamazenta, rename Team Star Boss
As to not have overlap between the champion and Star boss teams.
Also doubled the weights of the Starmobile forms.
* Force movesets for Starmobiles
Also fix accidentally giving Mela a Venusaur instead of a Revavroom. (it was just a testing thing, I swear)
* Correct movesets
Didn't realize copied movesets were desired, ech
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-09-21 02:17:44 +01:00
case "battle_star_grunt" : //SV Team Star Battle
return 133.362 ;
2024-08-27 18:45:58 +01:00
case "battle_galactic_admin" : //BDSP Team Galactic Admin Battle
return 11.997 ;
case "battle_skull_admin" : //SM Team Skull Admin Battle
return 15.463 ;
case "battle_oleana" : //SWSH Oleana Battle
return 14.110 ;
[Enhancement] Add Team Star as potential evil team (#4019)
* Add Team Star (WIP)
Still missing dialogue for all new trainer types, team compositions will need refining, and Starmobile graphics still do not exist yet.
* Add dialogue for all Team Star trainers
Dialogue put together courtesy of @Blitz425
* Add additional Macro Grunt dialogue lines
As suggested to be included by @Blitz425
* Add dialogue entries in dialogue.ts
Forgot them with my last commit, whoops
* Add back Team Star trainer types
Latest merge of beta into this PR deleted them for some reason
* Update Team Star boss team compositions
Bunch up Eeveelutions more in first fight, move random Rotom form to first fight. Remove Espeon, Umbreon, and Rotom from second fight, add legendary beasts and paradox beasts in their place, remove Zacian chance from second fight.
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* fix missing semicolon
* Guarantee Sylveon is always Terastallized
* Guarantee Starmobiles on admin's teams
Also resizing the Starmobiles by 1.5 like Gigantamax Pokémon (it is still just regular Revavroom visually for now).
* Adjust trainer pools for Grunts and Admins
* Add new custom sprites for Starmobiles
This adds front and shiny front sprites made by Kieran. Party icons and back sprites are still placeholders for now.
* Minor pool adjustments
Eevee moved to Uncommon on grunts, Varoom replaced with Hisui Qwilfish for Atticus, and Heracross replaced with Pawmi for Eri.
* Remove Leon's Zamazenta, rename Team Star Boss
As to not have overlap between the champion and Star boss teams.
Also doubled the weights of the Starmobile forms.
* Force movesets for Starmobiles
Also fix accidentally giving Mela a Venusaur instead of a Revavroom. (it was just a testing thing, I swear)
* Correct movesets
Didn't realize copied movesets were desired, ech
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-09-21 02:17:44 +01:00
case "battle_star_admin" : //SV Team Star Boss Battle
return 9.493 ;
2024-06-25 04:51:13 +01:00
case "battle_rocket_boss" : //USUM Giovanni Battle
return 9.115 ;
case "battle_aqua_magma_boss" : //ORAS Archie & Maxie Battle
return 14.847 ;
case "battle_galactic_boss" : //BDSP Cyrus Battle
return 106.962 ;
case "battle_plasma_boss" : //B2W2 Ghetsis Battle
return 25.624 ;
case "battle_flare_boss" : //XY Lysandre Battle
return 8.085 ;
2024-08-27 18:45:58 +01:00
case "battle_aether_boss" : //SM Lusamine Battle
return 11.33 ;
case "battle_skull_boss" : //SM Guzma Battle
return 13.13 ;
case "battle_macro_boss" : //SWSH Rose Battle
return 11.42 ;
[Enhancement] Add Team Star as potential evil team (#4019)
* Add Team Star (WIP)
Still missing dialogue for all new trainer types, team compositions will need refining, and Starmobile graphics still do not exist yet.
* Add dialogue for all Team Star trainers
Dialogue put together courtesy of @Blitz425
* Add additional Macro Grunt dialogue lines
As suggested to be included by @Blitz425
* Add dialogue entries in dialogue.ts
Forgot them with my last commit, whoops
* Add back Team Star trainer types
Latest merge of beta into this PR deleted them for some reason
* Update Team Star boss team compositions
Bunch up Eeveelutions more in first fight, move random Rotom form to first fight. Remove Espeon, Umbreon, and Rotom from second fight, add legendary beasts and paradox beasts in their place, remove Zacian chance from second fight.
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* fix missing semicolon
* Guarantee Sylveon is always Terastallized
* Guarantee Starmobiles on admin's teams
Also resizing the Starmobiles by 1.5 like Gigantamax Pokémon (it is still just regular Revavroom visually for now).
* Adjust trainer pools for Grunts and Admins
* Add new custom sprites for Starmobiles
This adds front and shiny front sprites made by Kieran. Party icons and back sprites are still placeholders for now.
* Minor pool adjustments
Eevee moved to Uncommon on grunts, Varoom replaced with Hisui Qwilfish for Atticus, and Heracross replaced with Pawmi for Eri.
* Remove Leon's Zamazenta, rename Team Star Boss
As to not have overlap between the champion and Star boss teams.
Also doubled the weights of the Starmobile forms.
* Force movesets for Starmobiles
Also fix accidentally giving Mela a Venusaur instead of a Revavroom. (it was just a testing thing, I swear)
* Correct movesets
Didn't realize copied movesets were desired, ech
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-09-21 02:17:44 +01:00
case "battle_star_boss" : //SV Cassiopeia Battle
return 25.764 ;
2024-09-19 14:44:10 +01:00
case "mystery_encounter_gen_5_gts" : // BW GTS
return 8.52 ;
case "mystery_encounter_gen_6_gts" : // XY GTS
return 9.24 ;
case "mystery_encounter_fun_and_games" : // EoS Guildmaster Wigglytuff
return 4.78 ;
case "mystery_encounter_weird_dream" : // EoS Temporal Spire
return 41.42 ;
case "mystery_encounter_delibirdy" : // Firel Delibirdy
return 82.28 ;
2024-05-23 16:03:10 +01:00
}
return 0 ;
}
toggleInvert ( invert : boolean ) : void {
if ( invert ) {
this . cameras . main . setPostPipeline ( InvertPostFX ) ;
} else {
this . cameras . main . removePostPipeline ( "InvertPostFX" ) ;
}
}
/* Phase Functions */
2024-08-07 17:23:12 +01:00
getCurrentPhase ( ) : Phase | null {
2024-05-23 16:03:10 +01:00
return this . currentPhase ;
}
2024-08-07 17:23:12 +01:00
getStandbyPhase ( ) : Phase | null {
2024-05-23 16:03:10 +01:00
return this . standbyPhase ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
2024-06-11 23:55:16 +01:00
/ * *
* Adds a phase to the conditional queue and ensures it is executed only when the specified condition is met .
*
* This method allows deferring the execution of a phase until certain conditions are met , which is useful for handling
* situations like abilities and entry hazards that depend on specific game states .
*
* @param { Phase } phase - The phase to be added to the conditional queue .
* @param { ( ) = > boolean } condition - A function that returns a boolean indicating whether the phase should be executed .
*
* /
pushConditionalPhase ( phase : Phase , condition : ( ) = > boolean ) : void {
this . conditionalQueue . push ( [ condition , phase ] ) ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Adds a phase to nextCommandPhaseQueue , as long as boolean passed in is false
* @param phase { @linkcode Phase } the phase to add
* @param defer boolean on which queue to add to , defaults to false , and adds to phaseQueue
* /
2024-05-23 16:03:10 +01:00
pushPhase ( phase : Phase , defer : boolean = false ) : void {
( ! defer ? this . phaseQueue : this.nextCommandPhaseQueue ) . push ( phase ) ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Adds Phase to the end of phaseQueuePrepend , or at phaseQueuePrependSpliceIndex
* @param phase { @linkcode Phase } the phase to add
* /
2024-05-23 16:03:10 +01:00
unshiftPhase ( phase : Phase ) : void {
if ( this . phaseQueuePrependSpliceIndex === - 1 ) {
this . phaseQueuePrepend . push ( phase ) ;
} else {
this . phaseQueuePrepend . splice ( this . phaseQueuePrependSpliceIndex , 0 , phase ) ;
}
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Clears the phaseQueue
* /
2024-05-23 16:03:10 +01:00
clearPhaseQueue ( ) : void {
this . phaseQueue . splice ( 0 , this . phaseQueue . length ) ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Used by function unshiftPhase ( ) , sets index to start inserting at current length instead of the end of the array , useful if phaseQueuePrepend gets longer with Phases
* /
2024-05-23 16:03:10 +01:00
setPhaseQueueSplice ( ) : void {
this . phaseQueuePrependSpliceIndex = this . phaseQueuePrepend . length ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Resets phaseQueuePrependSpliceIndex to - 1 , implies that calls to unshiftPhase will insert at end of phaseQueuePrepend
* /
2024-05-23 16:03:10 +01:00
clearPhaseQueueSplice ( ) : void {
this . phaseQueuePrependSpliceIndex = - 1 ;
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Is called by each Phase implementations "end()" by default
* We dump everything from phaseQueuePrepend to the start of of phaseQueue
* then removes first Phase and starts it
* /
2024-05-23 16:03:10 +01:00
shiftPhase ( ) : void {
if ( this . standbyPhase ) {
this . currentPhase = this . standbyPhase ;
this . standbyPhase = null ;
return ;
}
if ( this . phaseQueuePrependSpliceIndex > - 1 ) {
this . clearPhaseQueueSplice ( ) ;
}
if ( this . phaseQueuePrepend . length ) {
while ( this . phaseQueuePrepend . length ) {
2024-08-07 17:23:12 +01:00
const poppedPhase = this . phaseQueuePrepend . pop ( ) ;
if ( poppedPhase ) {
this . phaseQueue . unshift ( poppedPhase ) ;
}
2024-05-23 16:03:10 +01:00
}
}
if ( ! this . phaseQueue . length ) {
this . populatePhaseQueue ( ) ;
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
// Clear the conditionalQueue if there are no phases left in the phaseQueue
2024-06-13 13:42:25 +01:00
this . conditionalQueue = [ ] ;
2024-05-23 16:03:10 +01:00
}
2024-08-07 17:23:12 +01:00
this . currentPhase = this . phaseQueue . shift ( ) ? ? null ;
2024-06-11 23:55:16 +01:00
// Check if there are any conditional phases queued
if ( this . conditionalQueue ? . length ) {
// Retrieve the first conditional phase from the queue
const conditionalPhase = this . conditionalQueue . shift ( ) ;
// Evaluate the condition associated with the phase
2024-08-07 17:23:12 +01:00
if ( conditionalPhase ? . [ 0 ] ( ) ) {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
// If the condition is met, add the phase to the phase queue
this . pushPhase ( conditionalPhase [ 1 ] ) ;
2024-08-07 17:23:12 +01:00
} else if ( conditionalPhase ) {
2024-06-11 23:55:16 +01:00
// If the condition is not met, re-add the phase back to the front of the conditional queue
this . conditionalQueue . unshift ( conditionalPhase ) ;
2024-08-07 17:23:12 +01:00
} else {
console . warn ( "condition phase is undefined/null!" , conditionalPhase ) ;
2024-06-11 23:55:16 +01:00
}
}
2024-08-07 17:23:12 +01:00
this . currentPhase ? . start ( ) ;
2024-05-23 16:03:10 +01:00
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
overridePhase ( phase : Phase ) : boolean {
if ( this . standbyPhase ) {
return false ;
}
this . standbyPhase = this . currentPhase ;
this . currentPhase = phase ;
phase . start ( ) ;
return true ;
}
2024-09-09 22:35:04 +01:00
/ * *
* Find a specific { @linkcode Phase } in the phase queue .
*
* @param phaseFilter filter function to use to find the wanted phase
* @returns the found phase or undefined if none found
* /
findPhase < P extends Phase = Phase > ( phaseFilter : ( phase : P ) = > boolean ) : P | undefined {
return this . phaseQueue . find ( phaseFilter ) as P ;
2024-05-23 16:03:10 +01:00
}
tryReplacePhase ( phaseFilter : ( phase : Phase ) = > boolean , phase : Phase ) : boolean {
const phaseIndex = this . phaseQueue . findIndex ( phaseFilter ) ;
if ( phaseIndex > - 1 ) {
this . phaseQueue [ phaseIndex ] = phase ;
return true ;
}
return false ;
}
tryRemovePhase ( phaseFilter : ( phase : Phase ) = > boolean ) : boolean {
const phaseIndex = this . phaseQueue . findIndex ( phaseFilter ) ;
if ( phaseIndex > - 1 ) {
this . phaseQueue . splice ( phaseIndex , 1 ) ;
return true ;
}
return false ;
}
pushMovePhase ( movePhase : MovePhase , priorityOverride? : integer ) : void {
const movePriority = new Utils . IntegerHolder ( priorityOverride !== undefined ? priorityOverride : movePhase.move.getMove ( ) . priority ) ;
2024-08-22 02:29:21 +01:00
applyAbAttrs ( ChangeMovePriorityAbAttr , movePhase . pokemon , null , false , movePhase . move . getMove ( ) , movePriority ) ;
2024-05-23 16:03:10 +01:00
const lowerPriorityPhase = this . phaseQueue . find ( p = > p instanceof MovePhase && p . move . getMove ( ) . priority < movePriority . value ) ;
if ( lowerPriorityPhase ) {
this . phaseQueue . splice ( this . phaseQueue . indexOf ( lowerPriorityPhase ) , 0 , movePhase ) ;
} else {
this . pushPhase ( movePhase ) ;
}
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Tries to add the input phase to index before target phase in the phaseQueue , else simply calls unshiftPhase ( )
* @param phase { @linkcode Phase } the phase to be added
* @param targetPhase { @linkcode Phase } the type of phase to search for in phaseQueue
* @returns boolean if a targetPhase was found and added
* /
prependToPhase ( phase : Phase , targetPhase : Constructor < Phase > ) : boolean {
const targetIndex = this . phaseQueue . findIndex ( ph = > ph instanceof targetPhase ) ;
if ( targetIndex !== - 1 ) {
this . phaseQueue . splice ( targetIndex , 0 , phase ) ;
return true ;
} else {
this . unshiftPhase ( phase ) ;
return false ;
}
}
/ * *
* Adds a MessagePhase , either to PhaseQueuePrepend or nextCommandPhaseQueue
* @param message string for MessagePhase
* @param callbackDelay optional param for MessagePhase constructor
* @param prompt optional param for MessagePhase constructor
* @param promptDelay optional param for MessagePhase constructor
* @param defer boolean for which queue to add it to , false - > add to PhaseQueuePrepend , true - > nextCommandPhaseQueue
* /
2024-08-07 17:23:12 +01:00
queueMessage ( message : string , callbackDelay? : integer | null , prompt? : boolean | null , promptDelay? : integer | null , defer? : boolean | null ) {
2024-05-23 16:03:10 +01:00
const phase = new MessagePhase ( this , message , callbackDelay , prompt , promptDelay ) ;
if ( ! defer ) {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
// adds to the end of PhaseQueuePrepend
2024-05-23 16:03:10 +01:00
this . unshiftPhase ( phase ) ;
} else {
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
//remember that pushPhase adds it to nextCommandPhaseQueue
2024-05-23 16:03:10 +01:00
this . pushPhase ( phase ) ;
}
}
Beta Merge 27/07 (#3141)
* feat: Add Google and Discord login functionality
feat: Add link to Discord in menu UI
feat: Add Discord and Google login functionality
Add container around discord and google icons
refactor: Update environment variable names for Discord and Google client IDs
feat: Add "Or use" translation for login options in multiple languages
feat: Update menu UI translations for multiple languages
Code review fixes
refactor: Update Discord and Google client IDs in environment variables
* refactor: Add missing properties to initLoggedInUser function
* Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* make i18n debugging an optional env setting
this also reduces output noise in tests
* set development default also to "0"
* fix inaccurate docs for TypeImmunityAbAttr (#2957)
* chore: Add beta branch to GitHub Actions tests workflow
* chore: Add beta branch to GitHub Actions linter and gh-pages workflow
* Update src/locales/ko/menu-ui-handler.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Update src/locales/ko/menu.ts
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
* Localization(pt): translated bgm-name.ts (#2955)
* Localization(pt): translated bgm-name.ts
* fix
* update VITE_I18N_DEBUG in .env files
* chore: Update environment variables for beta and production environments
* chore: Add beta branch to GitHub Actions deploy workflow
* Hardcoded Pokemon should have proper names (#2941)
* Refactor challenges and add fresh start (#2963)
* [Balance] Update many TM learnsets (#2879)
* Update TMs for more Indigo Disk changes
* Fix typo, more Stored Power
* Refactor challenges and add fresh start (#2964)
* Refactor challenges and add fresh start
* Add achievement for fresh start challenge
* [Bug] Fix off-by-one error in damage calc (#2970)
* Fix random damage roll to be 85-100% instead of 85-99%
* Update battle.test.ts to reflect the fix
* [Bug] Grounded on Terrain fixes (#2969)
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases
Was cancelling moves even if targeted mons weren't on the terrain.
* [Bug `]Pokemon.isGrounded` does not exist
Replaced with `Pokemon.isGrounded()`, which does.
* [Bug] Psychic Terrain priority move cancel ignoring ungrounded
* [Bug] Semi-invulnerable should not be grounded
* Update game-stats-ui-handler.ts (italian) (#2965)
* [Bugfix] Fix a bug during bgm-bar initialization (#2822)
* Prevent sizing error
* Make reboot not necessary for show BGM
* Makes the BGM Bar active by default
+ It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
* [Mirror][Localization] Translate game victory sentences #2254 (#2906)
* Translate forgotten sentences on phases
* Translate to de forgotten sentences on phases
* Translate to es forgotten sentences on phases
* Translate to fr forgotten sentences on phases
* Translate to it forgotten sentences on phases
* Translate to ko forgotten sentences on phases
* Translate to pt br forgotten sentences on phases
* Translate to zh cn forgotten sentences on phases
* Translate to zh tw forgotten sentences on phases
* remove duplicate message
* remove duplicate message
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update battle.ts [Localization(it)]
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* [Mirror][Localization] Translate summary #2336 (#2907)
* Translate pokemon summary
* Translate pokemon summary to fr
* Translate pokemon summary to de
* Translate pokemon summary to es
* Translate pokemon summary to it
* Translate pokemon summary to ko
* Translate pokemon summary to pt br
* Translate pokemon summary to zh cn
* Translate pokemon summary to zh tw
* Fix import
* Update partially for en and ko
* Update interface name for en
* Merge trainerLabel&Text and calculate typeLabel width
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Apply translations key to all languages with interface TranslationEtries
* Update ko/translationKey of status
* Update ko/translationKey of pokemonInfo
* Update de/translationKeys of memostring and metFragment
* Update de/translationKeys of memostring and metFragment 2
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/pokemon-summary.ts
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/pokemon-summary.ts
* Update src/locales/pt_BR/pokemon-summary.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update pokemon-summary.ts [Localization(it)]
* remove unused code
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/pokemon-summary.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/pokemon-summary.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* [Localization] Localization arena flyout (Active Battle Effects) (#2932)
* localizing Active Battle Effects (working)
* Localize Active Battle Effects
* Change return value
* Modify arena terrain desc
* Update src/locales/zh_CN/arena-flyout.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/arena-flyout.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/arena-flyout.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update arena-flyout.ts (IT)
* Update src/locales/pt_BR/arena-flyout.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/arena-flyout.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Change util function name
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* This should prevent gym leaders appear as doubles (marnie & piers) when they arent fixed battles (#2904)
* The stat messages can now be plural (#2600)
* The stat messages are now plural
* "And" can now be localized
* Revert Override
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/battle.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/es/battle.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/de/battle.ts
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/data/battle-stat.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Changed the way the multiple is handeled to use the i18n way
* Missed one file
* Apply suggestions from code review
* Apply suggestions from code review
* Changed the tests so they work now with the i18n hting
* Fixed some other tests (chinese still makes problems...
* Fix tests for chinese
* Tests
* Update src/test/battle-stat.spec.ts
* Update src/locales/zh_CN/battle.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Enhancement][QoL] Add option to adjust shop overlay opacity (#2622)
* add option to adjust shop overlay opacity
* add localization
* fix bug
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/zh_CN/settings.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/settings.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* update default value
* update setting values
* re-add value 10
* Update src/locales/pt_BR/settings.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/ko/settings.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/es/settings.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update settings.ts
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Bug] Fix battler tags lapsing at incorrect times (#2944)
* Fix battler tags lapsing at incorrect times
* Document FlinchedTag
* Update French pokemon-summary.ts (#2976)
* [Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup
* change beforeEach to beforeALl
* move some more enums into the enums directory
* replace modules that import i18n into overrides with modules that don't
* add pre tests and update vitest configs, scripts
* replace tabs with spaces
* fix vitest server port overlap warning
* add missing overrides and clean up workspace config
* change test name
* include spec files in main test suite
* [QoL] Highlight targets of multitarget moves instead of immediate execution (#2863)
* show targets for move targeting multiple pokemon
* dont allow selecting target if multiple
* fix targeting
* cleanup
* more cleanup
* only highlight targets is move is not status
* fix tests failing
* fix tests
* change "immediately" to "auto"
* nevermind just remove auto
* remove status move condition
* [Refactor] rewrite applyAbAttrsInternal to use an iterator. (#1832)
* initial rewrite of applyAbAttrsInternal
* clean up applyAbAttrsInternal
* remove the await because it wraps non Promises in a promise
* add TODO comment about promises
* fix broken costar test, hopefully
* Update typescript and typedoc (#2988)
* update typescript and typedoc to latest versions
* forgot to add the package-lock
* add fixes for breaking type gen
* update workflow (#2989)
* [Qol/Balance] Dynamax cannon tweak (#2540)
* Dynamax Cannon fix
* Update src/locales/fr/move.ts
Added fr translation.
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/move.ts
Adding an important missing precision in French description
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German locale commit.
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
Chinese locale commit, checked by a native speaker
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/move.ts
Korean locale added
Co-authored-by: returntoice <dieandbecome@gmail.com>
* fixed trailing space in Chinese locale
* added es locale
* Different Dynamax Cannon fix. This one is the one
* Dynamax Cannon fix localisations
* Update src/locales/fr/move.ts
Added fr locale
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/move.ts
German translation ^^
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/pt_BR/move.ts
pt-BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/de/move.ts
Eslint fix, good catch @Enoch
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move.ts
Korean locale ^^
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* Update src/locales/zh_CN/move.ts
zh_CN locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/move.ts
zh_TW locale
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts
linting mistake due to how my comment was written
* Update move.ts [Localization(it)]
* WIP test
* WIP test part 2
* [Test] Add Unit Tests for Dynamax Cannon
* removed some unnecessary cases in the test to reduce testing overhead
* Update src/locales/ko/move.ts
Updated kr locale
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Test] Adjust Unit Tests for Dynamax Cannon
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
* [Test] Fix/Extend Unit Test for Hard Press (#2992)
* [Test] Update tests to enable no-crits override (#2971)
* Update tests to enable no-crits override
* Rename variable maxHP to initialHP
* [Localization]Localized move-trigger text (#2913)
* [Localization]Localized move-trigger text
* [Localization]Localized zh-cn move-trigger text
* [Localization]fix typo
* [Localization]fix typo
* Update src/locales/pt_BR/move-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Localization]add pokemonName to move-trigger.ts
* [Localization]add pokemonName to move-trigger.ts
* Update zh_TW move-trigger.ts
* Update zh_CN move-trigger.ts
* Update move.ts
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/move-trigger.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update move-trigger.ts
* Update src/locales/de/move-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization]add affix to target pokemon names
* Update src/locales/fr/move-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* localized type
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* [Bug] Fix description of rare candy to have proper amount of level (#2903)
* [Bug] Fix description of rare candy to have proper amount of level
* Update en locales
* Add locales
* Add locales
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/modifier-type.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/modifier-type.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/ko/modifier-type.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_CN/modifier-type.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/modifier-type.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update modifier-type.ts (IT)
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
* Update src/locales/es/modifier-type.ts
Co-authored-by: Arxxer <javiptn7@gmail.com>
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
* move status effect enum into separate file (#2998)
* add .env.test (#2997)
block i18n debug output by default
* [QoL] Create default overrides class and export that with custom overrides (#2999)
* Create default overrides class and export that with custom overrides
* add comment to mock import and replace typecast with type narrowing
* change modifier override type to pick keys from modifierTypes
* [Feature][FUN] add breedersInSpace splash message (#2631)
* add spaceBreeder splash message
* fix typo (whops)
* Add pt_BR translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* replace text & key with breedersInSpace
* add french tanslation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* remove obsolete array split in splash-messages.ts
* Update src/locales/pt_BR/splash-messages.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/es/splash-messages.ts
Co-authored-by: Asdar <asdargmng@gmail.com>
* Update splash-messages.ts (Italian)
* Update src/locales/zh_CN/splash-messages.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/ko/splash-messages.ts
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
* [Enhancement] Pokemon generation number tooltip (#2642)
* Create tooltip to show Pokemon generation
* Add option to toggle generation tooltip
* Use roman numeral for generation tooltip
* Revert "Add option to toggle generation tooltip"
This reverts commit 414b2366fc55c5642f8858d6f4854aa62c4caf60.
* Update src/locales/de/battle-info.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/battle-info.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle-info.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_TW/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle-info.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/ko/battle-info.ts
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update battle-info.ts (IT)
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* [Beta] Updating the manage data->unlock all option to work with all abilities, natures, forms and passives (#2967)
* Updated code to allow user to unlock all pokemon from the manage data menu option
* Added code to Utils to allow it to check for a beta env, and hid the unlock all code behind that. This should stop it from being accessed in prod envs
* Updated another section to be locked behind beta check, and also updated the everything.prsv to have everything unlocked going forward
* Fixed some code reviews
* [Bug] vite port (for development) (#3003)
* make vite-port configurable
and make it default 8000
* add retries for `does not trigger by non damage moves` test
* feat: Update isBeta check in utils.ts to use import.meta.env.MODE
The current implementation of the isBeta check in utils.ts is using import.meta.env.DEV, which gives the same value for both beta and dev environments. This commit updates the check to use import.meta.env.MODE === "beta" to accurately determine if the environment is beta. This ensures that the unlock all code is only accessible in the beta environment and not in production environments.
* refactor: Update trainerId and secretId in game data
This commit updates the `trainerId` and `secretId` properties in the `GameData` class. The values are replaced with the corresponding values from the `this.trainerId` and `this.secretId` variables. This change ensures that the `trainerId` and `secretId` are correctly updated in the game data.
* Adds bg glow behind starters with unlocked passives (#2497)
* [Localization] Localize missed things in battlers-tag.ts (#3004)
* Localize missed things in battlers-tag
* Change orders of configs
* Add missed phase
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_TW/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
* Update src/locales/zh_CN/battler-tags.ts
Co-authored-by: RimKnight <rimknight852@gmail.com>
---------
Co-authored-by: RimKnight <rimknight852@gmail.com>
* [Feature] Fully implement Octolock (#2985)
* implement octolock
* Add tests
* [Bug] Fix import of overrides in a test (#3009)
* [BUG] Fixes Sketch copying the first move used by the opponent instead of the last (#2759)
* Changes getMoveHistory to getLastXMoves to fix sketch copying first move used instead of last
* Optimizes move search and early return
* Reverts check for virtual moves
* [Bug] Making FormChangeItems Untransferrable (#2695)
* Made FormChangeItems untransferrable. Replaced getTransferrable()
* Made isTransferrable readonly. Removed unnecessary 'm as PokemonHeldItemModifier'.
* [Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle
* Adjusted comment
* Fix item reward overrides going out of bounds (#3012)
* [Localization] Localize Berry Heal message (#2996)
* Localize berry heal message (HP/PP)
* Change location of translation
* conflict resolve
* Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Update src/locales/de/battle.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_CN/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/zh_TW/battle.ts
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update src/locales/fr/battle.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/pt_BR/battle.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update battle.ts (Berries ITALIAN)
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
* Adds a check to the bgm-bar display to prevent it from being displayed in case of an empty value (#3007)
* [Sprite] Improves Corviknight Palette usage (#3020)
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Sprite] Compress Corviknight exp
* [Beta][Localization] Update French battler-tags.ts and battle.ts (#3015)
* Update French battler-tags.ts
* Update battle.ts
* [Bug] Fix Lock-On and Mind Reader not working on the first turn (#3001)
* [Bug] Struggle Recoil should ignore Magic Guard (#3017)
* Drafted testable conditions for Magic Guard
* Weather Test
* Update src/test/abilities/magic_guard.test.ts
InnerThunder
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* Implemented checks for poison/toxic/burn
* Added tests for recoil moves and volatile status
* Updated Rock Head, Magic Guard, and Reckless interactions with Struggle
* Removed stray file
* Fixed Typedoc errors
* Implemented innerthunder's feedback
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
* [Enhancement] Decouple move power calculation from Pokemon.apply(), Fixes Power Spot & Battery not boosting ally's move (#2984)
* refactor power calc, fix battery & power spot
* fix hard press unit test
* fix hard press
* refactor tests
* use sypOn hp instead
* rename method
* cleanup tests
* improve tests
* use slow vs fast pokemon
* fix steely spirit test
* fix steely spirit for real this time
* remove unnecessary test
* address pr feedback
* add removed code
* [QoL] Offset the status indicator to keep pokeball in view (#2966)
* Offset the status indicator to keep pokeball in view
* Only use offsetX when the Pokemon is the enemy
* Adjust position to accomodate boss health bar
* [Bug] Fix to epic shiny Yungoos icon (#2991) (#3016)
Fixed a floating pixel in epic shiny Yungoos' icon. Caused by Mimikyu's epic shiny sprite being placed too high on the sprite sheet. Moved Mimikyu's sprite down and updated json to reflect the change.
* [Localization(ko)] Change line-break position of ghost type curse add message (#3022)
* Revert "[Localization]Localized move-trigger text (#2913)" (#3026)
This reverts commit 39bdfea0c8b33a759db760809d6488d825b510e2.
* [Localization(ko)] Fixed typo in Bertha's dialogue (#3025)
* [Bug] Prevent fixed-damage and OHKO moves from being modified by damage-reducing abilities (#2703)
* ReceivedMoveDamageMultiplierAbAttr patch: WIP refactored damage calculation, reordered ReceivedMoveDamageMultiplierAbAttr to avoid issues with fixed damage and OHKO moves, stubbed unit tests for dragon rage (fixed damage) and fissure (OHKO)
* ReceivedMoveDamageMultiplierAbAttr patch: commented concerns regarding EnemyDamageBooster/ReducerModifier for others' reference in WIP branch
* ReceivedMoveDamageMultiplierAbAttr patch: reordered ReceivedMoveDamageMultiplierAbAttr and EnemyDamageBooster/ReducerModifier to not trigger for fixed damage and OHKO moves, completed relevant tests for dragon rage and fissure
* ReceivedMoveDamageMultiplierAbAttr patch: removed newline
* ReceivedMoveDamageMultiplierAbAttr patch: in the unit test, extracted hard-coded Dragon Rage damage to a variable
* ReceivedMoveDamageMultiplierAbAttr patch: naming consistency
* ReceivedMoveDamageMultiplierAbAttr patch: replaced awaiting DamagePhase with TurnEndPhase as the former assumes damage will be done
* ReceivedMoveDamageMultiplierAbAttr patch: removed redundant overrides in Fissure tests
* ReceivedMoveDamageMultiplierAbAttr patch: tests: refactored crit removal, removed berries, fixed bug associated with Porygon sometimes getting Trace and copying the opponent's ability, which would override the manual ability override
* Fixed unit tests
* Added a comment and cleaned up an existing one
* [Localization] Brought german localization up to date (#3010)
* Fixed errors in the german localization
* Fresh Start Challenge
* Update src/locales/de/move-trigger.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Remove redundant damage number popups (#3024)
* Remove magic number from Belly Drum's attr
* Remove redundant damage number popup
* Fix merge issue and remove another duplicate damage number instance
* [Move] Implements Conversion 2 (#2943)
* Creates function to get type resistances, implements conversion 2
* Removes unimplemented tag, adds condition for move history to exist
* Cleans up type selection, creates i18n entries for typeChanged
* Uses typeChanged i18n in Conversion move
* More detailed docs, early return with stellar/unknown type
* Adds note that it wont track type-changing moves properly
* Rephrases doc description, adds partial since it can't track type-changing moves
* Updates localization, removes typeChanged entry to use move-trigger entry
* Missed locale de entry in last commit
* Adds comment for reason of .partial()
* Fixes localization error due to revert, removes improper merge conflict from prior commit
* [BUG] Fixes bug with Metronome freezing the game (#2819)
* Tests MovePhase with new PokemonMove instead of moveset search
* Accounts for metronome call on charging moves
* Update comment in ChargeAttr to be clearer
* Add missing passive background graphic for legacy UI
Relating to #2497 , this adds an identical graphic to the legacy UI files, as it will show up as a missing texture otherwise.
* [Localization] Localize ability messages in ability.ts (trigger, apply...) (#2972)
* localize ability messages
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Modify parameter name, fix eslint
* Korean Translation, modify some wrong param
* Add missed message
* Update src/locales/de/ability-trigger.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update ability-trigger.ts (Partial) (Italian)
* Localize type name
* Localize type name > Libero, Protean
* param bug fix
* Update src/data/ability.ts
* Update zh-cn
* Update ability-trigger.ts (Partial part 2, still not completed) (Italian)
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/ability-trigger.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/fr/ability-trigger.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update egg.ts (italian) (#3038)
* [Sprite] Revert Larvesta, fixing stray pixels (#3042)
* [Sprite] Remove normal Larvesta stray pixels
Taken from original commit
* [Sprite] Revert shiny Larvesta stray pixels
Taken from original commit
* [Sprite] Match variant Larvesta colours
* [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040)
* [Bug][Fix][Surf][Muddy Water][Sludge Wave][Animation] Added image to move animations. (#3044)
* Update muddy-water.json
* Update sludge-wave.json
* Update surf.json
* [Sprite] Fix Cofagrigus sprite (#3045)
* Fix Cofagrigus sprite
* Base sprite fix
* Created json variant file... manually
* Fix FR typo (#3051)
* [Beta][Localization] Update Portuguese battler-tags.ts and battle.ts (#3050)
* [Music/BGM] Fix bgm file & loop for battle_rival (#3053)
* stop loading pride-update banner (#3057)
* [Item] Add Scope Lens and Leek (#2666)
* [Item] Add Scope Lens and Leek
* Add Entry to pt_BR
* Localize for pt_BR
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Fix & Clean Unit Tests
---------
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* [Music/BGM] New music added for the "Slum" biome, composed by Andr06 (#3000)
* Replacement of the BGM in the slum biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SLUM'
* [Bug] implemented multi target damage penalty (#2329)
* fix: damage multiplier by the number of targets
* fix: used actual number value rather than the number holder
* test: added unit test for counting targets
* multi-target: fixed names of the unit tests.
* test: simple-test changes
* test: changed multi-target test code
* test: testing damage decreasement
* test: multi-target test fix
* resolved conflicts in test
---------
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
* [BUG] Uturn faint switch bug fix (#2980)
* reordering adding switch phases for u-turn
* reverting some temp changes
* generalizing function
* adding PR suggestions
* nit indenting
* [Sprite] Remove extra Oinkologne sprites (#3067)
* Delete public/images/pokemon/female/916.png
* Delete public/images/pokemon/exp/female/916.json
* Delete public/images/pokemon/exp/female/916.png
* Delete public/images/pokemon/female/916.json
* [Sprite] Mega Mewtwo sprite fixes (#3065)
* [Sprite] Add static epic Mega Mewtwo Y
Colours taken from exp, as consistent/exp rare backs share palettes.
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Fix transparent pixels on Mega Mewtwo X
* [Sprite] Add static epic Mega Mewtwo Y
Now exists, and is a paletteswap
* [Music/BGM] New music added for the "Sea" biome, composed by Andr06 (#3063)
* Replacement of the BGM in the sea biome (by Andr06)
* Modification of BGM credits in README.md
* Replacement of the BGM name by the title chosen by its composer in all languages
* Update BGM loop point for biome 'SEA'
* [Balance] Add 12 new TMs and remove 3 (#2733)
* Added Counter TM
* Counter, Aqua Tail, Gastro Acid, Pluck, Secret Power, Aurora Veil, Incinerate
* Placed TMs in proper order, added to pool
* Add Secret Power to the pool
* Add TM for Synthesis
* Covet, Heal Bell, PUPunch, Recycle, Volt Tackle, Worry Seed
* Remove species specific TMs
* Remove Secret Power TM until implementation
* [Refactor/Test] Update Dynamax Cannon Unit Tests (#3074)
* [Refactor/Test] Update Dynamax Cannon Unit Tests
* Adjust Test Names
* fix: update SameSite attribute in setCookie function to None
* fix: update SameSite attribute in setCookie function to Strict
* feat: Add prompt=none to Discord OAuth authorization URL
* fix: Remove unnecessary cookie setting in LoginPhase and MenuUiHandler
* feat: Improve cookie handling in getCookie function
* feat: Delete duplicate cookies with the same name in getCookie function
* [Localization] Add minor Korean translations to ability-trigger file (trace) (#3093)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* modify trace trigger description (refered from official translation)
modify trace trigger description (refered from official translation)
* Fix broken `multi_target` tests and remove RNG-based failures (#3095)
* Prevent RNG from breaking the Quick Draw tests (#3096)
* Make EXP boosting items stack additively and not multiplicatively (#3094)
Fixes #2040
* [Bug] Fixes Encore bug with multi-target moves missing (#3060)
* Pushes move history even when multi target move misses
* Move pushMoveHistory out of Move Pending condition
* Add remaining relearn moves (#2894)
* [Enhancement] Decouple move accuracy and accuracy multiplier calculation from phases.ts (#2899)
* refactor accuracy calc
* update doc
* move accuracy multiplier calculation outside phases
* update wonder skin unit test
* rename method
* add docs
* add unit tests
* address feedback
* rename method
* fix imports
* improve tests
* add test for ohko move accuracy
* [Sprite] Fix a number of sprite issues including the Zubat line, Goldeen, Golett, Dudunsparce, H-Sneasel, Garchomp, Sylveon, Marshadow (#3069)
* Batfix, Goldeen, Chomp, Golett, genies
* Fix Dudunsparce using Reborn shiny backsprite for whatever reason
* Fix female Hisuian Sneasel missing variants
* Marshadow epic front and Zenith, Sylveon back
* Fix Zubat line back sprite inconsistencies
* Fix Noivern shiny back
* [Move] Finish implementation of Glaive Rush (#2720)
* Finish implementation of Glaive Rush
* Fix test RNG
* Add code/test for Multi-Lens interaction
* Fix off-by-one error in test caused by rounding issues
* Update for code changes
* Fix BattlerTag name
* [Bug] fix not changing moveset after add to starter #1932 (#2396)
* [Bug] Enemies can properly use stuff cheeks (#3090)
* [Feature] Added pokemon nicknames/renaming (#2570)
* Added basic temp renaming
* Made nickname persistant after reloading
* Localization and cancel button
* Fixed instant rename on active pokemon
* Small bugfix to prevent console errors
* Changed logic to use the new nickname field. Replaced most .name with getNameToRender() for display.
* Changed evolution message. Removed log messagesc
* Added localization keys for other languages
* Removed empty lines
* French translation
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Chinese translation
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Portuguese (Brazil) translation
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Korean translation
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* Update menu.ts
* Update menu.ts [Localization(it)]
* Changed most .getNameToRender() instance to getPokemonNameWithAffix()
* Changed wild encounter messages back to just use the name without affix.
* Added localization for the party ui rename selection
* Escaping nickname characters to support all characters
* Better Error handling
* Update src/field/pokemon.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Allow Necrozma forms to play their special music (#3054)
* [BUG] fixing multi-hit and move messages on faint (#2981)
* fixing order of messages, scences, to render messages before fainting
* updated fix for effectiveness text rendering order for multi hit moves
* fixing messages not appearing for multi-hit moves on faint
* updated multi-hit condition)
* fixing PR conflicts
* adding comments and FaintPhase setPhaseQueueSplice bug, fixing overrides merge conflict
* writing better comments
* removing space diff in overrides
* adding fainting check for self damage moves
* emergency fixing broken last commit
* additional comments for multi-hit problem
* updating comments, jsdoc style
* fixing linter, destiny bond errors
* splitting up varaible comments to be in JSDoc format
* fixing tests and merge mistakes
* adding rendering of multihit moves that only hit once
* fixing comment formatting_tabs and spaces
---------
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
* [Bug] Sheer Force/Serene Grace Flyout Bugfix (#2496)
* Disable Show Ability for Serene Grace and Sheer Force when opponent calculates targetBenefitScore
* Add comment and definition to argument
* [Visual] Achievement icons (#2617)
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* [Sprite] Show Partner Eevee variants (#3097)
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
Taken from non-partner Eevee
* [Sprite] Show Partner Eevee variants
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Allow Necrozma forms to play their special music (#3054)
* Allow Necrozma forms to play their special music (#3054)
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* [Feature] replace bug-report template with form (#2772)
* replace bug-report template with form
* update bug_report.yml
* add palceholders for data & session file
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Resolving merge conflict
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Removed unused ribbons
* Update item atlas
* Update item atlas again
This time, after merging main into the PR.
* Merged with beta's new items
* Fixed typedoc issues
* Removing localizations
* MonoGen Ribbons added
* Text Changes to MonoGen Challenges
* Item Texture Files
* MonoGen Ribbons added
* Updated texture files? I think
* Changed image names and added new localizations for syntax
* Fixed typedoc issues
* Revert "Text Changes to MonoGen Challenges"
This reverts commit 3bf79acc6a797b0e28e68e113e644b30096ea9ce.
* Please fix this.
* Revert "[Feature] replace bug-report template with form (#2772)"
This reverts commit aa69b107778123b2173bee6130e5d172d201b637.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Re-add changes accidentally deleted by #2617
* Fix some broken images in item atlas & achievement
Fixed the broken sprites in the item atlas, and fixed the Baton Pass achievement to use the Baton item now (it was broken by the Leek being renamed). Also resized the Baton item image to 32*32, like all the other items.
* fix: Remove unnecessary cookie setting in removeCookie function
* fix: Update removeCookie function to use Max-Age=-1 instead of Expires header
The removeCookie function was updated to use the Max-Age=-1 attribute instead of setting the Expires header to a past date. This change ensures that the cookie is immediately expired when removed, preventing any potential login loops. Additionally, a legacy cookie without a domain was added to handle older cookies. This commit resolves the unnecessary cookie setting in the removeCookie function.
* [QoL] Starter UI selection update to allow removing specific pokemon from party (#1983)
* Initial commits with logic to remove starters if they're in your party. Still need to make it work so that the starter selection cursor disappears when a starter is unselected
* Updated code to be able to remove pokemon, including the side icons and cursor locations
* Fixed popstarter to work with any index
* Updating code to allow navigation of starter icons
* Updating code to allow navigation of party starter icons
* Updaing navigation of party icons
* Updated logic to fix incorrect icon in top left of pokemon options when navigating the starter icons
* Updated logic to include the ability to navigate and interact with the starter icons
* Forgot to push the actual starter-select-ui-handler. Might be a bit hard to test things out without that :)
* Removed some unnecessary comments
* Fixed small bug with not being able to move from the far right to the gen selection when the starter icons were empty
* Updated code to not be using a method to generate the party menu and made it more like it used to be. This should help with merge conflicts in the future
* I committed the merged version but forgot to make the starter-select-ui-handler staged after making the changes
* Accidentally broke challenges that had a specific typing requirement with last commit. This should fix it
* Changed how navigation worked based on popular demand
* Fixed code review comments
* Accidentally left in a whole block of commented code. Intentionally removing it now
* Started adding logic for mono type challenge runs to not break the game if the user tries to start a run with an invalid party
* Updated the text to say the party is invalid
* Updated logic to make invalid pokemon greyed out when no valid pokemon are in your party
* Added comments on some code
* Updated locales to include the key for trying to start with invalid parties during a challenge
* Fixed some code from a bad merge where a challenge related param that was previously a number now needed to be a boolean and wasn't
* Removed comment as per review
* [Bug] Ability changing on evolution fix (#2995)
* Prevent Pokemon with their second ability from evolving into their HA
* Add check for fusions too
* Localization(pt): Updated move.ts (#3078)
* Localization(pt): Updated move.ts and fixed King's Shield
* more fixes
* [Bug] Enemy pokemon's Harvest creates berry icons on the player's side when triggered (#3077)
* [Bug] Fix hustle not applying attack boost (#3101)
* [Sprite] Mega Latis using opposite's eye colour (#3102)
* [Sprite] Mega Latis using opposite eyes
Taken from counterpart Lati
* [Sprite] Update Mega Latios eyes
* [Sprite] Update Mega Latias eyes
* [Sprite] Mega Latias duplicated palette value
Colour taken from non-exp Mega Latias
* [Bug] Fix Thousand Arrows not hitting targets under the effects of Magnet Rise (#3100)
* Fix Thousand Arrows not hitting through Magnet Rise
* Add integration test for Thousand Arrows vs. Magnet Rise
* ESLint
* Remove unnecessary checks in integration tests
* [Move] Aeroblast is a wind move (#3109)
* Hardcoded Pokemon should have proper names
* Aeroblast is a wind move
* [Refactor] Replaces the single and double battles overrides with a single override (#3104)
`SINGLE_BATTLE_OVERRIDE` and `DOUBLE_BATTLE_OVERRIDE` are now `BATTLE_TYPE`
Also updates all uses of the old overrides with the new one
* fix `Overrides` capitalization (#3111)
* [Balance] More TM fixes (#3081)
* More TM fixes
* Leaf Storm
* Removed sexy matcha
* [Refactor] Code readability update (#3085)
* Clean up/clarify `src/field/pokemon.ts` a bit
Code provided by DerTapp on Discord
* Update `PokemonSpeciesForm.getAbilityCount()`
* Update `PokemonSpeciesForm.getAbility()`
* Add explicit `Abilities.NONE` checks
* Add tests
* Add jsdoc and implement test suggestions
* [Move] Implement Stockpile, Spit Up, Swallow (#2960)
* feat: Implement Stockpile, Spit Up, Swallow
* chore: Minor, likely unnecessary null checks
* feat: Localization
* Undo non-English localizations (unsure if they went through proper channels)
* ko localization
from @EnochG1
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* linting fix
* add tests, tiny (non-functional) tweaks
* Remove unnecessary cast
* Update src/data/move.ts
(oops)
* remove some unnecessary comments, rename something for clarity
---------
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
* [Bug] Remove ability swap code in `PlayerPokemon.evolve()` (#3113)
* [Test] Add test for rollout move (#3114)
* add test for rollout move
Co-authored-by: Zach Day <zachdayz@gmail.com>
* fix tests still using `SINGLE_BATTLE_OVERRIDE`
---------
Co-authored-by: Zach Day <zachdayz@gmail.com>
* [Bug][Beta] Fix Hyper Beam, etc. permanently recharging (#3115)
* Fix Hyper Beam, etc. permanently recharging
* Fix override in hyper beam test
* [QoL] New Starter Select UI with Filter (#2916)
* update images for new UI
* add updated starter UI with filter code
* update starter-select test code
* update win filter condition to pass test
* remove unnecessary console log
* update test code to match current filter UI
* merge update
* apply bugfix & chrry-pick small issues fix which are handled beta branch
* resolve conflicts
* fix lint errors
* Fixed a bug where the target location for escaping using the left and right buttons on the starter button did not account for scrolling
* update filter bar label color change when activated
* fix lint error
* fix lint
* fix octolock.text.ts. it looks override import error. idk why it is happend in this PR. but it looks ok now
* add passive dropdown in unlocks filter
* fix lint
* fix double button sound bug. refactoring genSpecies -> allSpecies, starterContainers -> starterContainer which are remove unnecessary generation axis
* optimize updateStarterValueLabel function which is bottleneck of UI update latency
* apply translation of gen filter label. fix lint
* add # candies sort option
* merge beta
* resolve confilcts
* fix offset of starter and start cursor
* make compatible with starter UI
* add missing feature
* add images for legacy UI. adjust the position and size of the starterContainerWindow
* [Localization] Implement Form localization (#3030)
* Implement Pokemon forms localization
* Update French pokemon-form.ts
* Update French pokemon-form.ts
* Update pokemon-form.ts
* Add battle forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add cosplay forms korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add pichu form korean translation from returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add castform forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* Add remaining forms korean translation by returntoice
Co-authored-by: returntoice <dieandbecome@gmail.com>
* French typo corrections pokemon-form.ts
* Update Korean pokemon-form.ts
* Modify froakiBattleBond
like rockruff of OwnTempo case, it is froakie, not greninja.
* Modify zygardePc
Power construct is more important information
Switch its position to 50% or 10% to avoid overlapping with the sprite
* Modify mispelling
* Added german forms
* Changed Gigadynamax and Unendynamax so it fits at all
* Add partner pikachu and eevee form localization
* Add mimikyu forms localization
* Partner Pikachu, Partner Evoli und Mimikyu Formen hinzugefügt
* Update pokemon-form.ts
* Update partners
* Fix conflicts
* Fix useless ? by flx-sta
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fix switch use by flx-sta
* Fix conflicts
* Please work !!!!!!!
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/fr/pokemon-form.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add pt_br primal localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br pikachu localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br castform localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add pt_br 3g localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add zh_cn localization
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Add pt_br other localization
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Add es castform localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es burmy localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es shellos localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rotom localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es basculin localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es deerling localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es froakie localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es scatterbug localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es furfrou localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es xerneas localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zygarde localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pumpkaboo localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es flabebe localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es oricorio localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es minior localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es magearna localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es marshadow localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es sinistea ocalization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es eiscue localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es indeedee localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es rockruff localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es mimikyu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es zarude localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es squawkabilly localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es tatsugiri localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es gimmighoul localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es poltchageit localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es paldeaTauros localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es primal localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es pikachu localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Add es partner localization
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix typedocs error
* Fix typedocs error
* cn form prefix added
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Fix german translate error
* Fix typo Zh_CN
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
* Update pokemon-form.ts [Localization(it)]
* Update src/locales/es/pokemon-form.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Fix megas forms bug and add forgotten forms
* Fix wrong ko config
* Add fr localization for new forms
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Add de localization for new forms
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Remove forgotten debug line
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Optimize battle forms
* Update pokemon-form.ts (additional forms, italian localization)
* The same typo is in the zh_TW placeholder text too.
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Fix forgotten megaY
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add capitalizeString to utils
* Fix typedoc error
* Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Add ko localization for new forms
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* [Move] Fully implement Jungle Healing/Lunar Blessing status heal (#2785)
* [Bug] Fix tags not resetting on switch (#3119)
Fixes #2982
* [Move] Water Shuriken guarantees 3 hits with battle bond (#2687)
* [Bug] Make on-summon abilities trigger after the switch check (#3118)
* Make on-summon abilities trigger after the switch check
* Add test
* [Ability] Cloud Nine now displays a message on activation
Maintains parity with Air Lock. Both of these probably need to be localized. Should fix issue 491 though
* [QoL] Summary Option for Caught Pokemon (#2921)
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed ESLint issue + addressed OrangeRed review
* Fixed Github pages issue
* Removed duplicate unshiftPhase
* Fixed phase order
* Don't start from beginning of catch function
* Option to view Summary before adding new Pokemon to party
* Fixed issues described by HopsWas
* Adjusted makeRoomForConfirmUi to improve window spacing
* Fixed Github pages issue
* Fixed phase order
* Quick fix
* This should fix the summaryOption feature without bugging confirm-ui-handler in other cases
* Revert "Merge remote-tracking branch 'origin/summaryOption1' into summaryOption1"
This reverts commit ea7d0ce59e3f5631a8ef3d76646069a3945ed036, reversing
changes made to 4c565958dafe6904925015ed7100e4940f041213.
* Added a better conditional that reflects its source and purpose
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
* [Bug] Fix HP rounding issues (#2968)
* [Bug] Fixes bug with frenzy moves keeping the confusion counter despite disruption (#3041)
* Adds frenzyMissFunc trigger on NO_EFFECT hit result
* Refactors FrenzyAttr to properly lapse tags each turn and remove tags on disrupt
* Makes comment on CONFUSED tag clearer
* Changes all integer usages to number in battler-tags
* Update getBattlerTag function to use number instead of integer
* [Tests] Updating Leftovers test (#3123)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Fixed import
* Revert "Bug Fix"
This reverts commit 834844978ef2583b00555969a99b3071c47a19d9.
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Localization] Correctly Localized German names of the BGM for Evil Teams (#3124)
* [Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix
* Update src/system/game-stats.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Fixing a test
* Revert "Fixing a test"
This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573.
* Test Re-Run
---------
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Bug] Adjust how counter attacks target to account for uturn/voltswitch and double battles (#2462)
* Adjust how counter attacks target to account for uturn/voltswitch
* Creates move flag for metal burst/comeuppance to redirect in some cases
* Remove debug printing
* Bit shifts the redirect counter flag
* Removes extraneous class from prior testing
* Remove vitest timestamp file that was accidentally added
* [Misc] Change fresh start achievement icon to reviver seed
Mystic ticket icons in the achievements just confuse players
* [Balance] Fix N-Solarizer etc appearing without secondary mon registered in dex (#2713)
* Fix reins et al being available without unlocking second mon
* Small fix
* Parentheses for safety
* Add documentation to new function
* Bug Fix (#3129)
Co-authored-by: Frutescens <info@laptop>
* [Bug] Fixed OHKO moves being affected by accuracy and evasion battle stats (#3117)
* Fixed OHKO moves being affected by accuracy and evasion battle stats
* Added related tests for Fissure, unskipped related test for Hustle
* Tweaked fissure accuracy and evasion tests to use spyOn() for getAccuracyMultiplier() as per feedback
* Fixed accuracy test for Fissure
* [Fix][Sprite] Politoed Back Sprites (#3130)
* [Fix][Sprite] Politoed Back Sprites
Retrieved first version from history.
Rearranged frames to make jump a little less floaty.
Set same anim length for all variations.
Json is identical for all variations.
Spritesheet frame position is identical for all variations.
Trimmed the frame of extra space
Reduced file size of spritesheets and JSON due to less unique frames needed.
* [Fix][Sprite] Politoed Back Sprites - Reformatted JSON to texturepacker standard
Reformatted json.
* [Bug] Hotfix for Starter select UI with Filter (#3121)
* fix remove pokemon menu
* fix dropdown all is not changing bug
* fix bug when go down with no starter on start button
* fix starter corsor bug on deletion. out of screen cursor bug
* fix challenge log
* fix lint error
* [Bug] fix and condition of shiny and passive (#3136)
* Fixed form names not working in starter select (#3139)
* [Bug] Prevent evolution causing a swap from the second ability to the HA (#3138)
* Prevent evolution causing a swap from the second ability to the HA
* Add tests
* Update `starter-select-ui-handler.ts`
* [Feature] [Item] Add White Herb item (#2719)
* More work
* More work
* Should be finished
* Fixed an error in checking target
* Moved white herb effect to StatChangePhase, 50% chance of consumption
* Added graphics for White Herb
* Balance and documentation
* Add localization entry for White Herb apply msg
* Add new keys to other localization files
* German translations
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update item sprite atlas
* Redo item atlas
* Remove whitespace in move.ts
* Moved decrement outside conditional
* Fix item atlas
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* [Localization] Translated missing portuguese entries and some fixes (#3142)
* [Bug] Caught Pokemon Summary-Modifier Display Fix (#3145)
* Fixed modifiers not displaying on summary screen
* Addressed Typedoc issues
* Documentation added
---------
Co-authored-by: Frutescens <info@laptop>
* [BUG] Fixes bug that prevents pokemon with froms from hatching as rare/epic shiny variant and preventing illegal variants from legendary gacha (#2940)
* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms
* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants
* Simplified variant check. Fixed spelling on unit test
* Bugfix for legacy eggs
* Removed formIndex variable
* Changed unit test
* Added new line to unit test function
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* [Unittest] remove held item rng (white herb) from intimidate.test.ts (#3151)
* Emergency delete unlock all functionality - should remove the unlock all functionality but keeps the isBeta utils function for future stuff (#3153)
* Update `getAbility()` and `getAbilityCount()` for the ability changes (#3157)
* Update src/data/arena-tag.ts
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Felix Staud <felix.staud@headwire.com>
Co-authored-by: Adrian T <68144167+torranx@users.noreply.github.com>
Co-authored-by: lnuvy <lnuvy.code@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Alexis <alexis.faizeau@animedigitalnetwork.fr>
Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Mr.WaterT <water.t.works@gmail.com>
Co-authored-by: Alexis Faizeau <faizeau.alexis@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: Dmitriy K <kagno.dmitriy@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: xsn34kzx <xsn34kzx@gmail.com>
Co-authored-by: Amani H <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: hayuna <marek.kowalonek@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: EmberCM <emberdevteam@gmail.com>
Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: mcmontag <54485715+mcmontag@users.noreply.github.com>
Co-authored-by: schmidtc1 <62030095+schmidtc1@users.noreply.github.com>
Co-authored-by: Arxalc <63990624+Arxalc@users.noreply.github.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: Frutescens <info@laptop>
Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Zoruu <113668528+ArielStevens@users.noreply.github.com>
Co-authored-by: Corrade <49605314+Corrade@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: 송영진 <36808515+bucket1582@users.noreply.github.com>
Co-authored-by: DustinLin <39450497+DustinLin@users.noreply.github.com>
Co-authored-by: 서명인 (Myungin, SEO) <65226760+smee6@users.noreply.github.com>
Co-authored-by: gjeodnd12165 <61226524+gjeodnd12165@users.noreply.github.com>
Co-authored-by: sirzento <sirzento@gmx.de>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
Co-authored-by: Daniel Gaston <danielgaston6@gmail.com>
Co-authored-by: Zach Day <zachdayz@gmail.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: Kiriox <66013753+Kiriox94@users.noreply.github.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
Co-authored-by: AJ Fontaine <fontbane@gmail.com>
2024-07-28 00:47:00 +01:00
/ * *
* Moves everything from nextCommandPhaseQueue to phaseQueue ( keeping order )
* /
2024-05-23 16:03:10 +01:00
populatePhaseQueue ( ) : void {
if ( this . nextCommandPhaseQueue . length ) {
this . phaseQueue . push ( . . . this . nextCommandPhaseQueue ) ;
this . nextCommandPhaseQueue . splice ( 0 , this . nextCommandPhaseQueue . length ) ;
}
this . phaseQueue . push ( new TurnInitPhase ( this ) ) ;
}
addMoney ( amount : integer ) : void {
this . money = Math . min ( this . money + amount , Number . MAX_SAFE_INTEGER ) ;
this . updateMoneyText ( ) ;
2024-06-06 17:50:02 +01:00
this . animateMoneyChanged ( true ) ;
2024-05-23 16:03:10 +01:00
this . validateAchvs ( MoneyAchv ) ;
}
getWaveMoneyAmount ( moneyMultiplier : number ) : integer {
const waveIndex = this . currentBattle . waveIndex ;
const waveSetIndex = Math . ceil ( waveIndex / 10 ) - 1 ;
const moneyValue = Math . pow ( ( waveSetIndex + 1 + ( 0.75 + ( ( ( waveIndex - 1 ) % 10 ) + 1 ) / 10 ) ) * 100 , 1 + 0.005 * waveSetIndex ) * moneyMultiplier ;
return Math . floor ( moneyValue / 10 ) * 10 ;
}
2024-08-07 17:23:12 +01:00
addModifier ( modifier : Modifier | null , ignoreUpdate? : boolean , playSound? : boolean , virtual? : boolean , instant? : boolean ) : Promise < boolean > {
if ( ! modifier ) {
return Promise . resolve ( false ) ;
}
2024-05-23 16:03:10 +01:00
return new Promise ( resolve = > {
let success = false ;
const soundName = modifier . type . soundName ;
this . validateAchvs ( ModifierAchv , modifier ) ;
const modifiersToRemove : PersistentModifier [ ] = [ ] ;
const modifierPromises : Promise < boolean > [ ] = [ ] ;
if ( modifier instanceof PersistentModifier ) {
if ( modifier instanceof TerastallizeModifier ) {
modifiersToRemove . push ( . . . ( this . findModifiers ( m = > m instanceof TerastallizeModifier && m . pokemonId === modifier . pokemonId ) ) ) ;
}
if ( ( modifier as PersistentModifier ) . add ( this . modifiers , ! ! virtual , this ) ) {
if ( modifier instanceof PokemonFormChangeItemModifier || modifier instanceof TerastallizeModifier ) {
success = modifier . apply ( [ this . getPokemonById ( modifier . pokemonId ) , true ] ) ;
}
if ( playSound && ! this . sound . get ( soundName ) ) {
this . playSound ( soundName ) ;
}
} else if ( ! virtual ) {
const defaultModifierType = getDefaultModifierTypeForTier ( modifier . type . tier ) ;
2024-08-12 15:07:41 +01:00
this . queueMessage ( i18next . t ( "battle:itemStackFull" , { fullItemName : modifier.type.name , itemName : defaultModifierType.name } ) , undefined , true ) ;
2024-05-23 16:03:10 +01:00
return this . addModifier ( defaultModifierType . newModifier ( ) , ignoreUpdate , playSound , false , instant ) . then ( success = > resolve ( success ) ) ;
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
for ( const rm of modifiersToRemove ) {
this . removeModifier ( rm ) ;
}
if ( ! ignoreUpdate && ! virtual ) {
return this . updateModifiers ( true , instant ) . then ( ( ) = > resolve ( success ) ) ;
}
} else if ( modifier instanceof ConsumableModifier ) {
if ( playSound && ! this . sound . get ( soundName ) ) {
this . playSound ( soundName ) ;
}
if ( modifier instanceof ConsumablePokemonModifier ) {
for ( const p in this . party ) {
const pokemon = this . party [ p ] ;
const args : any [ ] = [ pokemon ] ;
if ( modifier instanceof PokemonHpRestoreModifier ) {
if ( ! ( modifier as PokemonHpRestoreModifier ) . fainted ) {
const hpRestoreMultiplier = new Utils . IntegerHolder ( 1 ) ;
this . applyModifiers ( HealingBoosterModifier , true , hpRestoreMultiplier ) ;
args . push ( hpRestoreMultiplier . value ) ;
} else {
args . push ( 1 ) ;
}
} else if ( modifier instanceof FusePokemonModifier ) {
args . push ( this . getPokemonById ( modifier . fusePokemonId ) as PlayerPokemon ) ;
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
if ( modifier . shouldApply ( args ) ) {
const result = modifier . apply ( args ) ;
if ( result instanceof Promise ) {
modifierPromises . push ( result . then ( s = > success || = s ) ) ;
} else {
success || = result ;
}
}
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
return Promise . allSettled ( [ this . party . map ( p = > p . updateInfo ( instant ) ) , . . . modifierPromises ] ) . then ( ( ) = > resolve ( success ) ) ;
} else {
const args = [ this ] ;
if ( modifier . shouldApply ( args ) ) {
const result = modifier . apply ( args ) ;
if ( result instanceof Promise ) {
return result . then ( success = > resolve ( success ) ) ;
} else {
success || = result ;
}
}
}
}
resolve ( success ) ;
} ) ;
}
addEnemyModifier ( modifier : PersistentModifier , ignoreUpdate? : boolean , instant? : boolean ) : Promise < void > {
return new Promise ( resolve = > {
const modifiersToRemove : PersistentModifier [ ] = [ ] ;
if ( modifier instanceof TerastallizeModifier ) {
modifiersToRemove . push ( . . . ( this . findModifiers ( m = > m instanceof TerastallizeModifier && m . pokemonId === modifier . pokemonId , false ) ) ) ;
}
if ( ( modifier as PersistentModifier ) . add ( this . enemyModifiers , false , this ) ) {
if ( modifier instanceof PokemonFormChangeItemModifier || modifier instanceof TerastallizeModifier ) {
modifier . apply ( [ this . getPokemonById ( modifier . pokemonId ) , true ] ) ;
}
for ( const rm of modifiersToRemove ) {
this . removeModifier ( rm , true ) ;
}
}
if ( ! ignoreUpdate ) {
this . updateModifiers ( false , instant ) . then ( ( ) = > resolve ( ) ) ;
} else {
resolve ( ) ;
}
} ) ;
}
2024-05-30 22:58:10 +01:00
/ * *
* Try to transfer a held item to another pokemon .
* If the recepient already has the maximum amount allowed for this item , the transfer is cancelled .
* The quantity to transfer is automatically capped at how much the recepient can take before reaching the maximum stack size for the item .
* A transfer that moves a quantity smaller than what is specified in the transferQuantity parameter is still considered successful .
* @param itemModifier { @linkcode PokemonHeldItemModifier } item to transfer ( represents the whole stack )
* @param target { @linkcode Pokemon } pokemon recepient in this transfer
* @param playSound { boolean }
* @param transferQuantity { @linkcode integer } how many items of the stack to transfer . Optional , defaults to 1
* @param instant { boolean }
* @param ignoreUpdate { boolean }
* @returns true if the transfer was successful
* /
tryTransferHeldItemModifier ( itemModifier : PokemonHeldItemModifier , target : Pokemon , playSound : boolean , transferQuantity : integer = 1 , instant? : boolean , ignoreUpdate? : boolean ) : Promise < boolean > {
2024-05-23 16:03:10 +01:00
return new Promise ( resolve = > {
const source = itemModifier . pokemonId ? itemModifier . getPokemon ( target . scene ) : null ;
const cancelled = new Utils . BooleanHolder ( false ) ;
2024-08-07 17:23:12 +01:00
Utils . executeIf ( ! ! source && source . isPlayer ( ) !== target . isPlayer ( ) , ( ) = > applyAbAttrs ( BlockItemTheftAbAttr , source ! /* checked in condition*/ , cancelled ) ) . then ( ( ) = > {
2024-05-23 16:03:10 +01:00
if ( cancelled . value ) {
return resolve ( false ) ;
}
const newItemModifier = itemModifier . clone ( ) as PokemonHeldItemModifier ;
newItemModifier . pokemonId = target . id ;
const matchingModifier = target . scene . findModifier ( m = > m instanceof PokemonHeldItemModifier
2024-06-06 02:28:12 +01:00
&& ( m as PokemonHeldItemModifier ) . matchType ( itemModifier ) && m . pokemonId === target . id , target . isPlayer ( ) ) as PokemonHeldItemModifier ;
2024-05-23 16:03:10 +01:00
let removeOld = true ;
if ( matchingModifier ) {
const maxStackCount = matchingModifier . getMaxStackCount ( target . scene ) ;
if ( matchingModifier . stackCount >= maxStackCount ) {
return resolve ( false ) ;
}
2024-05-30 22:58:10 +01:00
const countTaken = Math . min ( transferQuantity , itemModifier . stackCount , maxStackCount - matchingModifier . stackCount ) ;
2024-05-23 16:03:10 +01:00
itemModifier . stackCount -= countTaken ;
newItemModifier . stackCount = matchingModifier . stackCount + countTaken ;
removeOld = ! itemModifier . stackCount ;
2024-05-30 22:58:10 +01:00
} else {
const countTaken = Math . min ( transferQuantity , itemModifier . stackCount ) ;
itemModifier . stackCount -= countTaken ;
newItemModifier . stackCount = countTaken ;
2024-05-23 16:03:10 +01:00
}
2024-05-30 22:58:10 +01:00
removeOld = ! itemModifier . stackCount ;
2024-05-23 16:03:10 +01:00
if ( ! removeOld || ! source || this . removeModifier ( itemModifier , ! source . isPlayer ( ) ) ) {
const addModifier = ( ) = > {
if ( ! matchingModifier || this . removeModifier ( matchingModifier , ! target . isPlayer ( ) ) ) {
if ( target . isPlayer ( ) ) {
this . addModifier ( newItemModifier , ignoreUpdate , playSound , false , instant ) . then ( ( ) = > resolve ( true ) ) ;
} else {
this . addEnemyModifier ( newItemModifier , ignoreUpdate , instant ) . then ( ( ) = > resolve ( true ) ) ;
}
} else {
resolve ( false ) ;
}
} ;
if ( source && source . isPlayer ( ) !== target . isPlayer ( ) && ! ignoreUpdate ) {
this . updateModifiers ( source . isPlayer ( ) , instant ) . then ( ( ) = > addModifier ( ) ) ;
} else {
addModifier ( ) ;
}
return ;
}
resolve ( false ) ;
} ) ;
} ) ;
}
removePartyMemberModifiers ( partyMemberIndex : integer ) : Promise < void > {
return new Promise ( resolve = > {
const pokemonId = this . getParty ( ) [ partyMemberIndex ] . id ;
const modifiersToRemove = this . modifiers . filter ( m = > m instanceof PokemonHeldItemModifier && ( m as PokemonHeldItemModifier ) . pokemonId === pokemonId ) ;
for ( const m of modifiersToRemove ) {
this . modifiers . splice ( this . modifiers . indexOf ( m ) , 1 ) ;
}
this . updateModifiers ( ) . then ( ( ) = > resolve ( ) ) ;
} ) ;
}
2024-09-14 03:05:58 +01:00
generateEnemyModifiers ( heldModifiersConfigs? : HeldModifierConfig [ ] [ ] ) : Promise < void > {
2024-05-23 16:03:10 +01:00
return new Promise ( resolve = > {
if ( this . currentBattle . battleSpec === BattleSpec . FINAL_BOSS ) {
return resolve ( ) ;
}
const difficultyWaveIndex = this . gameMode . getWaveForDifficulty ( this . currentBattle . waveIndex ) ;
const isFinalBoss = this . gameMode . isWaveFinal ( this . currentBattle . waveIndex ) ;
let chances = Math . ceil ( difficultyWaveIndex / 10 ) ;
if ( isFinalBoss ) {
chances = Math . ceil ( chances * 2.5 ) ;
}
const party = this . getEnemyParty ( ) ;
if ( this . currentBattle . trainer ) {
const modifiers = this . currentBattle . trainer . genModifiers ( party ) ;
for ( const modifier of modifiers ) {
this . addEnemyModifier ( modifier , true , true ) ;
}
}
party . forEach ( ( enemyPokemon : EnemyPokemon , i : integer ) = > {
2024-09-19 14:44:10 +01:00
if ( heldModifiersConfigs && i < heldModifiersConfigs . length && heldModifiersConfigs [ i ] ) {
2024-09-14 03:05:58 +01:00
heldModifiersConfigs [ i ] . forEach ( mt = > {
let modifier : PokemonHeldItemModifier ;
if ( mt . modifier instanceof PokemonHeldItemModifierType ) {
modifier = mt . modifier . newModifier ( enemyPokemon ) ;
} else {
modifier = mt . modifier as PokemonHeldItemModifier ;
modifier . pokemonId = enemyPokemon . id ;
}
2024-09-24 18:15:18 +01:00
modifier . stackCount = mt . stackCount ? ? 1 ;
2024-09-19 14:44:10 +01:00
modifier . isTransferable = mt . isTransferable ? ? modifier . isTransferable ;
2024-09-14 03:05:58 +01:00
this . addEnemyModifier ( modifier , true ) ;
} ) ;
} else {
const isBoss = enemyPokemon . isBoss ( ) || ( this . currentBattle . battleType === BattleType . TRAINER && ! ! this . currentBattle . trainer ? . config . isBoss ) ;
let upgradeChance = 32 ;
if ( isBoss ) {
upgradeChance /= 2 ;
2024-05-23 16:03:10 +01:00
}
2024-09-14 03:05:58 +01:00
if ( isFinalBoss ) {
upgradeChance /= 8 ;
}
const modifierChance = this . gameMode . getEnemyModifierChance ( isBoss ) ;
let pokemonModifierChance = modifierChance ;
if ( this . currentBattle . battleType === BattleType . TRAINER && this . currentBattle . trainer )
pokemonModifierChance = Math . ceil ( pokemonModifierChance * this . currentBattle . trainer . getPartyMemberModifierChanceMultiplier ( i ) ) ; // eslint-disable-line
let count = 0 ;
for ( let c = 0 ; c < chances ; c ++ ) {
if ( ! Utils . randSeedInt ( modifierChance ) ) {
count ++ ;
}
}
if ( isBoss ) {
count = Math . max ( count , Math . floor ( chances / 2 ) ) ;
}
getEnemyModifierTypesForWave ( difficultyWaveIndex , count , [ enemyPokemon ] , this . currentBattle . battleType === BattleType . TRAINER ? ModifierPoolType.TRAINER : ModifierPoolType.WILD , upgradeChance )
. map ( mt = > mt . newModifier ( enemyPokemon ) . add ( this . enemyModifiers , false , this ) ) ;
2024-05-23 16:03:10 +01:00
}
2024-09-14 03:05:58 +01:00
return true ;
2024-05-23 16:03:10 +01:00
} ) ;
this . updateModifiers ( false ) . then ( ( ) = > resolve ( ) ) ;
} ) ;
}
/ * *
2024-06-06 02:28:12 +01:00
* Removes all modifiers from enemy of PersistentModifier type
* /
2024-05-23 16:03:10 +01:00
clearEnemyModifiers ( ) : void {
const modifiersToRemove = this . enemyModifiers . filter ( m = > m instanceof PersistentModifier ) ;
for ( const m of modifiersToRemove ) {
this . enemyModifiers . splice ( this . enemyModifiers . indexOf ( m ) , 1 ) ;
}
this . updateModifiers ( false ) . then ( ( ) = > this . updateUIPositions ( ) ) ;
}
/ * *
2024-06-06 02:28:12 +01:00
* Removes all modifiers from enemy of PokemonHeldItemModifier type
* /
2024-05-23 16:03:10 +01:00
clearEnemyHeldItemModifiers ( ) : void {
const modifiersToRemove = this . enemyModifiers . filter ( m = > m instanceof PokemonHeldItemModifier ) ;
for ( const m of modifiersToRemove ) {
this . enemyModifiers . splice ( this . enemyModifiers . indexOf ( m ) , 1 ) ;
}
this . updateModifiers ( false ) . then ( ( ) = > this . updateUIPositions ( ) ) ;
}
setModifiersVisible ( visible : boolean ) {
[ this . modifierBar , this . enemyModifierBar ] . map ( m = > m . setVisible ( visible ) ) ;
}
updateModifiers ( player? : boolean , instant? : boolean ) : Promise < void > {
if ( player === undefined ) {
player = true ;
}
return new Promise ( resolve = > {
const modifiers = player ? this . modifiers : this.enemyModifiers as PersistentModifier [ ] ;
for ( let m = 0 ; m < modifiers . length ; m ++ ) {
const modifier = modifiers [ m ] ;
if ( modifier instanceof PokemonHeldItemModifier && ! this . getPokemonById ( ( modifier as PokemonHeldItemModifier ) . pokemonId ) ) {
modifiers . splice ( m -- , 1 ) ;
}
}
for ( const modifier of modifiers ) {
if ( modifier instanceof PersistentModifier ) {
( modifier as PersistentModifier ) . virtualStackCount = 0 ;
}
}
const modifiersClone = modifiers . slice ( 0 ) ;
for ( const modifier of modifiersClone ) {
if ( ! modifier . getStackCount ( ) ) {
modifiers . splice ( modifiers . indexOf ( modifier ) , 1 ) ;
}
}
this . updatePartyForModifiers ( player ? this . getParty ( ) : this . getEnemyParty ( ) , instant ) . then ( ( ) = > {
( player ? this . modifierBar : this.enemyModifierBar ) . updateModifiers ( modifiers ) ;
if ( ! player ) {
this . updateUIPositions ( ) ;
}
resolve ( ) ;
} ) ;
} ) ;
}
updatePartyForModifiers ( party : Pokemon [ ] , instant? : boolean ) : Promise < void > {
return new Promise ( resolve = > {
Promise . allSettled ( party . map ( p = > {
if ( p . scene ) {
p . calculateStats ( ) ;
}
return p . updateInfo ( instant ) ;
} ) ) . then ( ( ) = > resolve ( ) ) ;
} ) ;
}
removeModifier ( modifier : PersistentModifier , enemy? : boolean ) : boolean {
const modifiers = ! enemy ? this . modifiers : this.enemyModifiers ;
const modifierIndex = modifiers . indexOf ( modifier ) ;
if ( modifierIndex > - 1 ) {
modifiers . splice ( modifierIndex , 1 ) ;
if ( modifier instanceof PokemonFormChangeItemModifier || modifier instanceof TerastallizeModifier ) {
modifier . apply ( [ this . getPokemonById ( modifier . pokemonId ) , false ] ) ;
}
return true ;
}
return false ;
}
2024-06-19 17:00:26 +01:00
/ * *
* Get all of the modifiers that match ` modifierType `
* @param modifierType The type of modifier to apply ; must extend { @linkcode PersistentModifier }
* @param player Whether to search the player ( ` true ` ) or the enemy ( ` false ` ) ; Defaults to ` true `
* @returns the list of all modifiers that matched ` modifierType ` .
* /
getModifiers < T extends PersistentModifier > ( modifierType : Constructor < T > , player : boolean = true ) : T [ ] {
return ( player ? this . modifiers : this.enemyModifiers ) . filter ( ( m ) : m is T = > m instanceof modifierType ) ;
2024-05-23 16:03:10 +01:00
}
findModifiers ( modifierFilter : ModifierPredicate , player : boolean = true ) : PersistentModifier [ ] {
return ( player ? this . modifiers : this.enemyModifiers ) . filter ( m = > ( modifierFilter as ModifierPredicate ) ( m ) ) ;
}
2024-08-07 17:23:12 +01:00
findModifier ( modifierFilter : ModifierPredicate , player : boolean = true ) : PersistentModifier | undefined {
2024-05-23 16:03:10 +01:00
return ( player ? this . modifiers : this.enemyModifiers ) . find ( m = > ( modifierFilter as ModifierPredicate ) ( m ) ) ;
}
2024-06-19 17:00:26 +01:00
applyShuffledModifiers ( scene : BattleScene , modifierType : Constructor < Modifier > , player : boolean = true , . . . args : any [ ] ) : PersistentModifier [ ] {
2024-05-23 16:03:10 +01:00
let modifiers = ( player ? this . modifiers : this.enemyModifiers ) . filter ( m = > m instanceof modifierType && m . shouldApply ( args ) ) ;
scene . executeWithSeedOffset ( ( ) = > {
const shuffleModifiers = mods = > {
if ( mods . length < 1 ) {
return mods ;
}
2024-09-06 00:51:05 +01:00
const rand = Utils . randSeedInt ( mods . length ) ;
2024-05-23 16:03:10 +01:00
return [ mods [ rand ] , . . . shuffleModifiers ( mods . filter ( ( _ , i ) = > i !== rand ) ) ] ;
} ;
modifiers = shuffleModifiers ( modifiers ) ;
} , scene . currentBattle . turn << 4 , scene . waveSeed ) ;
return this . applyModifiersInternal ( modifiers , player , args ) ;
}
2024-06-19 17:00:26 +01:00
applyModifiers ( modifierType : Constructor < Modifier > , player : boolean = true , . . . args : any [ ] ) : PersistentModifier [ ] {
2024-05-23 16:03:10 +01:00
const modifiers = ( player ? this . modifiers : this.enemyModifiers ) . filter ( m = > m instanceof modifierType && m . shouldApply ( args ) ) ;
return this . applyModifiersInternal ( modifiers , player , args ) ;
}
applyModifiersInternal ( modifiers : PersistentModifier [ ] , player : boolean , args : any [ ] ) : PersistentModifier [ ] {
const appliedModifiers : PersistentModifier [ ] = [ ] ;
for ( const modifier of modifiers ) {
if ( modifier . apply ( args ) ) {
console . log ( "Applied" , modifier . type . name , ! player ? "(enemy)" : "" ) ;
appliedModifiers . push ( modifier ) ;
}
}
return appliedModifiers ;
}
2024-08-07 17:23:12 +01:00
applyModifier ( modifierType : Constructor < Modifier > , player : boolean = true , . . . args : any [ ] ) : PersistentModifier | null {
2024-05-23 16:03:10 +01:00
const modifiers = ( player ? this . modifiers : this.enemyModifiers ) . filter ( m = > m instanceof modifierType && m . shouldApply ( args ) ) ;
for ( const modifier of modifiers ) {
if ( modifier . apply ( args ) ) {
console . log ( "Applied" , modifier . type . name , ! player ? "(enemy)" : "" ) ;
return modifier ;
}
}
return null ;
}
2024-06-19 17:00:26 +01:00
triggerPokemonFormChange ( pokemon : Pokemon , formChangeTriggerType : Constructor < SpeciesFormChangeTrigger > , delayed : boolean = false , modal : boolean = false ) : boolean {
2024-05-23 16:03:10 +01:00
if ( pokemonFormChanges . hasOwnProperty ( pokemon . species . speciesId ) ) {
2024-08-13 21:40:16 +01:00
// in case this is NECROZMA, determine which forms this
const matchingFormChangeOpts = pokemonFormChanges [ pokemon . species . speciesId ] . filter ( fc = > fc . findTrigger ( formChangeTriggerType ) && fc . canChange ( pokemon ) ) ;
2024-08-18 05:05:04 +01:00
let matchingFormChange : SpeciesFormChange | null ;
2024-08-13 21:40:16 +01:00
if ( pokemon . species . speciesId === Species . NECROZMA && matchingFormChangeOpts . length > 1 ) {
// Ultra Necrozma is changing its form back, so we need to figure out into which form it devolves.
const formChangeItemModifiers = ( this . findModifiers ( m = > m instanceof PokemonFormChangeItemModifier && m . pokemonId === pokemon . id ) as PokemonFormChangeItemModifier [ ] ) . filter ( m = > m . active ) . map ( m = > m . formChangeItem ) ;
matchingFormChange = formChangeItemModifiers . includes ( FormChangeItem . N_LUNARIZER ) ?
matchingFormChangeOpts [ 0 ] :
formChangeItemModifiers . includes ( FormChangeItem . N_SOLARIZER ) ?
matchingFormChangeOpts [ 1 ] :
null ;
} else {
matchingFormChange = matchingFormChangeOpts [ 0 ] ;
}
2024-05-23 16:03:10 +01:00
if ( matchingFormChange ) {
let phase : Phase ;
if ( pokemon instanceof PlayerPokemon && ! matchingFormChange . quiet ) {
phase = new FormChangePhase ( this , pokemon , matchingFormChange , modal ) ;
} else {
phase = new QuietFormChangePhase ( this , pokemon , matchingFormChange ) ;
}
if ( pokemon instanceof PlayerPokemon && ! matchingFormChange . quiet && modal ) {
this . overridePhase ( phase ) ;
} else if ( delayed ) {
this . pushPhase ( phase ) ;
} else {
this . unshiftPhase ( phase ) ;
}
return true ;
}
}
return false ;
}
2024-09-13 17:46:22 +01:00
triggerPokemonBattleAnim ( pokemon : Pokemon , battleAnimType : PokemonAnimType , fieldAssets? : Phaser.GameObjects.Sprite [ ] , delayed : boolean = false ) : boolean {
const phase : Phase = new PokemonAnimPhase ( this , battleAnimType , pokemon , fieldAssets ) ;
if ( delayed ) {
this . pushPhase ( phase ) ;
} else {
this . unshiftPhase ( phase ) ;
}
return true ;
}
2024-06-19 17:00:26 +01:00
validateAchvs ( achvType : Constructor < Achv > , . . . args : unknown [ ] ) : void {
2024-05-23 16:03:10 +01:00
const filteredAchvs = Object . values ( achvs ) . filter ( a = > a instanceof achvType ) ;
for ( const achv of filteredAchvs ) {
this . validateAchv ( achv , args ) ;
}
}
validateAchv ( achv : Achv , args? : any [ ] ) : boolean {
if ( ! this . gameData . achvUnlocks . hasOwnProperty ( achv . id ) && achv . validate ( this , args ) ) {
this . gameData . achvUnlocks [ achv . id ] = new Date ( ) . getTime ( ) ;
this . ui . achvBar . showAchv ( achv ) ;
if ( vouchers . hasOwnProperty ( achv . id ) ) {
this . validateVoucher ( vouchers [ achv . id ] ) ;
}
return true ;
}
return false ;
}
validateVoucher ( voucher : Voucher , args? : any [ ] ) : boolean {
if ( ! this . gameData . voucherUnlocks . hasOwnProperty ( voucher . id ) && voucher . validate ( this , args ) ) {
this . gameData . voucherUnlocks [ voucher . id ] = new Date ( ) . getTime ( ) ;
this . ui . achvBar . showAchv ( voucher ) ;
this . gameData . voucherCounts [ voucher . voucherType ] ++ ;
return true ;
}
return false ;
}
2024-05-24 00:45:04 +01:00
2024-05-23 16:03:10 +01:00
updateGameInfo ( ) : void {
const gameInfo = {
playTime : this.sessionPlayTime ? this . sessionPlayTime : 0 ,
gameMode : this.currentBattle ? this . gameMode . getName ( ) : "Title" ,
biome : this.currentBattle ? getBiomeName ( this . arena . biomeType ) : "" ,
wave : this.currentBattle?.waveIndex || 0 ,
party : this.party ? this . party . map ( p = > {
return { name : p.name , level : p.level } ;
2024-08-24 17:42:20 +01:00
} ) : [ ] ,
2024-08-24 17:59:41 +01:00
modeChain : this.ui?.getModeChain ( ) ? ? [ ] ,
2024-05-23 16:03:10 +01:00
} ;
( window as any ) . gameInfo = gameInfo ;
}
2024-07-30 04:51:56 +01:00
2024-09-04 17:59:25 +01:00
/ * *
* This function retrieves the sprite and audio keys for active Pokemon .
* Active Pokemon include both enemy and player Pokemon of the current wave .
* Note : Questions on garbage collection go to @frutescens
* @returns a string array of active sprite and audio keys that should not be deleted
* /
getActiveKeys ( ) : string [ ] {
const keys : string [ ] = [ ] ;
const playerParty = this . getParty ( ) ;
playerParty . forEach ( p = > {
2024-09-09 00:03:37 +01:00
keys . push ( p . getSpriteKey ( true ) ) ;
keys . push ( p . getBattleSpriteKey ( true , true ) ) ;
2024-09-09 03:12:37 +01:00
keys . push ( "cry/" + p . species . getCryKey ( p . formIndex ) ) ;
if ( p . fusionSpecies ) {
2024-09-08 07:58:24 +01:00
keys . push ( "cry/" + p . fusionSpecies . getCryKey ( p . fusionFormIndex ) ) ;
2024-09-05 00:16:47 +01:00
}
2024-09-04 17:59:25 +01:00
} ) ;
// enemyParty has to be operated on separately from playerParty because playerPokemon =/= enemyPokemon
const enemyParty = this . getEnemyParty ( ) ;
enemyParty . forEach ( p = > {
2024-09-09 00:03:37 +01:00
keys . push ( p . getSpriteKey ( true ) ) ;
2024-09-09 03:12:37 +01:00
keys . push ( "cry/" + p . species . getCryKey ( p . formIndex ) ) ;
if ( p . fusionSpecies ) {
2024-09-08 07:58:24 +01:00
keys . push ( "cry/" + p . fusionSpecies . getCryKey ( p . fusionFormIndex ) ) ;
2024-09-05 00:16:47 +01:00
}
2024-09-04 17:59:25 +01:00
} ) ;
return keys ;
}
2024-07-30 04:51:56 +01:00
/ * *
* Initialized the 2 nd phase of the final boss ( e . g . form - change for Eternatus )
* @param pokemon The ( enemy ) pokemon
* /
initFinalBossPhaseTwo ( pokemon : Pokemon ) : void {
if ( pokemon instanceof EnemyPokemon && pokemon . isBoss ( ) && ! pokemon . formIndex && pokemon . bossSegmentIndex < 1 ) {
this . fadeOutBgm ( Utils . fixedInt ( 2000 ) , false ) ;
2024-08-07 17:23:12 +01:00
this . ui . showDialogue ( battleSpecDialogue [ BattleSpec . FINAL_BOSS ] . firstStageWin , pokemon . species . name , undefined , ( ) = > {
2024-08-18 04:28:06 +01:00
const finalBossMBH = getModifierType ( modifierTypes . MINI_BLACK_HOLE ) . newModifier ( pokemon ) as TurnHeldItemTransferModifier ;
finalBossMBH . setTransferrableFalse ( ) ;
this . addEnemyModifier ( finalBossMBH , false , true ) ;
2024-07-30 04:51:56 +01:00
pokemon . generateAndPopulateMoveset ( 1 ) ;
this . setFieldScale ( 0.75 ) ;
this . triggerPokemonFormChange ( pokemon , SpeciesFormChangeManualTrigger , false ) ;
this . currentBattle . double = true ;
const availablePartyMembers = this . getParty ( ) . filter ( ( p ) = > p . isAllowedInBattle ( ) ) ;
if ( availablePartyMembers . length > 1 ) {
this . pushPhase ( new ToggleDoublePositionPhase ( this , true ) ) ;
if ( ! availablePartyMembers [ 1 ] . isOnField ( ) ) {
this . pushPhase ( new SummonPhase ( this , 1 ) ) ;
}
}
this . shiftPhase ( ) ;
} ) ;
return ;
}
this . shiftPhase ( ) ;
}
2024-09-14 03:05:58 +01:00
/ * *
* Updates Exp and level values for Player ' s party , adding new level up phases as required
* @param expValue raw value of exp to split among participants , OR the base multiplier to use with waveIndex
* @param pokemonDefeated If true , will increment Macho Brace stacks and give the party Pokemon friendship increases
* @param useWaveIndexMultiplier Default false . If true , will multiply expValue by a scaling waveIndex multiplier . Not needed if expValue is already scaled by level / wave
* @param pokemonParticipantIds Participants . If none are defined , no exp will be given . To spread evenly among the party , should pass all ids of party members .
* /
applyPartyExp ( expValue : number , pokemonDefeated : boolean , useWaveIndexMultiplier? : boolean , pokemonParticipantIds? : Set < number > ) : void {
const participantIds = pokemonParticipantIds ? ? this . currentBattle . playerParticipantIds ;
const party = this . getParty ( ) ;
const expShareModifier = this . findModifier ( m = > m instanceof ExpShareModifier ) as ExpShareModifier ;
const expBalanceModifier = this . findModifier ( m = > m instanceof ExpBalanceModifier ) as ExpBalanceModifier ;
const multipleParticipantExpBonusModifier = this . findModifier ( m = > m instanceof MultipleParticipantExpBonusModifier ) as MultipleParticipantExpBonusModifier ;
const nonFaintedPartyMembers = party . filter ( p = > p . hp ) ;
const expPartyMembers = nonFaintedPartyMembers . filter ( p = > p . level < this . getMaxExpLevel ( ) ) ;
const partyMemberExp : number [ ] = [ ] ;
// EXP value calculation is based off Pokemon.getExpValue
if ( useWaveIndexMultiplier ) {
expValue = Math . floor ( expValue * this . currentBattle . waveIndex / 5 + 1 ) ;
}
if ( participantIds . size > 0 ) {
if ( this . currentBattle . battleType === BattleType . TRAINER || this . currentBattle . mysteryEncounter ? . encounterMode === MysteryEncounterMode . TRAINER_BATTLE ) {
expValue = Math . floor ( expValue * 1.5 ) ;
} else if ( this . currentBattle . battleType === BattleType . MYSTERY_ENCOUNTER && this . currentBattle . mysteryEncounter ) {
expValue = Math . floor ( expValue * this . currentBattle . mysteryEncounter . expMultiplier ) ;
}
for ( const partyMember of nonFaintedPartyMembers ) {
const pId = partyMember . id ;
const participated = participantIds . has ( pId ) ;
if ( participated && pokemonDefeated ) {
partyMember . addFriendship ( 2 ) ;
const machoBraceModifier = partyMember . getHeldItems ( ) . find ( m = > m instanceof PokemonIncrementingStatModifier ) ;
if ( machoBraceModifier && machoBraceModifier . stackCount < machoBraceModifier . getMaxStackCount ( this ) ) {
machoBraceModifier . stackCount ++ ;
this . updateModifiers ( true , true ) ;
partyMember . updateInfo ( ) ;
}
}
if ( ! expPartyMembers . includes ( partyMember ) ) {
continue ;
}
if ( ! participated && ! expShareModifier ) {
partyMemberExp . push ( 0 ) ;
continue ;
}
let expMultiplier = 0 ;
if ( participated ) {
expMultiplier += ( 1 / participantIds . size ) ;
if ( participantIds . size > 1 && multipleParticipantExpBonusModifier ) {
expMultiplier += multipleParticipantExpBonusModifier . getStackCount ( ) * 0.2 ;
}
} else if ( expShareModifier ) {
expMultiplier += ( expShareModifier . getStackCount ( ) * 0.2 ) / participantIds . size ;
}
if ( partyMember . pokerus ) {
expMultiplier *= 1.5 ;
}
if ( Overrides . XP_MULTIPLIER_OVERRIDE !== null ) {
expMultiplier = Overrides . XP_MULTIPLIER_OVERRIDE ;
}
const pokemonExp = new Utils . NumberHolder ( expValue * expMultiplier ) ;
this . applyModifiers ( PokemonExpBoosterModifier , true , partyMember , pokemonExp ) ;
partyMemberExp . push ( Math . floor ( pokemonExp . value ) ) ;
}
if ( expBalanceModifier ) {
let totalLevel = 0 ;
let totalExp = 0 ;
expPartyMembers . forEach ( ( expPartyMember , epm ) = > {
totalExp += partyMemberExp [ epm ] ;
totalLevel += expPartyMember . level ;
} ) ;
const medianLevel = Math . floor ( totalLevel / expPartyMembers . length ) ;
const recipientExpPartyMemberIndexes : number [ ] = [ ] ;
expPartyMembers . forEach ( ( expPartyMember , epm ) = > {
if ( expPartyMember . level <= medianLevel ) {
recipientExpPartyMemberIndexes . push ( epm ) ;
}
} ) ;
const splitExp = Math . floor ( totalExp / recipientExpPartyMemberIndexes . length ) ;
expPartyMembers . forEach ( ( _partyMember , pm ) = > {
partyMemberExp [ pm ] = Phaser . Math . Linear ( partyMemberExp [ pm ] , recipientExpPartyMemberIndexes . indexOf ( pm ) > - 1 ? splitExp : 0 , 0.2 * expBalanceModifier . getStackCount ( ) ) ;
} ) ;
}
for ( let pm = 0 ; pm < expPartyMembers . length ; pm ++ ) {
const exp = partyMemberExp [ pm ] ;
if ( exp ) {
const partyMemberIndex = party . indexOf ( expPartyMembers [ pm ] ) ;
this . unshiftPhase ( expPartyMembers [ pm ] . isOnField ( ) ? new ExpPhase ( this , partyMemberIndex , exp ) : new ShowPartyExpBarPhase ( this , partyMemberIndex , exp ) ) ;
}
}
}
}
2024-09-22 18:53:18 +01:00
2024-09-24 18:15:18 +01:00
/ * *
* Determines whether a wave should randomly generate a { @linkcode MysteryEncounter } .
* Currently , the only modes that MEs are allowed in are Classic and Challenge .
* Additionally , MEs cannot spawn outside of waves 10 - 180 in those modes
*
* @param newBattleType
* @param waveIndex
* @param sessionDataEncounterType
* /
private isWaveMysteryEncounter ( newBattleType : BattleType , waveIndex : number , sessionDataEncounterType? : MysteryEncounterType ) : boolean {
2024-09-22 18:53:18 +01:00
const [ lowestMysteryEncounterWave , highestMysteryEncounterWave ] = this . gameMode . getMysteryEncounterLegalWaves ( ) ;
if ( this . gameMode . hasMysteryEncounters && newBattleType === BattleType . WILD && ! this . gameMode . isBoss ( waveIndex ) && waveIndex < highestMysteryEncounterWave && waveIndex > lowestMysteryEncounterWave ) {
// If ME type is already defined in session data, no need to roll RNG check
if ( ! isNullOrUndefined ( sessionDataEncounterType ) ) {
return true ;
}
// Base spawn weight is BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT/256, and increases by WEIGHT_INCREMENT_ON_SPAWN_MISS/256 for each missed attempt at spawning an encounter on a valid floor
const sessionEncounterRate = this . mysteryEncounterSaveData . encounterSpawnChance ;
const encounteredEvents = this . mysteryEncounterSaveData . encounteredEvents ;
// If total number of encounters is lower than expected for the run, slightly favor a new encounter spawn (reverse as well)
// Reduces occurrence of runs with total encounters significantly different from AVERAGE_ENCOUNTERS_PER_RUN_TARGET
const expectedEncountersByFloor = AVERAGE_ENCOUNTERS_PER_RUN_TARGET / ( highestMysteryEncounterWave - lowestMysteryEncounterWave ) * ( waveIndex - lowestMysteryEncounterWave ) ;
const currentRunDiffFromAvg = expectedEncountersByFloor - encounteredEvents . length ;
const favoredEncounterRate = sessionEncounterRate + currentRunDiffFromAvg * ANTI_VARIANCE_WEIGHT_MODIFIER ;
const successRate = isNullOrUndefined ( Overrides . MYSTERY_ENCOUNTER_RATE_OVERRIDE ) ? favoredEncounterRate : Overrides.MYSTERY_ENCOUNTER_RATE_OVERRIDE ! ;
// If the most recent ME was 3 or fewer waves ago, can never spawn a ME
const canSpawn = encounteredEvents . length === 0 || ( waveIndex - encounteredEvents [ encounteredEvents . length - 1 ] . waveIndex ) > 3 || ! isNullOrUndefined ( Overrides . MYSTERY_ENCOUNTER_RATE_OVERRIDE ) ;
if ( canSpawn ) {
let roll = MYSTERY_ENCOUNTER_SPAWN_MAX_WEIGHT ;
// Always rolls the check on the same offset to ensure no RNG changes from reloading session
this . executeWithSeedOffset ( ( ) = > {
roll = randSeedInt ( MYSTERY_ENCOUNTER_SPAWN_MAX_WEIGHT ) ;
} , waveIndex * 3 * 1000 ) ;
return roll < successRate ;
}
}
return false ;
}
2024-09-14 03:05:58 +01:00
/ * *
* Loads or generates a mystery encounter
* @param encounterType used to load session encounter when restarting game , etc .
* @returns
* /
getMysteryEncounter ( encounterType? : MysteryEncounterType ) : MysteryEncounter {
// Loading override or session encounter
let encounter : MysteryEncounter | null ;
2024-09-24 18:15:18 +01:00
if ( ! isNullOrUndefined ( Overrides . MYSTERY_ENCOUNTER_OVERRIDE ) && allMysteryEncounters . hasOwnProperty ( Overrides . MYSTERY_ENCOUNTER_OVERRIDE ) ) {
encounter = allMysteryEncounters [ Overrides . MYSTERY_ENCOUNTER_OVERRIDE ] ;
2024-09-14 03:05:58 +01:00
} else {
2024-09-24 18:15:18 +01:00
encounter = ! isNullOrUndefined ( encounterType ) ? allMysteryEncounters [ encounterType ] : null ;
2024-09-14 03:05:58 +01:00
}
// Check for queued encounters first
if ( ! encounter && this . mysteryEncounterSaveData ? . queuedEncounters && this . mysteryEncounterSaveData . queuedEncounters . length > 0 ) {
let i = 0 ;
while ( i < this . mysteryEncounterSaveData . queuedEncounters . length && ! ! encounter ) {
const candidate = this . mysteryEncounterSaveData . queuedEncounters [ i ] ;
const forcedChance = candidate . spawnPercent ;
if ( Utils . randSeedInt ( 100 ) < forcedChance ) {
encounter = allMysteryEncounters [ candidate . type ] ;
}
i ++ ;
}
}
if ( encounter ) {
encounter = new MysteryEncounter ( encounter ) ;
encounter . populateDialogueTokensFromRequirements ( this ) ;
return encounter ;
}
// See Enum values for base tier weights
const tierWeights = [ MysteryEncounterTier . COMMON , MysteryEncounterTier . GREAT , MysteryEncounterTier . ULTRA , MysteryEncounterTier . ROGUE ] ;
// Adjust tier weights by previously encountered events to lower odds of only Common/Great in run
this . mysteryEncounterSaveData . encounteredEvents . forEach ( seenEncounterData = > {
if ( seenEncounterData . tier === MysteryEncounterTier . COMMON ) {
tierWeights [ 0 ] = tierWeights [ 0 ] - 6 ;
} else if ( seenEncounterData . tier === MysteryEncounterTier . GREAT ) {
tierWeights [ 1 ] = tierWeights [ 1 ] - 4 ;
}
} ) ;
const totalWeight = tierWeights . reduce ( ( a , b ) = > a + b ) ;
const tierValue = Utils . randSeedInt ( totalWeight ) ;
const commonThreshold = totalWeight - tierWeights [ 0 ] ;
const greatThreshold = totalWeight - tierWeights [ 0 ] - tierWeights [ 1 ] ;
const ultraThreshold = totalWeight - tierWeights [ 0 ] - tierWeights [ 1 ] - tierWeights [ 2 ] ;
let tier : MysteryEncounterTier | null = tierValue > commonThreshold ? MysteryEncounterTier.COMMON : tierValue > greatThreshold ? MysteryEncounterTier.GREAT : tierValue > ultraThreshold ? MysteryEncounterTier.ULTRA : MysteryEncounterTier.ROGUE ;
if ( ! isNullOrUndefined ( Overrides . MYSTERY_ENCOUNTER_TIER_OVERRIDE ) ) {
2024-09-24 18:15:18 +01:00
tier = Overrides . MYSTERY_ENCOUNTER_TIER_OVERRIDE ;
2024-09-14 03:05:58 +01:00
}
let availableEncounters : MysteryEncounter [ ] = [ ] ;
// New encounter should never be the same as the most recent encounter
const previousEncounter = this . mysteryEncounterSaveData . encounteredEvents . length > 0 ? this . mysteryEncounterSaveData . encounteredEvents [ this . mysteryEncounterSaveData . encounteredEvents . length - 1 ] . type : null ;
const biomeMysteryEncounters = mysteryEncountersByBiome . get ( this . arena . biomeType ) ? ? [ ] ;
// If no valid encounters exist at tier, checks next tier down, continuing until there are some encounters available
while ( availableEncounters . length === 0 && tier !== null ) {
availableEncounters = biomeMysteryEncounters
. filter ( ( encounterType ) = > {
const encounterCandidate = allMysteryEncounters [ encounterType ] ;
if ( ! encounterCandidate ) {
return false ;
}
if ( encounterCandidate . encounterTier !== tier ) { // Encounter is in tier
return false ;
}
2024-09-22 04:47:32 +01:00
const disallowedGameModes = encounterCandidate . disallowedGameModes ;
if ( disallowedGameModes && disallowedGameModes . length > 0
&& disallowedGameModes . includes ( this . gameMode . modeId ) ) { // Encounter is enabled for game mode
2024-09-14 03:05:58 +01:00
return false ;
}
2024-09-22 04:47:32 +01:00
if ( this . gameMode . modeId === GameModes . CHALLENGE ) { // Encounter is enabled for challenges
const disallowedChallenges = encounterCandidate . disallowedChallenges ;
if ( disallowedChallenges && disallowedChallenges . length > 0 && this . gameMode . challenges . some ( challenge = > disallowedChallenges . includes ( challenge . id ) ) ) {
return false ;
}
}
2024-09-14 03:05:58 +01:00
if ( ! encounterCandidate . meetsRequirements ( this ) ) { // Meets encounter requirements
return false ;
}
if ( previousEncounter !== null && encounterType === previousEncounter ) { // Previous encounter was not this one
return false ;
}
if ( this . mysteryEncounterSaveData . encounteredEvents . length > 0 && // Encounter has not exceeded max allowed encounters
( encounterCandidate . maxAllowedEncounters && encounterCandidate . maxAllowedEncounters > 0 )
&& this . mysteryEncounterSaveData . encounteredEvents . filter ( e = > e . type === encounterType ) . length >= encounterCandidate . maxAllowedEncounters ) {
return false ;
}
return true ;
} )
. map ( ( m ) = > ( allMysteryEncounters [ m ] ) ) ;
// Decrement tier
if ( tier === MysteryEncounterTier . ROGUE ) {
tier = MysteryEncounterTier . ULTRA ;
} else if ( tier === MysteryEncounterTier . ULTRA ) {
tier = MysteryEncounterTier . GREAT ;
} else if ( tier === MysteryEncounterTier . GREAT ) {
tier = MysteryEncounterTier . COMMON ;
} else {
tier = null ; // Ends loop
}
}
// If absolutely no encounters are available, spawn 0th encounter
if ( availableEncounters . length === 0 ) {
console . log ( "No Mystery Encounters found, falling back to Mysterious Challengers." ) ;
return allMysteryEncounters [ MysteryEncounterType . MYSTERIOUS_CHALLENGERS ] ;
}
encounter = availableEncounters [ Utils . randSeedInt ( availableEncounters . length ) ] ;
// New encounter object to not dirty flags
encounter = new MysteryEncounter ( encounter ) ;
encounter . populateDialogueTokensFromRequirements ( this ) ;
return encounter ;
}
2024-05-23 16:03:10 +01:00
}