Commit Graph

2017 Commits (b5841471d2eb31349fc08dc3581217324bd20107)

Author SHA1 Message Date
Greenlamp d9d455f317 create folder for settings in ui folder 2024-05-12 16:51:18 +02:00
Benjamin Odom 79a87e1c65 Update pokemon.ts 2024-05-12 10:27:54 -04:00
Greenlamp 2bc5a7665e first step of keyboard rebinding 2024-05-12 16:10:25 +02:00
Greenlamp 09ea1db8fa Merge branch 'main' of github.com:Greenlamp2/pokerogue into feat/mapping_setting 2024-05-12 14:19:44 +02:00
Greenlamp a2dd704737 added snes icons 2024-05-12 14:18:48 +02:00
Greenlamp 3938975710 fix snes controller support 2024-05-12 13:54:49 +02:00
Greenlamp ba42f072e1 update comment in inputs-controller.ts 2024-05-12 13:40:16 +02:00
LaukkaE ced74efc52
fix isGrounded check (#774) 2024-05-12 06:30:18 -05:00
Greenlamp 32a9b7170c removed useless array 2024-05-12 13:26:33 +02:00
Greenlamp 8f4669cab6 added comment for gamepad-binding-ui-handler.ts 2024-05-12 13:26:00 +02:00
Greenlamp 956379bc31 commented settings-gamepad-ui-handler.ts 2024-05-12 13:13:15 +02:00
Madi Simpson e1ef3c03de
ability: make technician respect variable power moves (#529) 2024-05-12 04:06:09 -05:00
Landon Lee a27822b624
Fix cry when pokemon is fused with its own species (#615)
If the pokemon species and form is the same as the second fusion component, then skip the logic to make a fused cry and just use the cry of the primary component.
2024-05-12 03:01:59 -05:00
Thomas Huynh d5f82611f5
added battle tag check in isGrounded method (#750)
Co-authored-by: unknown <t_huynh927@yahoo.com>
2024-05-12 02:28:30 -05:00
Frederico Santos e4afdf1d45
Add ignoresProtect to life dew (#758)
Co-authored-by: Frederico Santos <frederico.santos@fivedegrees.nl>
2024-05-12 02:18:23 -05:00
Xavion3 db6008d15c
Add tsdoc comments for ability getters (#764)
* Add tsdoc comments for ability getters

* Add links to the docs
2024-05-12 00:48:56 -05:00
ArceUseless fe6aefd910
Natures langs with new config (#611)
* Natures lang files

* Updated French nature.ts

* Nature german translation + chinese added

* Added nature to chinese config.ts

---------

Co-authored-by: rnicar <rj.nieto.car@gmail.com>
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: rnicar245 <55734812+rnicar245@users.noreply.github.com>
2024-05-11 21:22:45 -05: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
Greenlamp 8f340509e5 starting to add comments 2024-05-12 03:35:20 +02:00
Greenlamp 6f8601815f renaming + small cleanup 2024-05-12 03:22:37 +02:00
Flashfyre f540b7d17f Fix always clearing first slot in offline mode 2024-05-11 20:33:03 -04:00
Greenlamp bf8f62bc9e renaming + fix a display bug 2024-05-12 01:59:38 +02:00
Greenlamp 1c17c193c5 fix icon position + added cancel sound 2024-05-12 01:43:27 +02:00
Greenlamp 4c39fd068c added top/down support from legacy settings 2024-05-12 01:31:57 +02:00
Greenlamp d80c0e3d34 removed Swap a/b 2024-05-12 01:28:56 +02:00
Greenlamp 5076625259 added placeholder when nogamepads is detected 2024-05-12 01:27:17 +02:00
Greenlamp ae85f1b416 fix a floating cursor not destroyed 2024-05-12 00:20:47 +02:00
Greenlamp 3b693d2231 fix a cursor bug + filter labels to display (to avoir submit with an xbox controller for example) 2024-05-11 23:58:47 +02:00
Greenlamp fc2a0e06ec better layout management 2024-05-11 23:33:24 +02:00
Madmadness65 3f9158083e Swap Rayquaza's egg moves
With egg moves factoring in to trainer Pokémon's learnsets now, Oblivion Wing was too problematic for a common egg move. So it has been swapped with V-create to make fights with it more tolerable.
2024-05-11 14:20:54 -05:00
Xavion3 34aa68df14
Fix fusion icon variant id (#747) 2024-05-11 13:15:01 -05:00
Xavion3 6b49b4f469
Lowers xp curve for fluctuating slightly (#746) 2024-05-11 11:54:05 -05:00
Greenlamp 83a26d8e58 get missmatch function call 2024-05-11 18:42:32 +02:00
Greenlamp e5e100990e key displayed are correctly updated when swap or controller change + custom mapping is effective everywhere 2024-05-11 17:54:34 +02:00
Xavion3 03d68f877a
Fix fluctuating xp curve (#743)
Was scaling with square of level, not cube.
2024-05-11 10:25:48 -05:00
notpatchmaybe ea459826d0
Heart Swap implementation. (#712)
* Heart Swap implementation.

 Simply switches the values in 3 arrays.

* Fixed missing space

* Removed some lines.

Removed a for loop.

* Removed an unneccesary line

* TSDoc commentation added

* Changed message method to be more descriptive

* Adjusted message line to be consistent with Pokemon Showdown

* Adjusted priorBoostArray to priorBoost integer

Only one values is relevant at a time, so the array was pointless, woops.
2024-05-11 09:42:57 -05:00
William Burleson 8707213e88
Adds session playtime to gameInfo for Rich Presence (#738)
* Add rich presence support

* Adds playtime to gameInfo
2024-05-11 10:11:00 -04:00
Greenlamp 5ff09389db swap is working + display current assignation on rebinding 2024-05-11 15:43:38 +02:00
Somod1 cd9e066524 update 2024-05-11 09:25:02 -04:00
Benjamin Odom ae7c1ef4f0
Fix Charge Move Infinites (#741)
Fixed an issue where two turn charge moves could be paused by status or Truant causing some infinite sequences if not careful.
2024-05-11 23:22:26 +10:00
Greenlamp cfa919b46c added already assigned key in the UI 2024-05-11 14:51:01 +02:00
Greenlamp 7ced12e13b refactored input-controller to use config 2024-05-11 14:31:48 +02:00
Greenlamp cffcf9afd0 cleaned up a bit the code + added some more config 2024-05-11 13:33:13 +02:00
Greenlamp 931ec61f87 commented gamepad fallback on disconnect 2024-05-11 12:45:45 +02:00
Xavion3 d24762b5dc
Fix bug in moveset code (#735)
Pokemon with very limited movepools could sometimes generate with no moves
2024-05-11 00:46:36 -05:00
Flashfyre 483310c345 Fix missing backgrounds after clearing a run 2024-05-11 00:29:16 -04:00
Xavion3 72467388fc
Redo moveset generation (#550)
* Redo moveset generation

* Decrease the weight of lower power moves and egg moves

* More weight tweaking

Trainers never get OHKO moves, are less likely to get self KO and multiturn moves, and more likely to get stat buffing moves. All pokemon are less likely to get offstat moves.
2024-05-11 00:20:21 -04:00
Greenlamp 635a2ea959 first step to display button icon in the gamepad menu for current binding 2024-05-11 02:59:52 +02:00
Greenlamp 043216aa75 adding essential data into config file 2024-05-11 02:36:47 +02:00
Greenlamp 022c4351d3 adding essential data into config file 2024-05-11 02:33:41 +02:00
Madmadness65 b13a563dad Update passive abilities for starters and pseudos
The latest changes from the balancing team. These changes will take immediate effect in any existing runs, so do keep that in mind.
2024-05-10 18:46:10 -05:00
Greenlamp ef4bb9c3b5 added ui to confirm or cancel the new input 2024-05-11 01:26:06 +02:00
Flashfyre 9cfc09f673 Restructure game over logic to save before clear 2024-05-10 18:12:33 -04:00
Greenlamp 05f2233cf2 Merge branch 'main' of github.com:Greenlamp2/pokerogue into feat/mapping_setting 2024-05-10 18:48:37 +02:00
td76099 acb61d6fb7
Fixes Tidy Up so it clears hazards from both sides (#717) 2024-05-10 11:31:27 -05:00
Athebyne 2ab335a3c5
Implement Snipe Shot, and Propeller Tail/Stalwart (#661)
* Implemented Snipe Shot and Stalwart/Propeller Tail

* Remove Testing Overrides

I don't know why these got pushed, they are in the gitignore file.

* Snipe Shot also has a high crit rate

* Add Comment

* Add TsDoc documentation to BypassRedirectAttr

* Add ability pop-up for when Propeller Tail/Stalwart proc.

* Fix Formatting

* Tab align comment
2024-05-10 10:40:21 -05:00
Dakurei 593ac38267
Fix some errors from previous PR #711 (#716) 2024-05-10 10:29:22 -05:00
William Burleson 7bdb969a73 Add rich presence support 2024-05-10 10:34:51 -04:00
Greenlamp 5d62d0bb25 fix speed level up notification 2024-05-10 10:34:10 -04:00
Dakurei f1935a3e15 Adds 'accuracy' to the move information in the fight ui
+ Capitalize 'power' and 'accuracy' fields
2024-05-10 10:27:44 -04:00
Greenlamp2 b32b802ab4
QOL - Settings to choose party Exp display at the end of fight (#488)
* added settings to manage how to display party experience at the end of fight

* added back stats changes support when setting is on but ignored when on skip

* removed a useless parameter

* added new level in the text

* only Lv. UP if level is greated than 200

* cleanup

* added some comment

* TSDoc comment block

* EXP_Party -> EXP_Party_Display, Only Up -> Level Up Notification

* better duration for the level up notification

* typo

Co-authored-by: Samuel H <flashfireex@gmail.com>

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-05-10 09:54:14 -04:00
Greenlamp f81df957a5 Merge branch 'main' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
	src/system/settings.ts
2024-05-10 15:43:59 +02:00
Greenlamp2 22a73642df
Fix - Gamepad support setting "lost focus" behaviour (#658)
* fix "lost focus behaviour" when disabling gamepad and thus repeating RIGHT key

* added some comment

* added full TSDoc, helped by chatGPT, refined every entry manually of course
2024-05-10 09:26:45 -04:00
Greenlamp2 6fbc0cb923
Settings navigation, when on top to go to the bottom, and when on the bottom to go to the top (#605)
* fix settings top and bottom

* added some comment

* TSDoc ready + less lengthy comments
2024-05-10 09:25:41 -04:00
Greenlamp c72a50a38c added controller input sprite 2024-05-10 15:02:00 +02:00
Flashfyre 5c98529108 Re-remove fallback API change with new URL 2024-05-09 23:44:09 -04:00
Flashfyre 4810966b7e Revert "Reapply "Revert API URL change""
This reverts commit 35d06512a2.
2024-05-09 23:40:54 -04:00
Flashfyre 35d06512a2 Reapply "Revert API URL change"
This reverts commit 08067d9937.
2024-05-09 23:29:45 -04:00
MonsieurDMA 6a3f5c5428
German - Tutorials and UI Buttons (#650)
* German - UI buttons

* German - Tutorials

* Fix typo in quote transformation
2024-05-09 21:33:15 -05:00
MonsieurDMA 43b75b601a
German - All Gen 8 pokemons (#640) 2024-05-09 21:31:07 -05:00
AJ Fontaine 7219556e77
Hydro Steam (#231)
* Hydro Steam, Spirit Shackle, U-turn fix

Match formatting to project style

Co-authored-by: Samuel H <flashfireex@gmail.com>

* Fix Hydro Steam power up in Sun, even harsh sun if type changes

* Fix issue with Hydro Steam outside sun

* Add comments to IgnoreWeatherTypeDebuffAttr for documentation

* Move U-turn fix to another PR

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-05-09 21:21:57 -04:00
Greenlamp 42ef4b963b Merge branch 'fix/gamepad_support_disable_focus' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
2024-05-10 02:23:08 +02:00
Flashfyre 2bc1cfb0fc Extend the temporary shiny chance increase by 1 day 2024-05-09 20:16:29 -04:00
Greenlamp 58845410e6 added full TSDoc, helped by chatGPT, refined every entry manually of course 2024-05-10 02:16:03 +02:00
Flashfyre 02cba0f741 Add temporary triple shiny chance 2024-05-09 19:59:21 -04:00
Flashfyre dc9026f583 Add missing and updated biome art 2024-05-09 19:05:19 -04:00
Greenlamp 421e28b3f8 fix import 2024-05-09 23:23:29 +02:00
Greenlamp 0d2eb1d983 working button detection in menu 2024-05-09 23:23:09 +02:00
Matthew 10cf1cd94f
Cleanup overrides and imports (#603)
* cleanup overrides and imports

* Add GreenLamps Modifier Overrides

* added comments

* starting money and biome comments

* account for overriding empty move

* more override descriptions

* added generator held item names to override comment
2024-05-09 14:52:09 -05:00
Lugiad 882f9c289c
French typos + forgotten description in move.ts (#617)
* French typos in move.ts

* French typos + forgotten description in move.ts
2024-05-09 15:50:14 -04:00
alpaca 1d7d8b1ac7
Implement Heal Bell + Aromatherapy (#238)
* adds frame for StatusCureAttr

* heal bell and aromatherapy functioning as intended

* refactor attr to solely handle party cure, party interaction unique enough to justify

* adds header to PartyStatusCureAttr

* code comment

* comment formatting improvement

* checks for passives as well

* code comment

* shows ability bar if immune
2024-05-09 14:15:56 -05:00
Greenlamp 59832c6bef merge with branch fix lost focus on disabled gamepad 2024-05-09 20:26:00 +02:00
Greenlamp 5c9af9bb3c Merge branch 'fix/gamepad_support_disable_focus' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
	src/system/settings.ts
2024-05-09 20:25:11 +02:00
Greenlamp 3d66808016 fix visual selection of default gamepad 2024-05-09 20:21:26 +02:00
Xavion3 d5681a6e03
Fix loading protosynthesis/quark drive boosts (#687) 2024-05-09 11:33:47 -05:00
Greenlamp 22e7845480 fix changes made while commenting 2024-05-09 17:38:59 +02:00
Madmadness65 407d9b7c49 Minor fix for Oinkologne's gender ratio
It was unintentionally set to be 100% male instead of 50/50.
2024-05-09 10:21:01 -05:00
Greenlamp ecbcb0bf70 added some comment 2024-05-09 17:14:59 +02:00
Greenlamp d34d48f1b5 remove localStorage for gamepads connected + fix lost focus effect on controller change + disconnect/reconnect handling 2024-05-09 17:02:07 +02:00
maru 7f0362e124
Fix it for real this time 2024-05-09 07:30:19 -04:00
Greenlamp b58a444f80 remove localStorage for gamepads connected + fix lost focus effect on controller change 2024-05-09 12:55:00 +02:00
maru c1cff02a18
Fix bug with accounts being unable to create new saves 2024-05-09 06:22:33 -04:00
Benjamin Odom b231b887aa
Update ability.ts (#671) 2024-05-09 16:40:23 +10:00
Xavion3 802daecd65
Fix starters with multiple forms being unable to change move (#667) 2024-05-09 00:39:45 -05:00
Xavion3 fd088c9360
Prevent doubles trainers generating with one pokemon (#642) 2024-05-09 00:39:20 -05:00
Xavion3 aba97c6ddc
Make max and z moves unable to be chosen with metronome (#641) 2024-05-09 00:38:46 -05:00
Xavion3 e6ba60364e
Save battler tags (#516)
* Save battler tags

Also saves the rest of the summonData except for transform specific things.

* Add missing values for type boost tag.

* Add intellisense comments
2024-05-09 00:37:51 -05:00
mercurius-00 a48a12ec0b
Add wordwrap to Chinese words (#670)
Since Phaser.Text's wordwrap doesn't work with Chinese words, ''\n' has been added to move.ts and ability.ts
2024-05-09 00:20:01 -05:00
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