Commit Graph

2370 Commits

Author SHA1 Message Date
Frederico Santos
ef28e75b39
hotfix for alder bgm on double battle (#1368) 2024-05-25 09:20:27 -05:00
Jakub Hanko
caeb22c26b
Implement Honey Gather (#1360)
* Implement Honey Gather

* Updated Ability Description

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 08:01:08 -05:00
Jannik Tappert
aaa96ebe0e
Adding the option to have named trainers be able to have a double battle together (#1318)
* WIP: Adding the option to have named trainers be able to have a double battle together

* The team generation now works.
Also changed it so the special pools are now seperatly defined so we can access it for the team generation of the doubles.

They will happen at a 33% chance.

TODO: Option for seperate double dialogue (because for example the dialogue for tate and liza dont make sense since they reference their other sibling not beeing there...)

* Obviously didnt mean to push changes to battle.ts... (I made this change for a test)

* The doubles now have victory and encounter dialogue (the dialogue itself isnt THAT good since english isnt my first language)

* Changed signatureSpecies for the new galar elite 4

* Added Marnie & Piers as a double

* ESLint

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 07:47:18 -05:00
Tempoanon
49c365f154
Make iv scanner check against baby form IVs (#1214) 2024-05-25 06:47:26 -05:00
Jannik Tappert
b524be1db1
Issue #1118 Added Galar Elite 4 (#1246)
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 06:38:59 -05:00
td76099
c4c4774528
Beat Up checks the user's party instead of always checking player's party (#1268) 2024-05-25 06:31:04 -05:00
innerthunder
4ffff8e1ee
Implement Quick Guard and other conditional team protection moves (#1275)
* Implement conditional protection arena tag

Affected moves:
- Quick Guard
- Wide Guard
- Mat Block
- Crafty Shield
- Feint (updated)

* Add support for moves that ignore Protect to conditional protection moves

* Comments for protect arena tags

* ESLint

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 06:22:10 -05:00
ReneGV
5c327e347a
Implement Purify (#1291)
* Implement purify

* Code review fixes

* Remove vitest import

* Update status-effect.ts

* Update status-effect.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 06:01:23 -05:00
神龟
79f69ddfe0
Update move.ts (#1359) 2024-05-25 05:43:42 -05:00
LaukkaE
0da469d7a3
Fix Wind Rider (#607)
Fix Wind Rider
2024-05-25 05:32:32 -05:00
arColm
ae2928e1c9
Implement Poison Puppeteer (#320)
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 04:51:36 -05:00
Franck TROUILLEZ
37ebbd28d5
Apply offset to baseY as well during Pokemon#setMini (#1357)
This fixes an issue where this.baseY and this.y were not sync anymore, leading to unexpected behavior while using both values, especially during the selectTargetPhase, where the UI was not working for the first player pokemon.
2024-05-25 04:45:47 -05:00
Tempoanon
d71451fc23
Players win if classic and past floor 200 (#1348)
* Players win if classic and past floor 200

* isClassic

* no need to handle game over twice
2024-05-25 04:36:30 -05:00
Jannik Tappert
34474fb10e
German Loc for the menu.ts change (#1354) 2024-05-25 04:36:14 -05:00
YounesM
4277439a2d
Implemented Dancer Ability (#590)
* implemented Dancer Ability

* corrected target selection for double battles, improved ability detection

* Added TSDoc

* Enhanced TSDoc

* Corrected dancing StatusMove triggering

* Linter corrections
2024-05-24 23:00:58 -05:00
SnowCharm
5f7c593365
Update zh_CN ability.ts and move.ts (#1350)
* fix translation error in zh_CN ability.ts

* add translation for Zippy Zap

* fix translation to keep up with the current impl
2024-05-24 23:46:16 -04:00
Matthew Olker
1e283afc84 fix anmation duplicate warnings 2024-05-24 22:57:47 -04:00
Benjamin Odom
32fadf8cb6
Update menu.ts (#1349) 2024-05-24 21:46:21 -04:00
Matthew Olker
840ac9f53f fix single pokemon run away in double battle 2024-05-24 21:16:27 -04:00
Matthew
623c05a3df
update running away in double battles for real this time (#1345) 2024-05-24 19:39:58 -05:00
zaccie
564add66d2
Changing Biome Text Colour (#1346)
On light coloured biomes this change should be similar readability
In darker biomes it's has much easier readability
+ now becomes more consistent colour with the rest of the game text which just looks better imo
2024-05-24 20:31:33 -04:00
Tempoanon
dc828c6801
Revert "Update running away in Double Battles (#1336)" (#1342)
This reverts commit 5e7a9b0872.
2024-05-25 09:54:46 +10:00
Matthew
5e7a9b0872
Update running away in Double Battles (#1336)
* Add check for active pokemon and double battle with 1 active

* remove unecessary case
2024-05-24 19:46:52 -04:00
Benjamin Odom
416d666b30
Update Biome Text Labels and Variable Name (#1340)
* Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object.

* Revert "Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object."

This reverts commit 0f87000aa4.

* Reverted changes, added biome text to line one and renamed wavecounttext to a more standard name.

* Update battle-scene.ts

* Update Formatting

* Update Enums

* Revert

* Update overrides.ts

* Update battle-scene.ts

---------

Co-authored-by: Jon Studders <jonstudders1@gmail.com>
2024-05-24 18:43:38 -05:00
Nicholas Galauxy
815b37d23c
Convert reconnect method to exponential backoff timeout (#1293)
* Convert reconnect method to exponential backoff timeout

* Reset to the starting duration after getting a response

* Fix broken scope enclosures
2024-05-24 17:57:49 -05:00
Jon Studders
c8b77cffc1
Added current biome text (#915)
* Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object.

* Revert "Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object."

This reverts commit 0f87000aa4.

* Reverted changes, added biome text to line one and renamed wavecounttext to a more standard name.

* Update battle-scene.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-24 18:36:02 -04:00
Greenlamp2
410b33a44f
Merge pull request #1338 from bennybroseph/MoveUsedEvent-Add
Add MoveUsedEvent to Listen For When a Move Gets Used
2024-05-25 00:20:12 +02:00
Benjamin Odom
3985c63dad Update battle-scene.ts 2024-05-24 17:03:49 -05:00
Benjamin Odom
74bf42b4b7 Let's try this again 2024-05-24 17:01:47 -05:00
Matthew Olker
751a3d1e49 add names to battle info ui objects and solve key already exists warning for starter select 2024-05-24 17:23:49 -04:00
Jon Studders
d01cd98d06
Fixed champion ribbon boss segments. (#1334) 2024-05-24 16:07:57 -05:00
Douglas Marchione de Souza
0d6145263f
Acrobatics does not treat vitamins as held items (#718)
* Changed the move Acrobatics so it doesn't include
non-held items on it's damage calculations

* Changed exception so it includes within_party
items, and updated the move description

* Small typo e_e'

* Change Description of Move

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-24 15:49:23 -05:00
LaukkaE
0309fde7e8
Fix Aftermath not working (#1209) 2024-05-24 15:35:45 -05:00
Jakub Hanko
a48ba9864d
Implement Destiny Bond move (#1104)
* Use getBattleStat instead of getStat in BattleStatRatioPowerAttr

* Change unnecessary let into const

* Refactor BattleStatRatioPowerAttr into two distinct classes

* Add TSDoc for the new classes

* Implementation of Destiny Bond

* Add TSDocs

* Make the move fail in boss battles

* Fix boss immunity and ally fainting

* Update docs

* Add doc of return value of tag lapse

* Fix ESLint
2024-05-24 15:23:23 -05:00
Greenlamp2
136fcbfda8
init dialog call in the loading-scene (#1331) 2024-05-24 15:08:18 -05:00
Jon Studders
3670574342
Added a champion ribbon on enemy pokemon if they have a classic win. (#881)
* Added a champion ribbon on enemy pokemon if they have a classic win.

* Refactored to check for other non-root starterDex entities.

* Check for caughtIcon, if false then move ribbon to the left.

* Fixed Merge.

* Bit of refactoring, added check for classic mode.

* Removed random newline and removed unused import.

* Removed overlapping ribbon.
2024-05-24 15:57:02 -04:00
Madmadness65
41751ab8df Update encounter levels for some Pokémon
When the wild evolution delays were updated, the biomes file wasn't updated to match, so that has been fixed.
Additionally, the previous refactor removed the commented-out outputPools function. It is where it is because it allows for easily filling out the biomes file for an update.
2024-05-24 14:48:24 -05:00
Greenlamp2
c1a7df913a
refactor executed code while importing and initializing all of these in loading-scene (#1125) 2024-05-24 13:46:30 -04:00
神龟
a9af2bd6ff
Update pokemon.ts (#1297) 2024-05-24 11:15:11 -05:00
神龟
34e9236874
Make zh_CN translation easier to understand (#1292)
* Update modifier-type.ts

* Update menu.ts

* Update tutorial.ts
2024-05-24 11:13:51 -05:00
GhostFlys
6168b77761
Update Chinese battle.ts and egg-list-ui-handler.ts (#1314)
* Update battle.ts

update some lines of translation
make some translation more official

* Update egg-list-ui-handler.ts

make text position more accurate
2024-05-24 10:25:57 -05:00
Greenlamp2
622885767d
Enforce Consistent Spacing with ESLint's space-before-blocks and keyword-spacing Rules (#1308)
* added rule no-trailing-spaces

* added rule space-before-block

* added rule keyword spacing
2024-05-23 19:19:20 -05:00
Greenlamp2
e2be6ba002
added rule no-trailing-spaces (#1307) 2024-05-23 18:45:04 -05:00
Franck TROUILLEZ
68e94845ab
Add BattleInfo to TargetSelectUiHandler to move when target selected (#1255)
This change allows to move the box containing the battle info of the ennemy pokemons during double battle when the user has to choose a target. In addition to the pokemon opacity constantly changing, the battle info will also move up and down to indicate which Pokemon is targeted.

It exposes the BattleInfo object from the Pokemon object through an accessor method.
2024-05-23 18:28:53 -04:00
Benjamin Odom
c2bc94a5f3
Increases the Amount of Time Until a Reconnect up to a Maximum (#1295)
* Update unavailable-modal-ui-handler.ts

* Update unavailable-modal-ui-handler.ts

* Update unavailable-modal-ui-handler.ts
2024-05-23 16:19:36 -05:00
Greenlamp2
c86a51ba89
prevent opening the menu on confirm dialog + fix config error message on crash (#1278) 2024-05-23 13:26:12 -05:00
Lugiad
79af115278
Few new lines up to be localized from in battle.ts locales (#1144)
* Update phases.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update phases.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update battle.ts

* Update phases.ts
2024-05-23 13:22:09 -05:00
Matthew
f7a7b23dd1
Update README and package, re-add money formatter (#1286) 2024-05-23 12:29:18 -04:00
Greenlamp2
bac6c22973
ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224)
* eslint config + packages

* updated eslint config

* fix the issue eslint adding ;;;; at interfaces

* first round with eslint --fix .

* removed config for unused export

* Revert "first round with eslint --fix ."

This reverts commit 77a88e0895.

* removed config for camelCase

* for real this time, first round of eslint --fix .

* halfway to manual eslint fix

* eslint done

* added "how to setup" the hook to eslint --fix each new file before commit (if wanted)

* removed eslintrc config file duplicat

* fix human error + ignore build folder + merge overrides

* added curly brace style + eslint

* applied double quote linter rule

* added lefthook

* test precommit

* test precommit

* test precommit

* test precommit

* test precommit

* test precommit

* test precommit

* github action to run eslint

* added node_modules to ignore eslint

* different action for typescript

* no need for different glob (default src)

* node 20

* node 20

* removed no longer needed install file

* remove hooks part from README

* eslint fixes

---------

Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
2024-05-23 11:03:10 -04:00
iv
2240e09406
zh_tw localization (#1279)
* zh_tw translation

* update translation to newer version

* follow file naming convention
2024-05-23 07:01:22 -05:00
Vance Ehrlich
45415a87bb
Disable tera-blast to prevent its use while there is not an animation (#1270)
* Disable tera-blast to prevent its use while there is not an animation

* Update TERA_BLAST to be unimplemented rather than partial
2024-05-22 23:37:23 -05:00
damocleas
8cd166536a
Egg-move changes for 8 pokemon (#1262)
Ekans
Nidoran F
Zubat
Spinarak
Pyukumuku
Cosmog
Nacli
Flittle
2024-05-22 19:08:26 -05:00
Tempoanon
8b4aa872d9
Update wrong Italian ability localizations and berry pouch (#1259) 2024-05-22 18:38:00 -05:00
Dmitriy K
a601d4d39e
hotfix creating berry with undefined type (#1260) 2024-05-22 18:34:49 -05:00
Blitzy
6c824d8894
Give Certain Starters a Reliable Level 1 Damaging Move (#1250)
* Give certain Pokemon who start without a damage dealing move a Level 1 option.

A simple QOL change to certain Pokemon who otherwise didn't start with any sort of damage dealing move, or started out with unreliable moves that made the first biome a chore to get through such as Wrap/Bind or Astonish/Flail. The move choices were simply to help early game for these Pokemon and majority of these moves were moves the Pokemon had access to at some point save for some special cases. The following Pokemon were affected: Abra, Gastly, Lickitung, Dunsparce, Slugma, Wailmer, Spoink, Shuppet, Duskull, Burmy, Chingling, Bonsly, Carnivine, Giratina, Darkrai, Throh, Vanillite, Pumpkaboo, Bounsweet, Pyukumuku, Cosmog, Magearna, Applin, Sinistea, Poltchageist.

* Give certain Pokemon a level 1 damage dealing move

* Added Formatting to indicate what is custom, changed Spoink to pull from Confusion 2 levels earlier
2024-05-22 16:36:57 -05:00
Jannik Tappert
e66d7026d5
Added German Localization to Voucher.ts (#1249) 2024-05-22 14:40:53 -05:00
nedpfeiffer
b72b432ce3
Spanish translations (#1084)
* spanish translations

* shortened translation
2024-05-22 13:01:29 -05:00
Matthew Olker
99557b318f Merge branch 'main' of https://github.com/pagefaultgames/pokerogue 2024-05-22 11:06:49 -04:00
Matthew Olker
aed9b56a7b Add helper functions to game mode 2024-05-22 11:06:24 -04:00
Ethan
ecc17c5342
Fixes Issue #805, the TODO was for a bug and was fixed in Platinum (#1238) 2024-05-22 09:59:29 -05:00
Dmitriy K
cd7e818a01
Mostly implement the Harvest ability (#1081)
* add harvest ability, move berry phase before turn end phase

* readd removing berry from memory after harvest
2024-05-22 08:52:45 -04:00
Xavion3
7ae09a31a5
Hotfix Sucker Punch and Upper Hand AI (#1237) 2024-05-22 07:13:39 -05:00
Benjamin Odom
460e94725b
Fix Money Typo (#1234) 2024-05-22 01:50:14 -05:00
zaccie
b66a68a37b
Drop Shadow Fixes On Team Builder Screen (#1220)
* Drop Shadow Adjustments

Adding support for x,y axis on dropshadow and adjusting the values to be less bad

* Further Refined New Shadow Positons

- Reverted MOVE_INFO_CONTENT to the old default
- Slight adjustments to other values

* Fixed Broken Drop Shadows

Fixed a case where the dropshadow became worse

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-22 01:23:40 -05:00
Franck TROUILLEZ
7ac4900a3e
Allow to explicitly ignore faint phase when damaging. (#1182)
This allows to skip the faint phase in the `#damage` method for physical and special moves, to ensure we first queue the messages for the effectiveness of the attack and the potential critical hit.
We then explicitly unshift the faint phase in this case.
2024-05-22 01:01:16 -05:00
Frederico Santos
ae03b9cb20
Money with abbreviated form (#1222) 2024-05-22 00:54:44 -05:00
Ethan
c1c464b07a
Fixes Issue #1225: Scrafty line does not have Trailblaze in their TM learnset (#1228) 2024-05-22 00:33:49 -05:00
Madmadness65
25a792f080 Reduce wild evolution delay on some Pokémon
It was causing some Pokémon to be unevolved in later Classic mode trainer battles (notably the fifth and sixth rival fights). Lowering their evolution delay *should* mean they are fully evolved by these fights now.
2024-05-21 22:36:12 -05:00
td76099
fbd863a25c
Feature: Finish implementing Mind's Eye (#1060)
* Adds in the accuracy and evasion bypass for Mind's Eye

* Added comment to new IgnoreOpponentEvasionAbAttr class

* Added docs to apply so that it is actually complete
2024-05-21 23:11:42 -04:00
damocleas
879f009156
Quick-fix Egg Moves for Applin, Sableye, Pawmi, Nacli (#1226) 2024-05-21 19:50:06 -05:00
Madmadness65
3c8b4550b6 End shiny event
I hope everyone enjoyed the extended shiny event this weekend.
2024-05-21 18:58:48 -05:00
Madmadness65
bbfb4bb795 Fix Rayquaza's egg moves being reverted
It was an error from the document used.
2024-05-21 14:55:10 -05:00
Madmadness65
f1e622e4b9 Update egg moves
The newest batch of egg move changes.
2024-05-21 14:26:33 -05:00
zaccie
33f8365192
Drop Shadow Adjustments (#1197)
* Drop Shadow Adjustments

Adding support for x,y axis on dropshadow and adjusting the values to be less bad

* Further Refined New Shadow Positons

- Reverted MOVE_INFO_CONTENT to the old default
- Slight adjustments to other values
2024-05-21 10:00:33 -05:00
LaukkaE
8c01403630
tie event to UTC (#1203)
correct time
2024-05-21 09:38:07 -05:00
Jannik Tappert
5eb4077f13
Fixed german localization of bad dreams (#1206) 2024-05-21 09:33:54 -05:00
Lugiad
6405bcab87
Correction to French ability-trigger.ts (#1200) 2024-05-21 08:53:06 -05:00
Xavion3
3fd1ecf6a7
Update moveset logic to account for new sacrifice attr (#1192) 2024-05-21 02:40:53 -05:00
Sbug98
42e2be22bc
Implements bad dreams (#633)
* test commit

* de modified readme

* first implementation, needs testing with healer

* fixed beahviour if 2+ opponents are on field, also added message

* further fixed

* reset of overrides.ts before merge to main

* fixed grammar

Co-authored-by: Jonas Pinson <jonas.pinson@gmail.com>

* Implemented changes suggested by @bennybroseph and @TempsRay

* Added more docs to the class

* removed old comments

* fixed ability name in comments

* added translation and made message localized

* fixed ability name

* added missing bracket

---------

Co-authored-by: Jonas Pinson <jonas.pinson@gmail.com>
2024-05-21 02:26:01 -05:00
Jacob Knispel
6016ecfb46
Prevent Pokemon Info screen from being covered up (#1156)
* Move Pokemon info screen when confirming

Prevents the yes/no confirm menu from getting in the way when the Pokemon Info screen is open when catching a new Pokemon

* Greatly sped up makeRoomForConfirmUi()
2024-05-21 02:24:03 -05:00
0zuzu
67d5532d15
Check available Pkmn before asking to switch (#1194)
* Create Start Server.bat

idk anymore

* Update .gitignore

* Delete Start Server.bat

* Update .gitignore

* Update phases.ts

Check available party before asking to switch
2024-05-21 02:16:17 -05:00
Matthew Olker
70939bf89f Should fix black screen on load issue 2024-05-21 00:25:55 -04:00
Matthew Olker
e3a71cf171 Revert: Allow Roaming Gimmighoul to be caught 2024-05-20 23:51:16 -04:00
José Ricardo Fleury Oliveira
e97d79170d
added nonExplicitSupportedLngs (#1181) 2024-05-20 23:26:53 -04:00
Madmadness65
82be3daf9d Allow Roaming Gimmighoul to be caught 2024-05-20 22:12:07 -05:00
Matthew Olker
680eecc452 Fix incorrect passive costs 2024-05-20 21:40:56 -04:00
Greenlamp2
c454e2d232
Fix - shiny color swap (#1183)
* return a list of errors if something is wrong with the variant's sprite

* reformat

* added data in error message

* added read comfort + detection of missing json for existing variant

* fix an error of message display

* fix fetch color swap, missing a return
2024-05-20 19:17:21 -05:00
damocleas
0fd2dcf0aa
Update pokemon-species.ts (#1184)
Updated Starter Point Values for 6+ Cost mons
2024-05-20 19:15:09 -05:00
Matthew Olker
04045623a0 Update shiny event end to match discord announcement 2024-05-20 16:41:40 -04:00
Greenlamp2
136afa6b00
Tests - Check if something is wrong with the variant's sprite (#1175)
* return a list of errors if something is wrong with the variant's sprite

* reformat

* added data in error message

* added read comfort + detection of missing json for existing variant

* fix an error of message display
2024-05-20 14:40:40 -05:00
Greenlamp2
d2e455cdad
Tests - Check if something is wrong with the variant's sprite (#1162)
* return a list of errors if something is wrong with the variant's sprite

* reformat
2024-05-20 07:31:16 -05:00
JO
9493f59a4e
Complete Psychic Fangs TM list (#1161) 2024-05-20 07:30:45 -05:00
Benjamin Odom
f93f2bfca6
Reduce EXP Balance (#1128)
* Set max to 4
2024-05-20 19:06:20 +10:00
GhostFlys
60cbd636e6
update chinese conifg.ts and egg.ts (#1151)
* Update chinese config.ts

* Update chinese egg.ts
2024-05-20 02:18:01 -05:00
Madmadness65
2894c8bfc3 Revert "Update chinese config.ts (#1149)"
This reverts commit 8f8ee9127d.
2024-05-20 01:51:08 -05:00
GhostFlys
8f8ee9127d
Update chinese config.ts (#1149) 2024-05-20 01:44:00 -05:00
Matthew Olker
b95a59c094 setup more future language text configuration 2024-05-19 23:11:07 -04:00
Somod1
a32f61fbf7
update zh_CN voucher locales (#1145)
* Add files via upload

* Update zh_CN voucher locales
2024-05-19 22:05:14 -05:00
Matthew Olker
ca1ae4b556 cleanup language and candy in starter select ui handler 2024-05-19 21:40:58 -04:00
Adrian Torrano
3671fe4c2f
Prevent spamming of requests when going over scoreboard pages (#1130)
* prevent spamming of requests

* add documentations
2024-05-19 18:04:32 -05:00
arColm
80f6b62d1b
Implement Revival Blessing (#343) 2024-05-19 18:02:17 -05:00
rayanzmn
f1394307f4
Fixes recoil damage calculation (#1063)
Recoil damage previously used the total damage dealt by the user instead of using the damage dealt in the current turn.
2024-05-19 17:54:17 -05:00
arColm
f649179e24
Implement Grassy Glide (#272) 2024-05-19 17:52:51 -05:00
lucfd
9f699537bc
Implemented Bug Bite, Pluck, Teatime (#232)
* implemented pluck, bug bite

* steal blocked by sticky hold

* implemented teatime

* added stuff cheeks

* added berry pouch support

* fixed StealEatBerryAttr sometimes eating 2 stacks of a berry

* added comments & documentation

* added more comments

* added comment on stuff cheeks condition

* fixed 0 stack berry modifier  not disappearing

* stuff cheeks bug fix

* fix leppa berry logic

* removed stuff cheeks
2024-05-19 17:47:30 -05:00
GhostFlys
a4f4a37e5c
add egg.ts (#1138) 2024-05-19 17:27:17 -05:00
Lugiad
7216990d87
Locales for Voucher names + Voucher rewards (#1137)
* Update voucher.ts

* Update vouchers-ui-handler.ts

* Update i18n.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2024-05-19 17:25:52 -05:00
Jannik Tappert
13f2cafe5e
Female Variant Trainer Class Names set explicitly in definition of trainer classes (#1126)
* Set the name for the ace trainer female class

* Wrote out the name for all females trainer classes explicitly so they are always used.

Also made some changes (added missing classes) to languages
2024-05-19 14:52:48 -05:00
Adrian Torrano
a561e41634
return boolean from changing locale (#848) 2024-05-19 13:25:24 -05:00
hayuna
840dba79cc
Implement Trump Card move (#816)
* Implement Trump Card move

* Add docs, rearrange order of conditions

* Add Pressure consequences

* Remove additional reducing PP if pressure

* Update comments to adjust ways of working
2024-05-19 13:17:58 -05:00
Jaime
df7cb209f7
Fix Curse targeting for non ghost types (#782) 2024-05-19 12:40:56 -05:00
Alvin Zou
661e37f54f
Add capability to view Pokemon Status screen when learning moves (#756) 2024-05-19 12:19:38 -05:00
td76099
1bc6fcf4de
Bugfix - Ghost types are no longer trapped by abilities like Shadow Tag or moves like Fire Spin (#731)
* Checks if Pokemon is Ghost type when determining if it is trapped

* Adding doc comments based on new standard

* Update ability.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-19 12:05:46 -05:00
Frederico Santos
3031cc1245
Implement Ball Fetch (#1129)
* Implemented Ball Fetch

* Added once per battle condition

* Ability only functions on player side

* Update ability.ts

---------

Co-authored-by: SamuelHudson <samuel.hudson2017@gmail.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-19 11:13:33 -05:00
ElMoustacho
932e6e39f9
Make status damage skip endure (#597)
* Make status damage skip endure

* Add a comment to justify arguments to damage method
2024-05-19 10:10:57 -05:00
Alvin Zou
608a968db4
Implement Beat Up (#593) 2024-05-19 09:22:37 -05:00
NxKarim
1ae5847e49
Implements Merciless (#440)
* Implemented Merciless

Attribute CritIfTargetIsPoisonedAbAttr
Fix BlockCritAbAttr

* Changed CritIfTargetPoisonedAbAttr to ConditionalCritAbAttr

Now any condition related to user, target or the move used can be applied to guarantee a critical hit.
2024-05-19 09:06:58 -05:00
Matt Ross
e8c1098b91
Mostly implements upper hand (#433) 2024-05-19 09:04:19 -05:00
lucfd
78c8e8164d
Implemented Terrain Pulse & Misty Explosion (#235)
* implemented Terrain Pulse

* type only changes when grounded

* Implement Misty Explosion

* fixed grounded check

* added tsdoc

* Update move.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-19 08:31:13 -05:00
Lugiad
48313e0c4d
Adjustments to French modifier-type.ts (#1117)
* Adjustments to French modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts
2024-05-19 08:08:19 -05:00
JO
5e9ded2b8e
Fix Close Combat TM for Granbull, Pignite, Emboar, and Scraggy (#1113) 2024-05-19 07:32:41 -05:00
Lugiad
d017198460
Font resize for French in starterInfoTextSize (#1110) 2024-05-19 07:28:18 -05:00
Jannik Tappert
e3b25a9fab
So currently if you meet someone with a title it only shows there nam… (#1055)
* So currently if you meet someone with a title it only shows there name and only then the title (not like trainer classes). So i wanted to change that

* The title is not set again to its own value. It is just got differenlty for the nametag (includeTitle true)

* Added the ; as well as some comments that are hopefully helpful for others (i am terrible at writing comments)

* Forgot getTitle for comments
2024-05-19 06:23:24 -05:00
Benjamin Odom
6dc10f549f
Fix Crashes when Sprites for Pokémon are missing (#1021)
* Fix Crashes when Sprites for Pokémon are missing

Fixes an issue where a missing sprite will cause the game to crash instead of using the base sprite or the Substitute sprite.

Failsafes were already in place to load these backups, this code just allows a graceful fail and a simple error message instead of a crash.

* Check Against OK status
2024-05-18 18:29:09 -05:00
Alessandro Bruzzese
8ccd8085db
Update Italian modifier-type.ts (#1094) 2024-05-18 09:56:20 -05:00
José Ricardo Fleury Oliveira
2682c2faa3
fix ptBR mint (#1092) 2024-05-18 09:55:31 -05:00
Jaime
344a17c8fc
Fix TM moves for Beldum line (#1090) 2024-05-18 09:53:18 -05:00
Rei1mu
ab64eb5d5b
update zh_CN translation (#1089) 2024-05-18 09:52:00 -05:00
Vaner42
49adedbc0f
Fixed the replace method that was not executed in check female version exists; And fixed pokefan key in localization; (#1086)
* Translate 'trainer' into  Simplified Chinese.

* fixed translate 'hau'、 ‘diantha’ 、‘leon’ into Simplified Chinese.

* Fixed the replace method that was not executed in check female version exists; And fixed pokefan key in localization;

---------

Co-authored-by: Junhan <junhan.wu@nexttao.com>
2024-05-18 09:47:59 -05:00
Micah Bradbury
27139c0d8c
Update confuse chance to modern value (#1085)
Changed from 1/2 to 1/3, as games after gen 5 use this value
2024-05-18 09:47:01 -05:00
rnicar245
56acd16456
summary-ui-handler stat text centered + summary_stats.png change (#1041) 2024-05-17 21:06:07 -05:00
Jannik Tappert
93dee06e21
Larry and Lance now only need one localization key for both of their positions (because i just use setName and now they use the same key). This does not affect their title (#1053) 2024-05-17 21:04:14 -05:00
Benjamin Odom
4a9664c04c
Fix Entry Hazard Miss (#984)
* Fix Entry Hazard Miss

Made Entry Hazards bypass the accuracy check as they cannot miss a target. There's still one more bug to fix with this but it requires way more code changes. This change needed to be done as well, so I'm getting it out early.

* Update move.ts
2024-05-17 21:20:02 -04:00
snnh
f3c4a3838b
Update and fix zh_CN translation (#1070)
* Update zh_CN translation

* fix zh_CN translation
2024-05-17 20:16:24 -05:00
Matthew Olker
5dd017fa30 Begin shiny weekend 2024-05-17 18:13:12 -04:00
Madmadness65
1f1c243415 Revert "Fix sparkly swirl cure status (#1051)"
This reverts commit 6bcf4e008a.
2024-05-17 15:37:34 -05:00
Charlie Giang
6bcf4e008a
Fix sparkly swirl cure status (#1051) 2024-05-17 15:03:55 -05:00
Somod1
fa6ab29946
Update zh_CN translation (#1047)
* Add files via upload

* Update zh-CN  translation

Adjusted some Chinese translations and added line breaks to some item descriptions in modifier-type.ts

* Add files via upload
2024-05-17 13:36:52 -05:00
Madmadness65
0a871fb0d0 Fix cut off dialogue for Morty 2024-05-17 12:41:16 -05:00
Benjamin Odom
6880c7afe0
Updated Logic when Animating Trainer Sprites (#1016)
Updated the check in place when attempting to play a trainer sprite. Separated it into a separate function to reduce reusing code and to make it easier to exit early when failures occur.
2024-05-17 12:37:38 -05:00
José Ricardo Fleury Oliveira
04a345a6cc
fixed master ball (#1043) 2024-05-17 12:19:38 -05:00
Alessandro Bruzzese
7935f28089
Update Italian battle.ts (#1042) 2024-05-17 12:18:03 -05:00
Alessandro Bruzzese
b55fb8db37
Update Italian battle-message-ui-handler.ts (#1040) 2024-05-17 12:02:51 -05:00
Alessandro Bruzzese
d2a8c4a150
Update Italian berry.ts (#1039) 2024-05-17 11:58:47 -05:00
Alessandro Bruzzese
a2299ee055
Update Italian trainers.ts (#1037) 2024-05-17 11:43:38 -05:00
José Ricardo Fleury Oliveira
8c21bdc0a1
New ptBR localization (#1028)
* Some translations (battle, modifier-type, trainer)

* More translations and fixes

* Minor fixes

* finished translations

* minor fix

* removed tera type
2024-05-17 10:39:13 -05:00
Jannik Tappert
09b820161f
Localized Weather, Berries and Splash Messages (#1034)
* Localized Weather, Berries and Splash Messages

* Berry messages are now correct
2024-05-17 10:21:11 -05:00
José Ricardo Fleury Oliveira
3cc9c93643
Type localization instead of TeraType (#981)
* Type localization, now type-boosting items descriptions are fully translated

* pokemon-stat refactoration

* reverted import changes
2024-05-17 09:43:11 -05:00
Brandon Rodgers
03c4b1b821
Update battler-tags.ts (#1030)
Corrected the TrappedTag class so no Ghosts can be trapped
Added special canAdd function to IngrainTag so all Ghosts can use Ingrain not just Trevenant and Phantump.
2024-05-17 08:49:04 -05:00
Calvin Keats
bfa12fd48d
Update ETHER and similar items to use total max PP instead of base PP (#1014) 2024-05-17 06:54:51 -05:00
William Burleson
10437142b6
Fix daily run freeze (#1025) 2024-05-17 05:51:48 -05:00
Tempoanon
edf3a6aa36
Fix tinted caught icon false positive (#892)
* Fix tinted caught icon false positive

* Remove unused import

* Rename and optimize

* Block comment

* use 3 equals
2024-05-17 05:28:22 -05:00
Calvin Keats
4362d49e6b
Use localization for damaging weather messages (#1017) 2024-05-17 05:25:21 -05:00
Somod1
0c660f599d
Add files via upload (#1022) 2024-05-17 05:23:44 -05:00
Lugiad
48c745deee
Update French trainers.ts (#1020) 2024-05-17 05:23:23 -05:00
Lugiad
b0fd32b1a4
Update French berry.ts (#1023) 2024-05-17 05:22:58 -05:00
Lugiad
96af567cd4
IV Scanner Results Translation (#990)
* Update battle-message-ui-handler.ts

* Update i18n.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update battle-message-ui-handler.ts

* German battle-message-ui-handler.ts

* Update config.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-17 05:21:35 -05:00
Laeticia PIERRE
a44c1587d4
Fix some fr (#1013)
* Fix some modifier-type fr

* Fix some trainers fr

* Fix DYNAMAX_BAND fr
2024-05-17 05:13:32 -05:00
FanHua
250142083a
Implements localization for BerryType (#1007) 2024-05-17 05:09:08 -05:00
Gerafique
61938869c1
Added German Translations for menu.ts (#960) 2024-05-17 04:56:11 -05:00
Jakub Hanko
b4f643f0fa
Use getBattleStat instead of getStat in BattleStatRatioPowerAttr (#742)
* Use getBattleStat instead of getStat in BattleStatRatioPowerAttr

* Change unnecessary let into const

* Refactor BattleStatRatioPowerAttr into two distinct classes

* Add TSDoc for the new classes
2024-05-17 01:42:43 -04:00
Benjamin Odom
0cd305d78a
Fix Trainer Localization Typos (#1010)
Took a look at some of the entries for trainers and adjusted accordingly. it looks like all of these trainer types were grabbed from an online source as a sort of future-proofing which is good, but resulted in some errors. Some of which have already been fixed, and some which are included here.

Also prevents an issue if there is a missing image and displays a warning in the console instead of a crash.
2024-05-17 00:01:35 -05:00
Flashfyre
f2dff2cd25 End card only shows in classic mode 2024-05-17 00:20:18 -04:00
Tempoanon
f2b5a1b6f4
Fix some Pokemon classifications (#857) 2024-05-16 22:11:53 -05:00
Charlie Giang
1bd3ec2fd6
Fix ingrain for Phantump and Trevenant (#856) (#998) 2024-05-16 22:09:40 -05:00
Vaner42
dd3d38b5d8
fixed translate 'hau'、 ‘diantha’ 、‘leon’ into Simplified Chinese. (#1009)
* Translate 'trainer' into  Simplified Chinese.

* fixed translate 'hau'、 ‘diantha’ 、‘leon’ into Simplified Chinese.

---------

Co-authored-by: Junhan <junhan.wu@nexttao.com>
2024-05-16 22:03:26 -05:00
Vaner42
e035e85811
Translate 'trainer' into Simplified Chinese. (#1006)
Co-authored-by: Junhan <junhan.wu@nexttao.com>
2024-05-16 21:42:12 -05:00
Flashfyre
7561521020 Add endings for classic mode 2024-05-16 21:41:38 -04:00
Madmadness65
71d9f11d94 Allow Dada Zarude to be encountered
Another cosmetic Pokémon form for a mythical is now available.
2024-05-16 20:19:16 -05:00
Lugiad
4d804d787c
Minor French modifier-type.ts edits (#1004)
* Minor correction French modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts
2024-05-16 20:14:09 -05:00
Lugiad
883524f441
Even more French typos in modifier-type.ts (#1002)
* Even more French typos in modifier-type.ts

* Update modifier-type.ts
2024-05-16 19:07:26 -05:00
Lugiad
45663ceae0
French typo corrections modifier-type.ts (#1001)
* French typo corrections modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts
2024-05-16 18:45:23 -05:00
Lugiad
78fffaad9d
French modifier-type.ts corrections and adjustments (#1000) 2024-05-16 18:31:09 -05:00
Matthew Olker
429e66357f fix splash message config 2024-05-16 19:13:52 -04:00
Lugiad
63e165d62a
Complete French translation modifier-type.ts (#999)
* Complete French translation modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts
2024-05-16 18:12:19 -05:00
José Ricardo Fleury Oliveira
3f571a366a
Organized localization configs (#976) 2024-05-16 17:52:01 -05:00
Flora
5406b68f9a
Added missing word (#997) 2024-05-16 17:35:51 -05:00
Matthew Olker
bd902f01a5 Re-order overrides 2024-05-16 18:19:32 -04:00
Laeticia PIERRE
d1431af65f
Fix zippyZap fr (#991) 2024-05-16 15:46:12 -05:00
Alessandro Bruzzese
192deae33e
Update italian modifier-type.ts (#989) 2024-05-16 15:39:09 -05:00
Lugiad
8a8a2e128a
Corrections to French ability.ts (#979) 2024-05-16 11:09:23 -05:00
Benjamin Odom
ff086ca492 Adjust all Existing Comments to Match
Adjusted all existing comments on move.ts to match
2024-05-16 08:38:27 -04:00
Lugiad
8d83417cee
Update French trainers.ts (#970) 2024-05-16 06:55:00 -05:00
Lugiad
2aa9180745
Update French battle.ts (#969) 2024-05-16 06:54:39 -05:00
Jannik Tappert
364b19df5d
Added localisation for workers class to all languages but german (whi… (#968)
* Added localisation for workers class to all languages but german (which already had it...)

* Added missing entries to fr and br.

Now they all have the same keys.
2024-05-16 06:33:21 -05:00
Lugiad
0e84313862
Update French trainers.ts (#965) 2024-05-16 06:11:00 -05:00
Jannik Tappert
55105bf79a
Fixes that brocks name is undefined (#967)
* Brock now has a name againg (we check if i18 is initialized before localising elite4,champs and gym leaders

* Removed console log
2024-05-16 06:10:20 -05:00
Jannik Tappert
f1e97f3b38
Added difference between the "x want to fight" for double and single battle since in some languages it needs to be (like german) (#966) 2024-05-16 06:09:12 -05:00
Jannik Tappert
7f003d46ca
Added all double battle names as trainer classes. And updated/corrected errors. (in all languages but german i used the english version) (#963)
Also fixed that the rival does not have localized name
2024-05-16 05:43:31 -05:00
Lugiad
2a15e090ce
Update French splash-messages.ts (#961) 2024-05-16 05:20:50 -05:00
Alessandro Bruzzese
5fe69fff9c
Update italian egg.ts (#958) 2024-05-16 04:19:10 -05:00
Alessandro Bruzzese
3f40225d4b
Update italian weather.ts (#956) 2024-05-16 04:14:21 -05:00
Jannik Tappert
35afbf6e44
Added german egg localization (#955)
* Added german egg localization

* Changed pull back to english since there isnt enough space for a german word that makes sense and most if not all german players understand "pull"

* This comma was too much
2024-05-16 04:13:57 -05:00
Alessandro Bruzzese
88fab1dc5f
Update italian menu (#954) 2024-05-16 04:13:27 -05:00
Gerafique
36d0243122
Update translations menu-ui-handler.ts (#946)
changed logout
added Save_and_quit message
2024-05-16 04:12:58 -05:00
mercurius-00
e5cd95859d
Chinese localization supplement and fixes (#945)
Co-authored-by: hjh <j1441257360@163.com>
2024-05-16 04:10:11 -05:00
Lugiad
41a0e90ab0
Minor Adjustment to French pokemon-stat.ts (#864) 2024-05-16 04:06:52 -05:00
Jannik Tappert
b06190c4e7
Issue #745 localized trainer names trainer classes and titles (#752)
* Issue #745 - Added the option to localize titles, trainer names (for important trainers like elite 4, champs etc) and trainer classes.

- Also i already did the whole localization for german (sorry thats the only language is speak other then english...)
- Also renamed the trainer Type "student" to school_kid (because there apparently really is a trainer class called student since the gen 9 dlc)
- And i changed it so it makes sure that i18 only gets initalized once (it may be needed to initalize it before the loading phase so the elite 4 titles etc can be localized)

* Issue #745 - Removed stuff that wasnt meant for this branch

* Translation of French trainers.ts

* Translation of French trainers.ts

* Translation of French trainers.ts

* Fixed spelling on german translation

* Fixed name of Hex Maniac

* ADded missing "," that were lost in the merge

* For Trainer Classes that have a female and male variant the correct name is now choosen. (If a language has both).

Also added a safety net that if the female version does not exist it uses the one without the suffix

* Reverting override.ts

* Added ptBR trainers.ts (thanks to zé ricardo on discord)

* Updates Pokefan to reflect the correct english spelling (in all languages that still have the english defaults)

* Updated Rich_kid trainer typ to named correctly as "Rich Boy" in english and all non yet localized languages

* Added that the title will get made lower case so the rival is correctly set

* Reverted a formatting change that i didnt make intentionally

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-05-16 04:05:25 -05:00
0xLondre$
1254ca5c4c
New spanish translations (#729)
* New spanish translations

* KO translation

* hitResultSuperEffective IX gen
2024-05-16 03:52:26 -05:00
Alessandro Bruzzese
8dce9fa2f9
Added splash messages literals for all languages (#600)
* Added splash messages literals for all languages

* Removed debug code + fixed function casing

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-16 03:37:40 -05:00
Valentin Porchet
975d1ed562
feat: added localisation for eggs and french translations (#403)
* feat: added localisation for eggs and french translations

* fixes on french translations after review

---------

Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-16 03:31:50 -05:00