Commit Graph

282 Commits

Author SHA1 Message Date
Nicholas Galauxy
93c91bf73a
Fix incorrectly unselectable starter formes (#1332)
* Fix incorrectly unselectable starter formes

* Fix linter issue that got merged upstream

* Remove battle-bond key from form key overrides based on feedback
2024-05-25 12:53:46 -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
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
Matthew Olker
70939bf89f Should fix black screen on load issue 2024-05-21 00:25:55 -04:00
Matthew Olker
680eecc452 Fix incorrect passive costs 2024-05-20 21:40:56 -04:00
Matthew Olker
b95a59c094 setup more future language text configuration 2024-05-19 23:11:07 -04:00
Matthew Olker
ca1ae4b556 cleanup language and candy in starter select ui handler 2024-05-19 21:40:58 -04:00
Lugiad
d017198460
Font resize for French in starterInfoTextSize (#1110) 2024-05-19 07:28:18 -05:00
Lugiad
afcffab90f
Added Gen names localizations in Starter Selection UI (+"Uncaught" translation in French) (#907)
* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Update starter-select-ui-handler.ts

* Update starter-select-ui-handler.ts

* Added Gen names localizations in Starter Selection UI

* Added Gen names localizations in Starter Selection UI

* Updated with recent pt BR edits
2024-05-15 10:57:48 -05:00
José Ricardo Fleury Oliveira
9b8af7ad71
Fixed the ptBR text in starter menu popping out of the info box... (#902)
* Fixes the ptBR text in starter menu popping out of the info box and added language personalization, changed some ptBR natures and ordered thw switch case in alphabetic order

* Small fix
2024-05-15 10:13:35 -05:00
José Ricardo Fleury Oliveira
74ee3329f8
Added "Uncaught" localization in Starter Selection UI (#831) 2024-05-13 18:02:44 -05:00
Matthew Olker
40993793cb Show default icon for missing starter icon 2024-05-13 14:23:34 -04:00
Madmadness65
34a4f86982 Add a couple starter select localization entries
The passive ability's "Locked" and "Disabled" strings can now be localized.
2024-05-13 12:50:56 -05:00
Jannik Tappert
e4d3f73dee
ToggleSize is now dependend on language + added some missing german translations (#797) 2024-05-13 11:06:26 -05:00
Matthew
e195c6d799
Show Default Pokemon icon for missing shiny icon (#802) 2024-05-13 06:41:02 +10:00
Benjamin Odom
512cc5b965
Fix Duplicate Egg Moves (#736)
Fixes an issue where egg moves could get duplicated onto a starter Pokémon's moveset.
2024-05-12 14:56:37 -04:00
ArceUseless
e9ca17c519
New growth rate lang files (#563)
* New growth rate lang files

* Update i18n.ts, fixing overwrite

* Added growth to lang conf files

---------

Co-authored-by: rnicar <rj.nieto.car@gmail.com>
2024-05-11 21:04:09 -05:00
Xavion3
802daecd65
Fix starters with multiple forms being unable to change move (#667) 2024-05-09 00:39:45 -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
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
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
Akuma-Reiki
b076dec346
Add Candy Progress UI to Starter Selecgt (#479)
Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-05-05 10:35:14 -04:00
Greenlamp2
d98f7733d4
Rework - Inputs management to include all gamepad mapping V2 (#429)
* rework of the input handling, including different gamepad and keyboard

* rework of the input handling, including different gamepad and keyboard

* first version of a too complex inputHandler based on phaser3-merged-input

* removed useless control management and kept it simple for our use case, investigating to put out button_XX()

* renamed inputHandler to inputController

* aggregate directions and some action into a same method + fix menu return value

* added back repeated input feature on keeping down a key

* cleanup + return type

* fix submit/action doing two things simultaneously, still same behaviour as before

* extracted UI inputs out of battle-scene

* tab -> spaces

* tab -> spaces what about now github ?

* tab -> spaces final (maybe)

* tried to fix the plugin loading issue on prod

* remove Plugins things as it's too uncertain how it works on prod

* seems old code source is indented with tab

* cleanup

* cleanup

* cleanup

* putting in an enum file the enum buttons

* fix repeating stats button + change message in event when the key is repeating

* added return type for ui-inputs

* added return type for inputs-controller

* adapted the code to integrate changes of bennybroseph
2024-05-05 10:30:00 -04:00
Benjamin Odom
b529eee5ac
Add Form Text to Starter UI (#446)
* Add Form Text to Starter UI

Adds text to the starter screen UI which indicates which Form you are currently selecting. This helps with Pokémon who don't have a sprite change for their form because it doesn't affect them until later.

* Make Title Case
2024-05-04 00:02:55 -04:00
ArceUseless
19e434929c
Spanish translations (#422)
* Spanish translations for intro messages and some menus. Added Empty (save file) to lang files

* Spanish translations + new literals in all langs

---------

Co-authored-by: rnicar <rj.nieto.car@gmail.com>
2024-05-03 17:52:09 -04:00
Flashfyre
9fc6bdde21 Revert "Rework - Inputs management to include all gamepad mapping (#390)"
This reverts commit 70324c4159.
2024-05-03 13:04:32 -04:00
Greenlamp2
70324c4159
Rework - Inputs management to include all gamepad mapping (#390)
* rework of the input handling, including different gamepad and keyboard

* rework of the input handling, including different gamepad and keyboard

* first version of a too complex inputHandler based on phaser3-merged-input

* removed useless control management and kept it simple for our use case, investigating to put out button_XX()

* renamed inputHandler to inputController

* aggregate directions and some action into a same method + fix menu return value

* added back repeated input feature on keeping down a key

* cleanup + return type

* fix submit/action doing two things simultaneously, still same behaviour as before

* extracted UI inputs out of battle-scene

* tab -> spaces

* tab -> spaces what about now github ?
2024-05-03 12:59:10 -04:00
Dakurei
36de62dc8a Fix Pokerus tutorial condition 2024-04-30 15:29:28 -04:00
Flashfyre
bf2a83993c Make luck independent from shininess and variant 2024-04-26 17:32:28 -04:00
Flashfyre
92caf6059b Fix ability color with duplicate ability as hidden 2024-04-23 12:37:26 -04:00
Flashfyre
5c367db8a3 Fix ability edge case when saving starter ability data 2024-04-19 11:01:22 -04:00
Flashfyre
ecedd81052 Fix not using selected starter ability 2024-04-19 08:40:49 -04:00
Flashfyre
eebe39e1fe Fix base forms showing as shiny 2024-04-18 23:10:18 -04:00
Flashfyre
89edcc38c6 Fix nature not setting properly 2024-04-18 23:06:05 -04:00
Flashfyre
c76f8c5e7e Add tiered shiny variants 2024-04-18 22:52:26 -04:00
Flashfyre
7155174d3c Patch a certain bug 2024-04-17 14:49:18 -04:00
Flashfyre
7275876120 Fix starter select issue with gender forms 2024-04-15 17:34:36 -04:00
Flashfyre
7e3ad88e4d Hide candies for evolved starters 2024-04-14 00:14:23 -04:00
shayebeadling
f068b53d44
Show icon in dex for HA mons, like shiny (#117)
* Show icon in dex for HA mons, like shiny

* Swaps the star with the HA capsule

* Removes the unwanted icon
2024-04-13 23:20:54 -04:00
Flashfyre
796f69daeb Lower candy costs for lower-cost starters 2024-04-13 20:41:51 -04:00
Flashfyre
000d31f663 Fix use candy menu showing up for evolved starters 2024-04-13 19:36:43 -04:00
Flashfyre
c369e9ed85 Change layering on certain starter select ui elements 2024-04-13 19:28:32 -04:00
Flashfyre
61ce0887ef Fix candy menu not showing for species with only 1 starter move 2024-04-13 19:21:59 -04:00
Flashfyre
608c024749 Fix crash on starter select when scrolling generations 2024-04-13 19:06:33 -04:00
Flashfyre
824a73ef71 Add candy system for passives and value reductions 2024-04-13 18:59:58 -04:00
Flashfyre
eaf993e76f Fix starter select types not respecting form 2024-04-11 19:10:56 -04:00
Flashfyre
1d0f04d629 Add type icons to starter select 2024-04-11 11:39:08 -04:00
Flashfyre
e672ead184 Indicate starters that exceed cost on starter select and show values for locked starters 2024-04-09 16:58:56 -04:00
Flashfyre
88de47d8d8 Fix starter moveset logic for starters with forms 2024-04-09 11:52:34 -04:00
Matthew Olker
b7130e28d9 Additional Move Change Fixes 2024-04-08 08:36:02 -04:00
Matthew Olker
8b382dd42e Fix Calyrex Rider uanble to change starter moves 2024-04-07 22:57:22 -04:00
Flashfyre
e747fa2ecd Increase endless mode limit to 15 2024-04-06 23:50:26 -04:00
Flashfyre
e76fa25bc8 Fix attack type boosters applying universally and buff Soul Dew 2024-04-04 20:33:08 -04:00
Flashfyre
5010793a32 Add starter select screen cursor wraparound 2024-04-04 16:19:45 -04:00
Flashfyre
8e72ca5bfc Fix crash related to form-specific cries 2024-04-04 08:38:10 -04:00
Flashfyre
b9b7afb3ee Fix resetting nature on starter screen when updating other properties 2024-04-02 14:32:51 -04:00
Flashfyre
6516f41d2e Add a much needed additional tutorial by popular demand 2024-04-01 22:50:00 -04:00
Flashfyre
70d61700d0 Re-implement UI reskin with working legacy toggle
Re-implement UI reskin with working legacy toggle; add return to title option to menu
2024-03-31 21:14:35 -04:00
Flashfyre
30c7156c1a Revert "Add UI reskin by LJ Birdman (WiP)"
This reverts commit 0200a2688a.
2024-03-31 16:51:53 -04:00
Flashfyre
0200a2688a Add UI reskin by LJ Birdman (WiP) 2024-03-31 16:49:53 -04:00
Flashfyre
2feb82e674 Fix infinite looping when Pokerus selections generate a loop 2024-03-30 20:14:09 -04:00
Flashfyre
8c5e82a5a3 Add shiny indicator to starter screen 2024-03-25 13:40:54 -04:00
Flashfyre
81f9e2da36 Add WiP logic for daily run and fix some performance issues 2024-03-15 21:59:34 -04:00
Flashfyre
00255cb09a Fully implement save slots and ""title"" screen changes
Fully implement save slots and ""title"" screen changes; fix issues with slots including clear data not working on game over and export/import not working; fix session play time not being recorded correctly
2024-03-15 15:13:32 -04:00
Flashfyre
623d600e13 Add wrapper for game mode 2024-03-14 16:26:57 -04:00
Flashfyre
b147cf8f37 Fix Fake Out implementation not working properly 2024-03-08 13:14:08 -05:00
Flashfyre
17fe2ba597 Fix starter movesets showing lock egg moves 2024-03-01 18:34:56 -05:00
Flashfyre
23fd7db81f Add egg move data 2024-03-01 18:18:07 -05:00
Flashfyre
f48464d48d Minor refactoring 2024-02-29 20:08:58 -05:00
Flashfyre
649717a3cd Add egg moves logic 2024-02-25 12:45:41 -05:00
Flashfyre
e4bac55d75 Add indicator for additional starter moves and initial egg moves UI
Add indicator for additional starter moves and initial egg moves UI; port scrolling to abstract options UI
2024-02-21 15:47:44 -05:00
Flashfyre
b054992ffa Allow selecting and ordering starter moves 2024-02-21 01:03:34 -05:00
Flashfyre
58ba0ec52d Add starter moves on starter select (WiP) 2024-02-20 22:53:33 -05:00
Flashfyre
2f8df43db8 Fix some bugs and add seen Pokemon to starter screen 2024-02-18 22:21:57 -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
24bf116b37 Expand tutorials 2024-02-14 10:44:55 -05:00
Flashfyre
bf18b1ceb1 Add tutorial framework (WiP) 2024-02-13 18:42:11 -05:00
Flashfyre
e72ede26d8 Implement catch count based starter value decreases 2024-02-12 16:38:46 -05:00
Flashfyre
05f114c8a4 Minor UI changes 2024-02-06 23:11:00 -05:00
Flashfyre
052564f902 Update final boss fight and restructure some files 2024-01-13 12:24:24 -05:00
Flashfyre
96f0d9158b Fix crash on starter select screen 2024-01-13 00:41:07 -05:00
Flashfyre
ea6c547af1 Minor changes to forms 2024-01-12 20:16:29 -05:00
Flashfyre
fcf1c4f574 Rework option select and add game stats 2024-01-11 12:26:32 -05:00
Flashfyre
8cc1982859 Add natures 2024-01-05 22:31:13 -05:00
Flashfyre
6dc868272f Add summary memo text 2024-01-05 11:29:34 -05:00
Flashfyre
6558de01c4 Fix issue with mobile and submit action 2024-01-02 17:31:44 -05:00
Flashfyre
c0aac06fab Fix mobile bug on starter select screen 2024-01-02 17:11:51 -05:00
Flashfyre
cc5f15e00e Press enter to start run on starter screen 2024-01-01 13:41:46 -05:00
Flashfyre
eae0d907c5 Minor tweak for starter select screen 2024-01-01 11:17:20 -05:00
Flashfyre
264c1c28ef Allow for up to 6 starters below the limit 2024-01-01 10:14:49 -05:00
Flashfyre
8063472bac Add accounts, login, and registration 2023-12-30 20:19:33 -05:00
Flashfyre
4a575a45a9 Fix some bugs
Fix softlock with charging moves; fix double summon bug with Dragon Tail and similar moves in a trainer battle
2023-12-21 23:57:11 -05:00
Flashfyre
2568ac3524 Add paradox Pokemon for the end biome 2023-12-21 01:24:24 -05:00
Flashfyre
e07e267ddc Refactor windows and add alternate window skins 2023-12-20 22:22:15 -05:00
Flashfyre
aa94e044ab Add egg gacha system and various minor changes
Add egg gacha system; remove certain mythical Pokemon from the wild pool as egg exclusive; add egg vouchers with UI; rework Shiny Charm odds; fix trainer Pokemon shiny odds not properly ignoring Shiny Charm modifier
2023-12-19 23:51:48 -05:00
Flashfyre
8781bb29da Move starter screen IV chart to its own component 2023-12-15 23:42:31 -05:00
Flashfyre
47181ea868 Add generation 8 Pokemon and new biomes 2023-12-14 00:41:35 -05:00
Flashfyre
982e9c7e1e Add generation 7 Pokemon and new biomes 2023-12-12 15:32:50 -05:00
Flashfyre
e7ec5b4f88 Implement generation 6 Pokemon and some moves 2023-12-08 16:29:03 -05:00
Flashfyre
70827420cd Implement mega evolutions 2023-12-07 17:43:56 -05:00
Flashfyre
b7687a9a30 Add gen 6-7 sprites and update icon set 2023-12-07 00:52:20 -05:00
Flashfyre
fab2d9b788 Soft implement gen 6-9 species, abilities, and learnsets 2023-12-05 17:12:39 -05:00
Flashfyre
ab344cd82a Add starter values with limit and add generated fusion names 2023-12-01 17:23:26 -05:00
Flashfyre
16b580451c Add IV display on starter screen 2023-11-13 22:29:03 -05:00
Flashfyre
b4f2700a59 Rework dex system and add starter IVs 2023-11-12 23:47:04 -05:00
Flashfyre
cbbb8e972b Add achievement system and UI
Add achievement system and UI; fix counting invalid inputs in UI handlers for input delay
2023-11-12 00:31:40 -05:00
Flashfyre
b85bb0916d Add spliced endless mode and splice indicator 2023-11-04 19:46:48 -04:00
Flashfyre
3e092876ad Add shiny indicators to starter screen 2023-10-29 23:36:29 -04:00
Flashfyre
c0e1c3bde7 Add missing gym leader for City biome 2023-10-25 17:38:21 -04:00
Flashfyre
0ac853eba2 Add Pokerus and give only Golden EXP Charms until wave 40 2023-10-25 14:15:44 -04:00
Flashfyre
8ae78fcd05 Add growth rate to starter select screen 2023-10-24 23:04:23 -04:00
Flashfyre
50cbad3af3 Add icons for Mega Rayquaza and Eternamax Eternatus 2023-10-24 15:17:41 -04:00
Flashfyre
96a15ccb0d Adjust game volume 2023-10-21 08:58:39 -04:00
Flashfyre
83c70889fc Implement trainer battles and various changes
Implement trainer battles; add dialogue functionality; add random session seed for predictable random results; remove capitalization from text; add full party heal after every 10 waves
2023-10-18 18:01:15 -04:00
Flashfyre
9faa489f19 Add endless mode
Add endless mode; prevent stat booster items from being transferred or stolen
2023-05-31 19:54:57 -04:00
Flashfyre
18679241e9 Add ability bar UI 2023-04-27 01:14:15 -04:00
Flashfyre
c614295b5e Begin implementing abilities 2023-04-26 23:33:13 -04:00
Flashfyre
55ba3cd5e7 Add Xerneas, Yveltal, and Eternatus 2023-04-26 16:07:29 -04:00
Flashfyre
592ccc7c6a Add starter select ability selection 2023-04-26 12:50:21 -04:00
Flashfyre
3753ea73be Fix some bugs 2023-04-24 22:32:12 -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
5a1de4d9a5 Fix weather and add wave display 2023-04-18 23:54:07 -04:00
Flashfyre
40058539a7 Fix crashes 2023-04-18 15:07:10 -04:00
Flashfyre
9a2fa0934f Fix starter select cycling issue 2023-04-18 09:34:02 -04:00
Flashfyre
fcdd7c421e Add persistent data for catches 2023-04-18 01:32:26 -04:00
Flashfyre
00ad27247c Add WiP features related to forms and save data 2023-04-17 22:44:41 -04:00
Flashfyre
53d62056d2 Some minor bug fixes 2023-04-12 21:44:12 -04:00
Flashfyre
6397a10998 Add starter select 2023-04-12 19:09:15 -04:00
Flashfyre
8e6e1fd233 Refactor controls and add random starter function 2023-04-11 00:24:55 -04:00
Flashfyre
15105231ba Refactor modifiers 2023-04-09 19:15:21 -04:00