64 Commits

Author SHA1 Message Date
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
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
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
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
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 77a88e0895f7c3389cb223651b90d918af778fe9.

* 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
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
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
Flashfyre
89e2642d91 Fix update issue for battle stats display 2024-05-01 18:24:21 -04:00
Flashfyre
6fd5709b13 Reapply stat change feature with fixes 2024-04-30 23:02:16 -04:00
Flashfyre
8a54e862fc Revert "Add togglable stat change display"
This reverts commit 718585062bf3d5bf5067003da9a6b70bfb407940.
2024-04-30 22:14:24 -04:00
Flashfyre
718585062b Add togglable stat change display 2024-04-30 22:06:54 -04:00
Flashfyre
5e7356636e Update shiny luck mechanics and count both fusion components 2024-04-26 11:31:39 -04:00
Xavion3
9dfd5a1e6e Implement Soak, Forest's Curse, and Trick-or-Treat
Updates the UI and type effectiveness to support three types, and makes old moves that change types update the UI.
2024-04-19 13:47:40 -04:00
Flashfyre
85b47be0b8 Fix battle info owned icon not factoring in ability 2024-04-19 09:03:14 -04:00
Flashfyre
c76f8c5e7e Add tiered shiny variants 2024-04-18 22:52:26 -04:00
Flashfyre
3961550f62 Fix fusion move learning bug and inaccurate HP in battle info 2024-04-11 20:40:16 -04:00
Flashfyre
2a6042ff7e Add HP Bar Speed setting and fix Grip Claw HP skip bug 2024-04-09 15:34:57 -04:00
Flashfyre
87e0e06b9e Add faster evolution skipping 2024-04-04 18:54:50 -04:00
Flashfyre
3774b6e214 Fix type icon type not updating when types are changed 2024-04-04 13:30:49 -04:00
Flashfyre
fcecad8707 Add monotype icons 2024-04-04 12:27:41 -04:00
Flashfyre
d86c1200f8 Add battle info type icons 2024-04-03 21:19:42 -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 0200a2688a08bb5ef84f562cd0b01948134455d6.
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
a52b8c6b4b Tweak for daily run final boss 2024-03-17 00:12:57 -04:00
Flashfyre
eab1ba7ab9 Fix timezone variant with legendary gacha 2024-03-15 19:40:13 -04:00
Flashfyre
623d600e13 Add wrapper for game mode 2024-03-14 16:26:57 -04:00
Flashfyre
7efd8aa834 Improvements to spliced name generation 2024-03-06 23:57:11 -05:00
Flashfyre
8395a84b60 Update spliced icon 2024-03-05 20:36:01 -05:00
Flashfyre
fd5a7985ce Fix additional issue with boss bar divider display 2024-03-01 11:49:26 -05:00
Flashfyre
b62892e42d Speed up leveling for multiple level ups 2024-03-01 10:53:11 -05:00
Flashfyre
f48464d48d Minor refactoring 2024-02-29 20:08:58 -05:00
Flashfyre
8d314b199f Fix issue with level cap by using max integer 2024-02-29 16:41:14 -05:00
Flashfyre
dca8a5c529 Remove level and stat caps 2024-02-29 15:25:15 -05:00
Flashfyre
636f89992a Ensure shiny icon is visible in battle info when shiny 2024-02-29 12:59:23 -05:00
Flashfyre
9bbee12fe3 Fix offset icons in double battle 2024-02-27 20:48:58 -05:00
Madmadness65
7ad099b243 Make Rookidee line more rare
Sorry, the bird was just too good to be that common. Also included is a touched up Tera icon sprite.
2024-02-21 23:25:25 -06:00
Flashfyre
b6bde457cd Update boss bar logic 2024-02-20 00:03:22 -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
58b000ae06 Make G-Max Pokemon larger scaled 2024-02-14 23:25:12 -05:00
Madmadness65
2da283c600
First draft of usable G-Max forms (#14)
* First draft of usable G-Max forms

They are not fully usable yet, and still needs more work to reach that point.

* Fix Gigantamax on Pokémon with forms

Co-Authored-By: Samuel H <3542488+Flashfyre@users.noreply.github.com>

---------

Co-authored-by: Samuel H <3542488+Flashfyre@users.noreply.github.com>
2024-02-14 00:21:44 -05:00
Flashfyre
eedad7d678 Add boss health bars 2024-01-07 23:17:24 -05:00
Flashfyre
67ac5d3139 Truncate names in battle info and party UI when too long 2023-12-09 23:41:36 -05:00
Flashfyre
70827420cd Implement mega evolutions 2023-12-07 17:43:56 -05:00
Flashfyre
2f6f7c9dc6 Minor fix for spliced names 2023-12-03 00:08:13 -05:00
Flashfyre
839264506b Add shiny indicator to battle info 2023-12-02 23:31:45 -05:00
Flashfyre
ab344cd82a Add starter values with limit and add generated fusion names 2023-12-01 17:23:26 -05:00