Commit Graph

34 Commits

Author SHA1 Message Date
Xavion3 696ff6eae3
Add Challenges (#1459)
* Initial challenge framework

* Add type localisation

* Change how challenges are tracked

Also fixes the difficulty total text

* MVP

Renames challenge types, temporarily hides difficulty, and implements challenge saving.

* Attempt to fix one legal pokemon in a double battle

* Make monotype ignore type changing effects

* Make isOfType correctly detect normal types

* Try to fix double battles again

* Make challenge function more like classic

* Add helper function for fainted or not allowed

* Add framework for fresh start challenge and improve comments

* Try to fix evolution issues

* Make form changing items only usable from rewards screen

* Update localisation

* Additional localisation change

* Add achievements for completing challenges

* Fix initialisation bug with challenge achievements

* Add support for gamemode specific fixed battles

Also make monogen challenges face the e4 of their generation

* Add better support for mobile in challenges

* Localise illegal evolution/form change message

* Update achievement names

* Make alternate forms count for monogen

* Update monotype achievement icons

* Add more comments

* Improve comments

* Fix mid battle form changes

* Reorder mode list

* Remove currently unused localisation entry

* Add type overrides for monotype challenges

Meloetta always counts for psychic and castform always counts for normal

* Change how form changes are handled

Now attempts a switch at the start of each turn instead of immediately

* Add start button to challenge select screen

* Make starter select back out to challenge screen if using challenges

* Fix daily runs

* Update tests to new game mode logic
2024-06-08 01:07:23 -04:00
Greenlamp2 e2be6ba002
added rule no-trailing-spaces (#1307) 2024-05-23 18:45:04 -05: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
Surinam b8dff030aa
Weather & evolution i18n with french translations (#380)
Co-authored-by: Marius MICHAUD <marius@lacomstore.com>
2024-05-15 12:31:18 -05:00
Flashfyre f5cd99f091 Fix evolution and hatch screen not applying shader pipeline 2024-04-21 18:22:33 -04:00
Flashfyre 706a85ed5b Add missing pipeline data for shiny recolors in certain screens 2024-04-19 23:37:23 -04:00
Flashfyre b3e6f26afe Properly implement Last Resort 2024-03-21 23:05:47 -04:00
Flashfyre 32f4d69041 Wild spliced Pokemon generate shared movesets 2024-03-01 16:21:28 -05:00
Flashfyre f48464d48d Minor refactoring 2024-02-29 20:08:58 -05:00
Flashfyre 12b1d23110 Replaces instances of SpeciesEvolution with SpeciesFormEvolution 2024-02-26 13:50:55 -05:00
Flashfyre 4e93f1e52c Display enemy trainer briefly when switching 2024-02-22 00:00:51 -05:00
Flashfyre dadc08d16e Add Terestallization mechanics
Add Terestallization mechanics; implement Stellar type; fix bug with held item weights
2024-02-17 00:40:03 -05:00
Flashfyre 6084d3aaa6 Add form change system 2024-01-09 23:34:43 -05:00
Flashfyre a2fbb91a77 Fix applying time tint to Pokemon when evolving 2024-01-07 23:58:36 -05:00
Flashfyre 9037562c5c Add Pokeball release animations and Fairy Feather item 2024-01-04 23:57:21 -05:00
Flashfyre 60260faaa4 Ignore time of day tint on Pokemon sprites in UI 2023-12-30 15:44:20 -05:00
Flashfyre 5ef6f2da88 Add day/night cycle 2023-12-29 21:04:40 -05:00
Flashfyre dad6401f67 Add evolution pausing and fix visual bug with evolution scene 2023-12-14 12:55:11 -05:00
Flashfyre 1a4d51d060 Add evolution cancelling 2023-12-14 11:54:56 -05:00
Flashfyre 79a2f4637c Add logic for evolution-only moves 2023-12-09 10:03:36 -05:00
Flashfyre 70827420cd Implement mega evolutions 2023-12-07 17:43:56 -05:00
Flashfyre e5fe0c6e3a Add transform support to fusion palette swaps 2023-11-24 15:12:26 -05:00
Flashfyre 3b72878e47 Fix fusion palette swaps not showing on evolution screen 2023-11-24 09:19:18 -05:00
Flashfyre 634d93b989 Fix playing evolution BGM twice 2023-10-26 19:31:08 -04:00
Flashfyre d3f55ad4ae Add game settings 2023-10-26 16:33:59 -04:00
Flashfyre 23a21af173 Update Vite and add sound for item rewards 2023-10-25 23:15:54 -04:00
Flashfyre 96a15ccb0d Adjust game volume 2023-10-21 08:58:39 -04:00
Flashfyre 0cc87b4ba0 Add sprite shadows and update engine 2023-06-04 21:47:43 -04:00
Samuel H b9f7ba173d
Implement Double Battles (#1)
* Add WiP logic for double battles

* Minor changes for double battles

* More fixes for double battles

* Show battle info for both in double battles

* Improvements to double battles

* Add double battle version of party UI

* Fix some issues with double battles

* Updates to double battles

* More work on double battles for stability

* Fix issues with ability bar and evolution screen

* Add chance for double battles
2023-05-18 11:11:06 -04:00
Flashfyre 842ea5af40 Initially lock Mini Black Hole item 2023-04-29 01:40:24 -04:00
Flashfyre db31f961ad Add fade back to starter select on game over 2023-04-21 22:59:09 -04:00
Flashfyre 3546f3b5a7 Refactor source files and add berries 2023-04-20 15:46:05 -04:00
Flashfyre 3723e25682 Fix import issues with battle phase 2023-04-10 14:12:01 -04:00
Flashfyre 5b097b347b Finish evolution logic and sequence 2023-04-10 13:54:06 -04:00