Commit Graph

1991 Commits

Author SHA1 Message Date
Tempoanon d16cb1202f
Fix charge (#614)
* Fix charge

* Remove console logs
2024-05-08 23:37:50 -05:00
Reid McInroy c6749b1fb4
Update spacing of icons upon Name/Tera update (#655)
This change will update the relative position of the Tera, Splice, and Shiny icons when the Name or Tera Type updates. Fixes #618
2024-05-08 23:18:26 -05:00
Madmadness65 e39b157767 Make Simplified Chinese locale use zh_CN 2024-05-08 23:13:38 -05:00
Jane620 5992d9eb81
add simplifed chinese locale (#485)
* add chinese locale, but translation is not yet complete.

* Add chs and cht locale

* translate ability,move,pokeball,pokemon

* Add files via upload

* Add files via upload

* Update i18n.ts

* Delete src/locales/zh_cn directory

* Add files via upload

* Update settings.ts

* Delete src/locales/chs directory

* Add files via upload

* add tutorial

* fix conflict issue

* remove cht, due to chs is almost done by justhil

* remove duplicated setting

* spell correction

---------

Co-authored-by: ZXZhuang <2993968012@qq.com>
Co-authored-by: justhil <138752349+justhil@users.noreply.github.com>
Co-authored-by: Jianfeng 2. Wang (NSB) <jianfeng.2.wang@nokia-sbell.com>
2024-05-08 22:59:49 -05:00
alpaca 76ac86d2ae
Implements healer (#259)
* Implements healer

* adds an ally check to the condition

* done testing, changes chance back to 30%

* adds comment header for PostTurnResetStatusAbAttr

* adds override to resetStatus to not allow revive

* dont revive

* override revert
2024-05-08 20:21:55 -05:00
Lugiad 71e9d0c385
Fix French battle.ts (#663)
Fix after global edit to "notDisabled"
2024-05-08 20:00:38 -05:00
alpaca aeab9d78ec
Implements cursed body (#227)
* implements cursed body

* 30 percent chance to proc

* check if max

* removes unimplemented tag

* bypasses faint

* un-disable message specifies pokemon name

* adds prefix to un-disable message

* space issue
2024-05-08 19:25:16 -05:00
William Burleson 94da7838f8
fix offline imports (#659) 2024-05-08 18:14:09 -05:00
alpaca b5888b5472
Implements Cotton Down (#254)
* Implements Cotton Down

* activates on faint as well
2024-05-08 17:25:15 -05:00
Benjamin Odom ea5e535f9f
Fixed Failed Moves Not Using PP (#634)
Fixed an issue where if a move failed, it would not use power points.
2024-05-08 15:51:56 -05:00
Benjamin Odom 4509e08dc6
Renamed the Python Script File (#657)
Accidentally left out the 'c' in 'comments'
2024-05-08 15:50:31 -05:00
Flashfyre e993bf9945 Fix session slot always saving to first slot in offline mode 2024-05-08 16:36:44 -04:00
maru 3ec9081a77
Change titlestats update interval to 60 seconds 2024-05-08 15:47:03 -04:00
Elliott Simmonds cb24faa12e
Small fixes to burning bulwark and alluring voice (#651) 2024-05-08 13:39:22 -05:00
Madmadness65 8a35166988 Slightly adjust Recovery Tokens
Each individual token heals 1 percent less, but now stacks to 15 instead of 10, to maintain the current maximum of 30% recovered per turn.
The purpose of this change is to make the healing more gradual, and just generally less painful if you get multiple early on.
2024-05-08 12:38:31 -05:00
Lugiad 0af02210ee
Overflowing fix in French menu.ts (#648) 2024-05-08 12:36:09 -05:00
Akuma-Reiki ea1ed1352c
Hide Ribbons When Not Owned (#649)
* Candy/Ribbon UI Update

* Removes the overrides

No level 2000000000000000 runs for you

* checks for all root species

* Hide ribbon when not owned
2024-05-08 12:35:27 -05:00
Lugiad e93777e52a
Names of the languages in their respectives languages (#635)
* Names of the languages in their respectives languages in settings

* Names of the languages in their respectives languages
2024-05-08 12:08:34 -05:00
Akuma-Reiki 662319e9ac
Candy/Ribbon UI Improvement (#622)
* Candy/Ribbon UI Update

* Removes the overrides

No level 2000000000000000 runs for you

* checks for all root species
2024-05-08 12:01:05 -05:00
Gray b6692e42b2
Fix Flare Blitz in Gravity (#637)
This condition is out of place since Flare Blitz is not supposed to fail if used in Gravity.
2024-05-08 10:25:47 -05:00
Jeremy B bb28d3599e
fix scrappy and mindseye working as passive ability (#567)
* fix scrappy and mindseye working as passive ability

* update apply for ignoretypeimmunityabattr

* simplify logic for ignoretypeimmunityabattr

---------

Co-authored-by: contra1337 <jpbastyr@gmail.com>
2024-05-08 00:32:38 -05:00
Procyonae 118c57ba75
Add fell stingers effect (#202)
* Add Fell Stinger Effect

* Update src/phases.ts
2024-05-07 23:44:55 -05:00
Benjamin Odom bb6bb1e6c1
Fixed Crash Moves and Reckless (#609)
* Fixed Crash Moves and Reckless

Added a new MoveFlags flag 'RECKLESS_MOVE' to make crash and recoil moves in line with other move flag boosting attacks.

Modified how flags were defined so they are easier to maintain.

Added the appropriate flag to all mvoes listed as being affected by Reckless. Steel Beam and Mind Blown do not count according to source:
https://bulbapedia.bulbagarden.net/wiki/Reckless_(Ability)

* Update move.ts

* Update abilities.ts
2024-05-07 23:28:35 -05:00
Benjamin Odom ce3d12d58e
Added hyperlinks to Moves, Abilities, and Species enums (#586)
* Added hyperlinks to Moves enum

Yes, I'm aware of what this looks like in the file itself, but it enables a nice neat little hyperlink shown below to the bulbapedia page when you hover over a move. I feel like the added convenience is worth making the file harder to read considering nobody is ever going to touch that file anyway. I plan on adding a python script to finish the rest of them, but didn't want to actually sink time into this if we absolutely despise it.

* Added Python Script

Created a python script to add comments with a url to abilities.ts, moves.ts, and species.ts using regex
2024-05-07 23:18:19 -05:00
Madmadness65 1c9b65125d Fix Bouncy Bubble targeting & Hau encounter dialogue 2024-05-07 23:01:54 -05:00
Flashfyre 08067d9937 Revert "Revert API URL change"
This reverts commit 4ef6707333.
2024-05-07 16:16:22 -04:00
Benjamin Odom bd839a1ffb
FIx Sceptile and Blaziken Learnsets (#606)
These got missed in the transition from looking at Serebii and Bulbapedia for data.
2024-05-07 13:42:07 -05:00
Flashfyre 72b4552b01 Don't update user info on save for optimization 2024-05-07 13:36:52 -04:00
Tempoanon 4fcea107ab
Fix wrong stat displayed for mythicals hatched (#601) 2024-05-07 12:10:48 -05:00
Xavion3 cc3113ff43 Fix revive weight cap 2024-05-07 11:26:28 -04:00
Flashfyre 02b2c2d55b Ribbons are also awarded for first clear 2024-05-07 10:15:40 -04:00
Flashfyre b9ce5cfaaa Mints permanently unlock natures 2024-05-07 00:58:36 -04:00
Madmadness65 fd0f21943e Implement Supersweet Syrup ability
Uses the new once per battle condition.
2024-05-06 23:47:20 -05:00
alpaca 36cde21ce3
Adds ribbon in starter screen if mon has beat classic mode (#370)
* adds the ribbon asset, hooking it up

* works if override. need to add field on server side I imagine

* moves count to starterData, increments on win

* formatting

* increment works properly

* recursively check for prevolution

* cleaned up to use getRootSpeciesId()

* changes ribbon to gold medal version

* adds Akuma's ribbon achievements

* ribbons increment correctly

* missed ui handler update

* reorder achievements

* ribbon correct, vouchers not. currently investigating

* increments properly, but voucher reward phase not appearing

* some cleanup

* works great, need to better reflect who is getting ribbon in message and cry

* plays level fanfare, tabling cry for now

* reran items.bat

* Minor fixes

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-05-07 00:44:41 -04:00
Xavion3 2d740f1952 Implement once per battle restriction on abilities
Currently just Intrepid Sword and Dauntless Shield
2024-05-07 00:39:16 -04:00
kenniky 52b546c924
add hazard removal for Rapid Spin, Defog, Tidy Up, Mortal Spin (#248)
* add hazard removal for Rapid Spin, Defog, Tidy Up, Mortal Spin

* Updated templating and fixed some errors

support for either pokemon using it
added better templating

* revert logic, and remove partial tags

---------

Co-authored-by: kenwang <kenwang@umich.edu>
Co-authored-by: Gwen Valentine <gwenvalentine@starshine.dev>
2024-05-06 22:00:31 -05:00
Alvin Zou 0beb3a0f89
Show number of Pokeballs in inventory when selecting a pokeball in the reward phase (#573)
* Show number of Pokeballs in inventory when selecting a pokeball in the reward phase

* Address comments
2024-05-06 21:43:01 -05:00
Benjamin Odom f18ff5b6cc
Update Learnsets for Gen3 to Indigo Disk (#571)
* Updated Learnset of Gen1 to Indigo Disc

Not many changes here for how much time it takes to comb through, but here it is.

Only notable change is Power-Up Punch got removed this gen so it had to be removed from Hitmonchan's learnset. Are we okay with this change? If so, this is good to go for Gen 1.

* Updated Learnset of Gen2 to Indigo Disc

Notable changes:

Porygon 2 loses Magic Coat with no replacement.

Ho-oh loses Burn Up but gains Overheat.

The rest seems better or neutral.

* Update Learnsets for Gen3 to Indigo Disk

A good chunk of these changes is just reordering the moves to match bulbapedia so that it's easier to see what changed in the future. Otherwise, it's really just replacing moves that don't exist anymore.

Also, Zangoose got a ton of new moves that work with a move relearner, but not by level-up. Weird, but good if you like Zangoose.

* Fix Duplicates
2024-05-06 19:54:02 -05:00
Reldnahc 84f6f06ca4 add override to force double battles.
add override for passive abilities.
2024-05-06 19:11:34 -04:00
Bruzzi 582330df33 Update italian translation 2024-05-06 15:01:18 -04:00
Dakurei 4c39bf64c5 Fix overflowing fr locale 2024-05-06 15:01:00 -04:00
Matthew 674b2257be
I18n import cleanup (#562)
* config import change

* all other configs
2024-05-06 14:25:17 -04:00
Lugiad 009d538ac5
Update French starter-select-ui-handler.ts (#559) 2024-05-06 13:54:32 -04:00
ArceUseless bde7620ac0
New spanish translations and literals for all langs (#552)
* Spanish translations for intro messages and some menus. Added Empty (save file) to lang files

* Spanish translations + new literals in all langs

* Spanish translations, new literals for all langs (starter-select-ui-handler)

* Two translations

* Resolving accidental overwrite in french menu.ts

* New starter-select-ui-handler lang files for all langs

---------

Co-authored-by: rnicar <rj.nieto.car@gmail.com>
2024-05-06 12:02:45 -04:00
Tempoanon 78ae7c9f0a
Minor TM learn fixes and make glacial lance non contact (#553)
* Make curse target

* Minor TM learn set changes and make glacial lance non contact
2024-05-06 12:00:51 -04:00
Viet Nguyen f22c25d376
add unit test for util function padInt (#175)
Co-authored-by: Viet Nguyen <vietnguyen@Viets-MacBook-Air.local>
2024-05-07 01:30:23 +10:00
lucfd 80b6001c77
Implemented Revelation Dance (#166)
* implemented Revelation Dance

* fixed steam engine activating on all water moves

* implemented typeless

* stellar handling for revelation dance

* removed testing lines

* changed to UNKNOWN implementation

* removed UNKNOWN RGB

* removed print debug + unnecessary logic

* simplified test condition further
2024-05-06 10:24:37 -05:00
Lugiad e3c1d08b37 Update French battle.ts + typo 2024-05-06 09:37:55 -04:00
Matthew Ross f92b563baa Hunger switch shouldn't trigger if terastallized 2024-05-06 08:49:26 -04:00
gericocross 29b80dbed8
Fixed Grafaiai animation (#547)
* Longer descriptions don't stuck shorter ones anymore

* Fixed Grafaiai animation
2024-05-06 08:44:05 -04:00