* fix postSummonPhase when opponent does not summon and fix the statsChange from push to unshift
* added switch pokemon helper method
* added on switch tests for intimidate
* fix test by overriding passive in tests
* remove a test not needed
* cleanup imports
* Update dialogue.ts
* Update text.ts
* Update dialogue.ts
* Update dialogue.ts
* ignore linting in zh_cn
* try renaming the .eslintrc
* ignoring lint did not work
* lint fix by replacing ` with "
* change eternaus dialogue string back to ` to prevent error
* indentation fixed
---------
Co-authored-by: Temps Ray <temps.ray@gmail.com>
* Move events to a central directory
* Update modifier import
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* remove old battle-scene-events
* Move to field events
* Update battle-scene.ts
---------
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
+ Choose colors adapted to provide a contrast that facilitates reading (ratio of 3.0 or more)
Tool used: https://webaim.org/resources/contrastchecker/
+ Refactoring of the condition to avoid unnecessarily assigning variable several times depending on the contents of 'ppPercentLeft'
* added tests for zen mode - change form in battle
* added tests to run some battle against trainer/rival & boss
* added a test with a method to kill a pokemon
* added an override in the clock mocked to reduce the time of fainting pokemon and thus reducing test time from 5s to less than 1s
* added some more tests + doAttack, doKillOpponents, toNextWave, toNextTurn helper
* added some more tests + doAttack, doKillOpponents, toNextWave, toNextTurn helper + fix some tests
* Implement Arceus Plates and Silvally Memories
* German localization for items
* Run linter on changes, add items to zh_TW localization
* linter cleanup
* Finish localization for other languages
Names for items sourced from Bulbapedia. Names for the items in Portuguese could not be reliably sourced, so they were as directly translated as possible.
* Add custom Blank Memory item
Currently does nothing, but the idea is that it would be used if the all-in-one form change item idea is followed through.
* Update item atlas
* Use move.type instead of type.value
The type effectiveness now works again.
* Update comments
* Fix type changing affecting only Silvally
* Condense switch cases down to a single line
As per Brain Frog's suggestion.
* Fixed bug where pokemon info container will show form of a pokemon that doesn't have it if the previously caught pokemon has a form
* Updated pokemonFormText to also disable interactive section if there was one
* Adding UI elements for new gender, ability and nature
* Added new indicators for shiny, gender, ability and nature
* Changed position of gender icon to top left
* Changes with logging and old (+) indicators for nature, form and ability
* Updated to remove old code and comments, as well as various console logs
* Updated commented code
* Addressing PR feedback
* Updated form to have a label and form name, along with cutting off the form name if it's too long
* Updated stats container to move some labels around so there's less text clumped together
* Removed some old commented code
* Fixed some issues with typing and naming
* Accidentally pushed my overrides.ts before :). Sorry!
* Updated the form name's hover over section to only work when the text is truncated
* Updating the gender check to work off DexAttr instead of a weird 2
---------
Co-authored-by: Temps Ray <temps.ray@gmail.com>
* refactored inputs-controller for better hold button management
* refactored the touch controls file to use a class and add holding button system
* added a method to deactivate pressed key for touch on focus lost
* better lost focus management
* Fix tinted caught icon false positive
* Remove unused import
* Rename and optimize
* Block comment
* Draft of evil team grunt pokemon pools
* Add graphics and music
* Add grunt spawn logic
* Add Giovanni
* Add team leader graphics
Giovanni and Ghetsis already have sprites, so they do not need added.
* Add teams for other evil team bosses
* Fix some typos and change hp bars to 2/2/2
* Fix sprites and add random team boss
* Add forced grunt encounter and update dialogue
* Update locales
* also lint en trainers
* More merge conflicts
* Deleted some duplicate images
* Correctly renamed the grunt files
* Forgot about team rocket
* New Magma Sprites
* Adjusted the trimming. Now they dont have as huge of a shadow bbelow them
* Fix grunt sprites
* Add real dialogue
* German Localization of the Dialogue
* Changes
* Tweak waves grunts spawn on
* Fix some typos in dialogue
* Y is canon
* Disable evil team spawns
* Fix another merge conflict
---------
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: Jannik Tappert <tappertjannik@googlemail.com>
* Colorcode pp in fight ui if only half/quarter of maxPP is left
* Use three-level color coding for remaining pp
* use if/else for calculating pp color
---------
Co-authored-by: Kevin Greiner <greiner@infai.org>