Commit Graph

459 Commits

Author SHA1 Message Date
Matthew Olker 5dd017fa30 Begin shiny weekend 2024-05-17 18:13:12 -04:00
Benjamin Odom 6880c7afe0
Updated Logic when Animating Trainer Sprites (#1016)
Updated the check in place when attempting to play a trainer sprite. Separated it into a separate function to reduce reusing code and to make it easier to exit early when failures occur.
2024-05-17 12:37:38 -05:00
Benjamin Odom 0cd305d78a
Fix Trainer Localization Typos (#1010)
Took a look at some of the entries for trainers and adjusted accordingly. it looks like all of these trainer types were grabbed from an online source as a sort of future-proofing which is good, but resulted in some errors. Some of which have already been fixed, and some which are included here.

Also prevents an issue if there is a missing image and displays a warning in the console instead of a crash.
2024-05-17 00:01:35 -05:00
Jannik Tappert b06190c4e7
Issue #745 localized trainer names trainer classes and titles (#752)
* Issue #745 - Added the option to localize titles, trainer names (for important trainers like elite 4, champs etc) and trainer classes.

- Also i already did the whole localization for german (sorry thats the only language is speak other then english...)
- Also renamed the trainer Type "student" to school_kid (because there apparently really is a trainer class called student since the gen 9 dlc)
- And i changed it so it makes sure that i18 only gets initalized once (it may be needed to initalize it before the loading phase so the elite 4 titles etc can be localized)

* Issue #745 - Removed stuff that wasnt meant for this branch

* Translation of French trainers.ts

* Translation of French trainers.ts

* Translation of French trainers.ts

* Fixed spelling on german translation

* Fixed name of Hex Maniac

* ADded missing "," that were lost in the merge

* For Trainer Classes that have a female and male variant the correct name is now choosen. (If a language has both).

Also added a safety net that if the female version does not exist it uses the one without the suffix

* Reverting override.ts

* Added ptBR trainers.ts (thanks to zé ricardo on discord)

* Updates Pokefan to reflect the correct english spelling (in all languages that still have the english defaults)

* Updated Rich_kid trainer typ to named correctly as "Rich Boy" in english and all non yet localized languages

* Added that the title will get made lower case so the rival is correctly set

* Reverted a formatting change that i didnt make intentionally

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-05-16 04:05:25 -05:00
Xavion3 9197f9f070 Limit rare eggs to e4+ and fix trainer boss check
Also fixes weighting to account for adjusted level ranges
2024-05-15 11:55:47 -04:00
Tempoanon 38e3022d06
Add missing biomes for camoflauge (#912) 2024-05-15 10:32:10 -05:00
Flashfyre 3c8d919ef8 Revert "Implemented Power Split and Guard Split (#699)"
This reverts commit 0b75a5210a.
2024-05-15 10:13:29 -04:00
Frederico Santos 0b75a5210a
Implemented Power Split and Guard Split (#699)
* Implemented Power Split and Guard Split

* Update changeStat method to use summonData for Pokemon stats

This commit modifies the `changeStat` method in the `Pokemon` class to use the `summonData` object for updating Pokemon stats instead of directly modifying the `stats` object. This change ensures that the updated stats are correctly reflected in the `summonData` object, which is used for battle calculations and other related operations.

Refactor the `getStat` method to check if `summonData` exists and return the corresponding stat value from `summonData.stats` if it does. Otherwise, return the stat value from the `stats` object.

This change improves the accuracy of stat calculations during battles and ensures consistency between the `stats` and `summonData` objects.

* Added documentation for Power Split and Guard Split + linting

* removed incorrect files

* Removed incorrect folder

* removed unnecessary import

* Added documentation for getStat and changeSummonStat methods

* New description for getStat()

* Adjusting function descriptions

* adjusted descriptions according to guideline

---------

Co-authored-by: Frederico Santos <frederico.santos@fivedegrees.nl>
2024-05-15 07:41:40 -05:00
andrew-wilcox 1f5b2726b5
added auto hit and 2x damage from certain moves when targeting a pokemon that used minimize (#824)
* added auto hit and 2x damage from certain moves when targetting a pokemon who used minimize

* review fixes and bad merge

* review fixes and bad merge v2

* changed to be double damage instead of power for the minimize condition

* added TSdocs for function]

* remove ability to add minimize tag to dynamax-mons

* status cannot be applied to max-mons, and falls off if they dynamax

* updated doccumentation

* Update move.ts

---------

Co-authored-by: Cae Rulius <cae@polywhack.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-15 07:36:34 -05:00
Ethan 7d3cf577a6
Implented Gen VII Sheer Cold Changes (#349)
* Made Sheer Cold not affect Ice Types, as well as implementing the Gen VII change of 20% for non ice types.

* Pushed accurancy change

* Updated and separated the accuracy attribute and the Ice no effect attribute

* Fixed the OHKO attribute (accidentally removed) and fixed multiplier

* Updated attribute names, as well as making the move cancelled instead of 0x multiplier

* Added TSDoc comments

* Updated accuracy logic

* Changed the text response for Sheer Cold immunity

* Added immune to the HitResult enum
2024-05-14 13:01:37 -05:00
Brandon Rodgers 06c3611d06
Ability Corrosion (#744)
* Ability Corrosion

Implemented Corrosion Partially.
Tested against:
- Poison Powder
- Toxic
- Dire Claw
- Sludge Bomb
- Psycho Shift

They all work as expected

Missing ability Magic Bounce to test against.

* Added TSDoc Documentation

Added documentation to the new IgnoreTypeStatusEffectImunnityAbAttr and added comments to the checks for this ability attribute.

* Added More Documentation

Add comment into Phases for what sourcePokemon is for.
Renamed source to sourcePokemon onto trySetStatus and canSetStatus.
Added TSDoc head for what sourcePokemon is and anything else I am aware of what they are used for.

* Removed unfinished TSDoc

Removed TSDoc headers due to not having enough understanding to fill out all of the parameters

* Fix Formatting and Reorder Parameters

* Update arena-tag.ts

* Update phases.ts

* Update ability.ts

Added access modifiers to my class and the class I compared to.

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-14 13:00:37 -05:00
Madmadness65 856757fd56 Add custom Jungle biome music by Lmz 2024-05-13 23:46:28 -05:00
YounesM 9d90cc3e10
corrected uturn flip turn crash (#596) 2024-05-13 18:52:36 -05:00
Flashfyre 7e5c7fb4f7 Don't allow trainer egg moves before level 60 and no rare egg moves at all 2024-05-13 17:03:53 -04:00
Matt Ross 4e6cf2a6ac
Facade should ignore burn damage reduction (#530)
* Facade should ignore burn damage reduction

* update order of burn conditions

* remove unnecessary space

* undo facade check in apply

* Rework facade bypassing burn as move attribute

* Only check ability attribute if move attribute was false

* Add missing semicolon

* Add tsdoc comment

* Add comment to burn damage reduction class

* Added changes from Discord thread

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-13 13:06:15 -05:00
Matt Ross fa60e002e8
Fixes some variable damage moves not working with tinted lens (#759)
* Fixes some variable damage moves not working with abilities

* Rework as new ability attribute

* Update variable base power check to original location

* formatting

* Add tsdoc comments

* add floor for potential non int multipliers

* Update pokemon.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-13 13:05:09 -05:00
Flashfyre 347972d103 Remove boosted shiny rate 2024-05-12 20:45:41 -04:00
Matthew e195c6d799
Show Default Pokemon icon for missing shiny icon (#802) 2024-05-13 06:41:02 +10:00
Madmadness65 20a09c2b92 Remove species form encounter code for Scatterbug line and Calyrex
The Vivillon forms can all be encountered properly now, and Calyrex's forms have since been removed from the wild encounter pool, requiring a form change item to obtain.
2024-05-12 11:33:27 -05:00
Benjamin Odom 79a87e1c65 Update pokemon.ts 2024-05-12 10:27:54 -04:00
LaukkaE ced74efc52
fix isGrounded check (#774) 2024-05-12 06:30:18 -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
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
Xavion3 34aa68df14
Fix fusion icon variant id (#747) 2024-05-11 13:15:01 -05: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
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
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
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
Flashfyre 2bc1cfb0fc Extend the temporary shiny chance increase by 1 day 2024-05-09 20:16:29 -04: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
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
Xavion3 fd088c9360
Prevent doubles trainers generating with one pokemon (#642) 2024-05-09 00:39:20 -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
Tempoanon d16cb1202f
Fix charge (#614)
* Fix charge

* Remove console logs
2024-05-08 23:37:50 -05:00
alpaca 76ac86d2ae
Implements healer (#259)
* Implements healer

* adds an ally check to the condition

* done testing, changes chance back to 30%

* adds comment header for PostTurnResetStatusAbAttr

* adds override to resetStatus to not allow revive

* dont revive

* override revert
2024-05-08 20:21:55 -05:00
Benjamin Odom ea5e535f9f
Fixed Failed Moves Not Using PP (#634)
Fixed an issue where if a move failed, it would not use power points.
2024-05-08 15:51:56 -05:00
Jeremy B bb28d3599e
fix scrappy and mindseye working as passive ability (#567)
* fix scrappy and mindseye working as passive ability

* update apply for ignoretypeimmunityabattr

* simplify logic for ignoretypeimmunityabattr

---------

Co-authored-by: contra1337 <jpbastyr@gmail.com>
2024-05-08 00:32:38 -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
Xavion3 2d740f1952 Implement once per battle restriction on abilities
Currently just Intrepid Sword and Dauntless Shield
2024-05-07 00:39:16 -04:00
Reldnahc 84f6f06ca4 add override to force double battles.
add override for passive abilities.
2024-05-06 19:11:34 -04:00
lucfd 80b6001c77
Implemented Revelation Dance (#166)
* implemented Revelation Dance

* fixed steam engine activating on all water moves

* implemented typeless

* stellar handling for revelation dance

* removed testing lines

* changed to UNKNOWN implementation

* removed UNKNOWN RGB

* removed print debug + unnecessary logic

* simplified test condition further
2024-05-06 10:24:37 -05:00
Jeremy B bc8cb51dc1
Add Scrappy ability handling (#473)
* partially implement scrappy

* add minds eye handling also

* remove unimplemented from minds eye

---------

Co-authored-by: jbastyr <jpbastyr@gmail.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
2024-05-06 00:27:56 -05:00
Benjamin Odom 2b4dc9a4f0
Fixes Struggle Softlock (#531)
* Fixes Struggle Softlock

Fixed an issue where moves marked as (N) would prevent you from being able to Struggle.

Also fixes messaging so that a message shows when you are out of PP, Disabled, or trying to use an unimplemented move consistently.

* Update phases.ts
2024-05-06 00:02:52 -04:00
LaukkaE 67ee104178
Fix Protosynthesis and Quark Drive (#289)
* Fix Protosynthesis and Quark Drive

* add partial tags
2024-05-06 10:26:11 +10:00
Flashfyre 437cb87df9 Add separate achievements for sub-legendaries and rename pseudoLegendary field 2024-05-05 11:05:22 -04:00
Ivan Perez 3a218eb92b
Fixed a bug where a yawned target in a semi-vulnerable state would be stuck in that state (#396) 2024-05-05 00:35:47 -05:00
Reldnahc 7cdf07c050
have arena tags check their sides. (#447)
* have arena traps check their sides.

* make sure we check the right tags layers
2024-05-05 00:27:46 -05:00
Benjamin Odom daa6e3b3a8
Prevent Fusion Status Errors +Fix Double Battle Issue (#472)
* Reapply "Prevent Fusing Status Errors (#465)"

This reverts commit 18a1c152c0.

* Update phases.ts
2024-05-04 22:16:59 -05:00
Madmadness65 18a1c152c0 Revert "Prevent Fusing Status Errors (#465)"
This reverts commit 68eca464f7.
2024-05-04 20:50:48 -05:00
Madi Simpson 2c003854e9
terrain: psychic terrain doesn't block priority moves on the user's side (#470) 2024-05-04 20:45:37 -05:00
Benjamin Odom 68eca464f7
Prevent Fusing Status Errors (#465) 2024-05-04 20:37:31 -05:00
Benjamin Odom 5d6181926a Removed Hardcoded Values
Realized there was an enum for the -1 value which should help clear up confusion if someone has to mess with this code later
2024-05-03 23:26:56 -04:00
Tempoanon 5b44905b86
Fix Shedinja passive, mummy passive, acupressure, moody, and added a second move override (#369) 2024-05-04 12:30:23 +10:00
Benjamin Odom e02b85629f Fix Enemy Counter Moves
The AI couldn't decide who to target with CounterDamageAttr  moves which don't need a target. This change makes an exception. Now functions the same as when the player selects one of these moves.
2024-05-03 21:00:56 -04:00
Xavion3 c7c4deb416 Implement Sniper 2024-05-03 12:05:20 -04:00
Benjamin Odom b84a4b4ee5 Fix Shedinja PPused Share
Fixed having Shedinja share PP usage with the Ninjask it evolved from and vice versa.

The solution was to make a deep copy of each move in the moveset array rather than copying the array itself.
2024-05-03 08:33:33 -04:00
Flashfyre b30ab6136e Starter friendship for candies is split between spliced species 2024-05-02 21:55:11 -04:00
Benjamin Odom fec8771830 Fix Shedinja Luck and Crash
Shedinja wasn't taking the luck value from Ninjask so when it calculated its luck it just took the entire fused Pokemon's luck somehow. This has been fixed so it takes both the first and second part of the fusion's luck values instead.

Also fixes an issue where Shedinja crashed the game if it was the second part of a fusion combo. Now the correct pokemon species gets checked against and the correct pokemon evolution occurs to create Shedinja.
2024-05-02 17:55:45 -04:00
Flashfyre 991f097e9e Rebalance friendship and add starter friendship with candy reward 2024-05-02 17:48:08 -04:00
Benjamin Odom 9d8f7ddcf0
Implement Tailwind (#398)
Added a new ArenaTagType for Tailwind. Lasts 4 turns including the turn used.
2024-05-02 14:10:21 -05:00
Flashfyre 6ac224ab8a Refactor to split battle messages from menu 2024-05-01 18:54:35 -04:00
TeKrop e34b204664 feat: added support for localisation on battle scene sentences 2024-05-01 18:54:35 -04:00
Flashfyre 7a418109c3 Fix not checking move conditions for AI 2024-05-01 18:17:12 -04:00
Xavion3 5a6ea40dae Implement Acrobatics
Currently scales from 0-5 items
2024-05-01 17:11:16 -04:00
Xavion3 d6ca09e431 Implement Belch 2024-05-01 16:52:48 -04:00
Flashfyre 93765d4121 Update battle info on stat change 2024-04-30 23:23:32 -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 718585062b.
2024-04-30 22:14:24 -04:00
Flashfyre 718585062b Add togglable stat change display 2024-04-30 22:06:54 -04:00
NxKarim 8e64eaea3f
Some Fixes (HPRatio, Hustle, Imposter, Sleep Talk) (#353)
* Some Fixes

- HP ratio related checks (`getHpRatio`): Added rounding to 2 decimals for non-precise option.

- Hustle (`BattleStatMultiplierAbAttr`): added optional condition; Hustle now works only for physical attacks.

- Imposter (`PostSummonTransformAbAttr`): Switch in a double battle after both foes have been defeated no longer crashes the game.

- Sleep Talk (`RandomMovesetMoveAttr`): Single target moves no longer target allies.

* Formatting changes for consistency

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-30 11:47:10 -04:00
Xavion3 ad5efdf4f9 Refactor overrides 2024-04-30 09:12:19 -04:00
Flashfyre 9641d77bba Re-add shiny override EXCEPT FALSE THIS TIME 2024-04-28 22:03:29 -04:00
Flashfyre 57ece2c1d7 Revert "Add shiny and variant debug override"
This reverts commit 21482a641b.
2024-04-28 20:41:38 -04:00
Flashfyre 0b438d0ff4 Revert "Add temporary double wild shiny chance"
This reverts commit 4607782578.
2024-04-28 20:30:12 -04:00
Flashfyre 21482a641b Add shiny and variant debug override 2024-04-28 20:30:03 -04:00
Flashfyre 00150fd0bb Fix using wrong variant value when fusing 2024-04-26 20:11:37 -04:00
Flashfyre 4607782578 Add temporary double wild shiny chance 2024-04-26 19:57:38 -04:00
Flashfyre f281605146 Fix wild shiny luck generation 2024-04-26 19:36:27 -04:00
Flashfyre 6b9542511f Add fusion luck as a separate field 2024-04-26 18:27:00 -04:00
Flashfyre bf2a83993c Make luck independent from shininess and variant 2024-04-26 17:32:28 -04:00
Flashfyre 5e7356636e Update shiny luck mechanics and count both fusion components 2024-04-26 11:31:39 -04:00
Xavion3 46227d65f2 Fix mind blown/explosion moves 2024-04-26 08:33:29 -04:00
Flashfyre ef552c7ffd Fix crash with certain animated variant sprites 2024-04-26 02:00:58 -04:00
InfernoVulpix d4c265443f Assurance effect implementation
Theoretically implemented for all use cases but only tested for regular damage so far.
2024-04-25 23:03:00 -04:00
AJ Fontaine 9f3bef0142
Implemented explosive moves and Damp (#290)
* Implemented explosives

* Add Aftermath and Magic Guard interactions

* Adjust AI score for Mind Blown/Steel Beam
2024-04-25 21:42:41 -04:00
Flashfyre 728512cf7d Fix Baton Pass not working 2024-04-25 20:52:52 -04:00
Flashfyre ba71d2750b Load files from manifest for caching 2024-04-23 22:00:23 -04:00
Xavion3 049fa306b9 Add dynamax buffs 2024-04-23 12:02:09 -04:00
Flashfyre 4950dd0e73 Fix shiny variant back sprite color mapping not working 2024-04-22 00:31:33 -04:00
Flashfyre 4fc194295b Remove event shiny bonus 2024-04-21 19:58:55 -04:00
Xavion3 c3eaa0506f Make it so you can't freeze in sun 2024-04-21 00:41:33 -04:00
Flashfyre 9b03d6f8d3 Fix crash related to fusion sprites 2024-04-20 16:08:33 -04:00
Flashfyre f0ac060466 Add temporary shiny rate increase for event 2024-04-19 19:49:58 -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
Temps Ray e94b17bbf5 Implement getAttackTypeEffectiveness check 2024-04-19 13:11:41 -04:00
Flashfyre bd80281859 Fix various shiny checks for palettes 2024-04-19 11:11:19 -04:00
Flashfyre 7ed8dba46a Fix undefined variant for existing shinies in runs 2024-04-19 01:44:51 -04:00
Flashfyre 6220165315 Fix issue with undefined variant 2024-04-19 01:25:19 -04:00
Flashfyre 3f9e7b4839 Working fix to shiny crash issue 2024-04-19 00:58:59 -04:00
Flashfyre c76f8c5e7e Add tiered shiny variants 2024-04-18 22:52:26 -04:00
Xavion3 0b4963aefc Block form changing abilities while fused 2024-04-18 18:56:50 -04:00
Xavion3 453c5644aa Fix mold breaker + implement neutralising gas 2024-04-18 10:52:31 -04:00
Tempoanon cf2bd4d3da
Implement Charge and more abilities (#163)
* Implement Rivalry

* Implement Quick Feet, Liquid Voice, and Normalize

* Forgot paralysis is half speed instead of a quarter

* Remove log statements

* Fix minor edge case in rivalry for gendered vs genderless

* Add wind abilities and charge

* Implement Charge and more abilities

* Add i18n support and Beedrill fury cutter

* Fix merge conflict in taunt

* More English strings removed
2024-04-17 01:09:15 -04:00
Ishan Patel 1f9834d1f6
Fixed when roost removes flying type (#148)
* Initial push with roost fix

* Roost fix

* Added GROUNDED to Levitate

* Cleaned up GROUNDED code
2024-04-16 14:31:30 -04:00
Xavion3 420d7fbade Fix paralysis speed drop
Should only be 0.5x
2024-04-16 12:25:41 -04:00
Flashfyre 05bb384934 Update crit chance to gen 7 odds 2024-04-16 12:14:33 -04:00
shayebeadling 95aa78487f
Present implementation, adds a 0 dmg override for 0 power moves. (#152)
* Implements present, adds an override in the dmg calc to make 0 power moves do 0 dmg

* present doesn't make contact

* removes console log

* only === 0
2024-04-16 00:41:15 -04:00
prateau 0196cf8310 Add snow as a weather 2024-04-15 17:45:52 -04:00
LaukkaE 2a5351e2f6
impl Priority immunity abilities (#137) 2024-04-15 12:48:33 -04:00
Xavion3 6881246d17 Implement check functions for abilities 2024-04-15 01:11:27 -04:00
lucfd d699a0f7d4
Implemented barrier-breaking moves (#130)
* Implemented barrier-breaking moves

* removed (P) from move names

* refactored to support defog
2024-04-14 22:26:58 -04:00
Madmadness65 e0dd7d6d48 Implement Shields Down's form change; Fix wild Rotom forms not appearing
Shields Down is only partially implemented; the form changing aspect is implemented, but the immunity to statuses is not yet.
Minior's alternate colored forms can now be encountered in the wild.
Rotom's appliance forms should *finally* appear in the wild correctly now.
And a minor fix for Zen Mode activating incorrectly.
2024-04-14 20:32:17 -05:00
Flashfyre 99aa7854c0 Prevent replacing learnset when species is overridden 2024-04-14 20:23:51 -04:00
surniki 208279ce77 Copies the moveset of the evolving Nincada to the newly generated pokemon for Shedinja. 2024-04-14 20:09:58 -04:00
Flashfyre 669bc367e5 Fix Super Luck working on the wrong side 2024-04-14 18:19:35 -04:00
Tempoanon 946e6d8c5c
Implement Rivalry, Quick Feet, Liquid Voice, and Normalize (#108)
* Implement Rivalry

* Implement Quick Feet, Liquid Voice, and Normalize

* Forgot paralysis is half speed instead of a quarter

* Remove log statements

* Fix minor edge case in rivalry for gendered vs genderless
2024-04-14 13:15:01 -04:00
Flashfyre 75ce0e8f73 Fix transform and imposter not copying ability 2024-04-14 12:23:49 -04:00
Xavion3 cc20d24afa
Implement sucker punch (#121)
* Implement sucker punch

* Fix variable name
2024-04-14 11:54:46 -04:00
Flashfyre 824a73ef71 Add candy system for passives and value reductions 2024-04-13 18:59:58 -04:00
LaukkaE 8cf8ce1258 Fix terrain power boosting
fix
2024-04-13 13:51:13 -04:00
EmoUsedHM01 cabba43598
Added support for Super Luck with BonusCritAbAttr (#106)
* Fixed Super Luck, and added a new BonusCritAbAttr

* Added crit clause for BonusCritAbAttr ( Super Luck )

* Changed it to +1 like it should be
2024-04-12 17:21:56 -04:00
EmoUsedHM01 930c14fa62
Laser Focus support, with the added BattlerTagTypes to support it (#103)
* Added a new BattlerTagType and support for Laser Focus

BattlerTagType.ALWAYS_CRIT

* Updated battler-tags to support ALWAYS_CRIT

* Added ALWAYS_CRIT = "ALWAYS_CRIT", for the updated battler-tag-type

* Updated the crit formula to include the new critAlways

* Updated crit logic to include critAlways, fixed indents
2024-04-12 16:05:32 -04:00
Flashfyre 3961550f62 Fix fusion move learning bug and inaccurate HP in battle info 2024-04-11 20:40:16 -04:00
Flashfyre 3e9fdc2d0a Fix rest not overriding status 2024-04-11 20:01:43 -04:00
Flashfyre d50521755e Fix fusion move merge happening after wave end 2024-04-11 16:30:29 -04:00
Flashfyre 3d959e3860 SpDef boost in sandstorm only applies to rock types 2024-04-11 14:52:32 -04:00
Flashfyre 377dabdb27 Boss buffs ignore abilities 2024-04-11 12:11:55 -04:00
Flashfyre 43bf8e13ea Fix stack overflow with weather abilities 2024-04-11 09:39:15 -04:00
Flashfyre fbb901e591 Temporarily disable passive abilities 2024-04-11 09:30:40 -04:00
Flashfyre 31050a5181 Add passive secondary abilities for bosses 2024-04-11 09:24:03 -04:00
Xavion3 4f63b83bd9 Add support for variable category moves
Also lets shell side arm poison
2024-04-10 22:41:16 -04:00
Flashfyre 81536e7e8e Ignore fusion species generation on egg hatch 2024-04-10 20:31:52 -04:00
Flashfyre 012158e7ff Improve enemy move selection AI 2024-04-10 12:49:23 -04:00
Flashfyre ca778e07d5 Implement Pokemon fusion icons 2024-04-10 10:57:06 -04:00
LaukkaE 973eefee1d Add electric terrain electric type boost 2024-04-10 09:12:27 -04:00
LaukkaE 2a5cfbf758 Psyblade & Rising voltage affected by Electric Terrain
fix
2024-04-10 09:12:27 -04:00
LaukkaE c9eff345cf
Implement Aura Wheel and Raging Bull types (#69)
* Implement Aura Wheel and Raging Bull types

* Account for fusion
2024-04-09 14:02:41 -04:00
Flashfyre 52f0f5a149 Fix status move immunity not working (ie. Thunder Wave) 2024-04-08 16:02:12 -04:00
Flashfyre fdcefbd5c1 Fix weather and terrain abilities not applying in endless mode on biome switch 2024-04-08 09:31:30 -04:00
musicman928 b7368afa9e Add type change abilities 2024-04-07 22:27:07 -07:00
Flashfyre a0e2427974 Fix strong winds effect not working on moves 2024-04-07 23:18:04 -04:00
neverblde 6decbec6a9 Fix pokemon applying burn reduction 2024-04-07 08:49:46 -04:00
Flashfyre 70a4d54ec9 Predetermine overflow line breaks 2024-04-06 23:03:20 -04:00
Flashfyre 570f10345b Add missing weather effects for fog and strong winds 2024-04-06 22:10:38 -04:00
Flashfyre 59cb4daa52 Fix gendered form evolutions always assigning male 2024-04-06 20:48:58 -04:00
Flashfyre 6821404023 Filter out sacrificial moves from boss movesets 2024-04-06 19:41:12 -04:00
Matthew 3dabfd3c55 Fix sturdy 2024-04-06 01:51:42 -04:00
Flashfyre 7fc4dbce85 Fix immutable weather conditions expiring 2024-04-05 23:45:31 -04:00
Flashfyre 4c383e105f Add evolution for secondary fusion species 2024-04-05 21:12:29 -04:00
Matthew 5b2925cf85 Endure updated 2024-04-05 18:50:10 -04:00
Flashfyre e2a49ffa25 Fix critical hits causing decimal damage 2024-04-05 18:38:46 -04:00
Flashfyre 77e8ff3785 Nerf critical hit damage to 1.5x 2024-04-05 15:47:46 -04:00
Jaime 887a4176ab Implemented moves Reflect, Light Screen and Aurora Veil 2024-04-05 11:44:21 -04:00
Flashfyre 37eb5c8eb0 Add more recent move selections for trainer and boss Pokemon 2024-04-05 11:42:55 -04:00
Flashfyre efb6b9dbc9 Fix stat drops always being ignored 2024-04-05 07:32:56 -04:00
Flashfyre 2fab4a35ab Fix critical hit logic 2024-04-05 00:13:03 -04:00
Flashfyre eaba6e655c Revert crit change 2024-04-04 23:57:28 -04:00
Flashfyre a45fe05f53 Critical hits ignore stat drops and X items last 10 battles 2024-04-04 23:32:09 -04:00
Flashfyre 8b84965d7a Remove revive tokens, nerf heal token, add endure token 2024-04-04 22:42:24 -04:00
Flashfyre e76fa25bc8 Fix attack type boosters applying universally and buff Soul Dew 2024-04-04 20:33:08 -04:00
Flashfyre 87e0e06b9e Add faster evolution skipping 2024-04-04 18:54:50 -04:00
Flashfyre 4f0b1fdcfb Fix namebox not updating with theme
Fix namebox not updating with theme; ban certain species from being used by trainers
2024-04-04 18:00:21 -04:00
Flashfyre b04cdd3f60 Fix final boss burn cheese 2024-04-04 14:20:14 -04:00
Flashfyre 563ff21ad4 Fix moveset generation priority reversed 2024-04-03 16:35:11 -04:00
Flashfyre 4d2d04858f Fix tera power boost still applying when multi scope is held 2024-04-03 12:36:19 -04:00
Flashfyre 5759a5e5ce Add Multi Lens item 2024-04-03 11:42:09 -04:00
Flashfyre ae03f541dd Allow Kyurem forms to be fused 2024-04-03 10:38:36 -04:00
Flashfyre 7400ba0503 Update IVs in dex on evolution 2024-04-03 09:23:45 -04:00
Flashfyre 880433a7f8 Fix not setting initial nature override 2024-04-02 23:47:48 -04:00
Flashfyre 6bb40c6d15 Fix Soul Dew not factoring in overridden nature 2024-04-02 23:21:55 -04:00
Flashfyre 785840fdf4 Fix crash 2024-04-02 23:12:30 -04:00
Flashfyre 84f6456972 Use nature override property instead of overwriting base nature 2024-04-02 23:00:56 -04:00
Flashfyre dba93a21f0 Fix terrain color ratio 2024-04-02 20:25:35 -04:00
LaukkaE bd1af25c01
implement Darkest Lariat, Chip Away and Sacred Sword (#26)
* implement darkest lariat, chip away, sacred sword

* fix
2024-04-02 13:51:38 -04:00
Flashfyre 91ab0b4b32 Fix Sturdy HP check in wrong place 2024-04-02 01:15:53 -04:00
Flashfyre e171b10d40 Fix Sturdy enduring all hits instead of just from full HP 2024-04-02 01:03:29 -04:00
Flashfyre a33dd47853 Re-implement fixed moveset generation with fix 2024-04-02 00:48:13 -04:00
Flashfyre 5e8b5c8ac7 Revert "Rework moveset generation logic and fix window selection crash"
This reverts commit 321c3f3e90.
2024-04-02 00:27:15 -04:00
Flashfyre 321c3f3e90 Rework moveset generation logic and fix window selection crash 2024-04-02 00:16:06 -04:00
Flashfyre 96288d29ce Fix bug with fainting on force switch out
Fix bug with fainting on force switch out; move overrides in Pokemon to BattleScene
2024-04-01 21:02:48 -04:00
LaukkaE 6a87c1b4cc
Implement freezedry (#22)
* implement freezedry

* remove console log
2024-04-01 13:26:35 -04:00
Flashfyre 366e3e5120 Fix battle RNG varying when loading a game 2024-04-01 12:48:35 -04:00
Flashfyre 03e4115bd7 Fix typo with checking tags for trainer switching 2024-03-31 13:09:53 -04:00
Flashfyre 203ba1646d Make trainer switch AI aware of arena traps 2024-03-31 12:00:54 -04:00
Flashfyre 5cb268a3f0 Fix Stance Change not working on enemy side 2024-03-31 00:10:47 -04:00
Flashfyre 0605b8c55c Fix Stance Change effect not relying on ability 2024-03-30 18:57:21 -04:00
Flashfyre e5ee66b0b7 Implement King's Shield move and Stance Change ability
Implement King's Shield move and Stance Change ability; fix fire moves not all thawing and certain fire moves not thawing user
2024-03-30 18:46:33 -04:00
Flashfyre b85f093674 Grass types are immune to powder moves 2024-03-30 17:23:58 -04:00
Flashfyre bb185d9845 Fix ice types immune to sleep 2024-03-30 17:11:34 -04:00
Flashfyre dbca257a76 Add Schooling ability for Wishiwashi and fix Beast Boost 2024-03-30 00:53:35 -04:00
Flashfyre fa7c1684f7 Fix tag source linking 2024-03-29 15:43:36 -04:00
Flashfyre dff9a21a0b Fix not properly checking damage greater than 0 for certain effects 2024-03-29 15:00:16 -04:00
Flashfyre a240a45318 Implement False Swipe and Hold Back moves 2024-03-29 11:58:22 -04:00
Flashfyre 4f62dec998 Implement Helping Hand move 2024-03-29 10:07:04 -04:00
Flashfyre 23e3bdc960 Bosses generate with higher IVs 2024-03-29 00:03:54 -04:00
Flashfyre 11bd7fdbca Implement Prankster ability 2024-03-28 16:24:11 -04:00
Flashfyre 0afec8fd35 Rebalance trainer evolution logic 2024-03-28 14:05:15 -04:00
Flashfyre 7a508c485a Fix grounding check not working properly after new changes 2024-03-28 10:35:18 -04:00
Flashfyre cedc1fb3b2 Fix the way ignore flying tag works 2024-03-28 10:28:05 -04:00
Flashfyre 2cc38ac2cb Fix softlock with switch out moves used on player 2024-03-28 00:05:48 -04:00
Flashfyre 63a6655759 Fix Transform and Imposter causing crash 2024-03-27 23:44:11 -04:00
Flashfyre b94215e3f6 Attempt fixing issue with form-specific moves in learnset not being used 2024-03-27 12:38:36 -04:00
Flashfyre 8bdab3d3bc Fix dividing by 0 when calculating party member scores 2024-03-26 16:07:59 -04:00
Flashfyre 85d09462ad Fix moveset generation logic 2024-03-25 15:22:37 -04:00
Flashfyre bd67ccde8b Revert "Fix random moveset generation logic not working properly with evolutions"
This reverts commit a8cabd50d9.
2024-03-25 14:44:40 -04:00
Flashfyre 3ce8697c23 Make AI a bit more intelligent in attack move interactions 2024-03-25 14:38:07 -04:00
Flashfyre a8cabd50d9 Fix random moveset generation logic not working properly with evolutions 2024-03-25 14:27:04 -04:00
Flashfyre 892d99a4f9 Add 50% chance to offset gym leader wave by 10 in classic 2024-03-25 11:00:42 -04:00
Flashfyre a22d50caa7 Fix abilities causing permanent weather and terrains 2024-03-25 10:22:16 -04:00
Flashfyre efa8d4f3fc Fix summon data not being loaded in on session load 2024-03-25 10:16:29 -04:00
Flashfyre 4f88bd3dab Fix final boss nerf 2024-03-24 19:52:30 -04:00
Flashfyre b9805ceabf Update moveset generation logic 2024-03-24 18:57:24 -04:00
Flashfyre 6fce502b88 Nerf PP on a certain final boss move 2024-03-23 23:07:49 -04:00
Flashfyre 1d39f0eeeb Fixed form-based evolutions not taking form into account 2024-03-22 21:38:10 -04:00
Flashfyre 7189258095 Actually fix single battle summoning issue 2024-03-21 12:34:19 -04:00
Flashfyre 918a0d77f1 Fix for single battle trainer summoning issue 2024-03-21 12:18:10 -04:00
Flashfyre 664142b625 Shift trainer pair sprite position 2024-03-21 01:29:19 -04:00
Flashfyre a76f795cd5 Trainer updates including names and double battle pairs
Add dynamic trainer pairs; add trainer names with Bulbapedia scraping logic; add Hex Maniac trainer; make namebox stretch to fit name
2024-03-21 00:57:28 -04:00
Flashfyre 255177857f Update moveset generation to included evolved lower level moves 2024-03-19 20:09:22 -04:00
Flashfyre 6feef82fcf Simulate evolution chain when generating movesets 2024-03-19 19:52:27 -04:00
Flashfyre 98e88a160b Implement Bolt Beak, Fishious Rend, and Magnitude 2024-03-18 22:05:21 -04:00
Flashfyre 5c02455c97 Implement Protosynthesis and Quark Drive 2024-03-18 21:22:27 -04:00
Flashfyre aa1e1a480f Add Psychic Terrain priority block effect and terrain messages 2024-03-18 18:03:13 -04:00
Flashfyre 27e40d8526 Add Toxic Spikes neutralization 2024-03-17 23:47:46 -04:00
Flashfyre a05189120c Add power plant background 2024-03-17 16:47:49 -04:00
Flashfyre 0701598be6 Add session scores 2024-03-17 11:36:19 -04:00
Flashfyre 56f4a71ca6 Add daily runs (WiP) 2024-03-16 22:06:56 -04:00
Flashfyre 81f9e2da36 Add WiP logic for daily run and fix some performance issues 2024-03-15 21:59:34 -04:00
Flashfyre 10cacbe5af Fix Fake Out logic 2024-03-14 18:03:38 -04:00
Flashfyre 623d600e13 Add wrapper for game mode 2024-03-14 16:26:57 -04:00
Flashfyre 0c835f4157 Implement various abilities including Mold Breaker 2024-03-14 00:40:57 -04:00
Flashfyre 54eed194fd Fix Misty Terrain softlock 2024-03-13 20:36:25 -04:00
Flashfyre b93e4397fa Fix formatting and remove stray character 2024-03-13 08:51:07 -04:00
Xiaphear 9d2d03ee44 Added Tinted Lens. 2024-03-13 12:45:31 +01:00
Flashfyre 71e820f149 Add redirection logic to Lightning Rod and Storm Drain 2024-03-11 20:55:41 -04:00
Flashfyre f7d89b5268 Implement Psyshock 2024-03-11 18:18:55 -04:00
Xiaphear 56250aca9c Added Body Press 2024-03-11 21:45:32 +01:00
Flashfyre 4c5981c126 Update token logic, nerf revive tokens, and add Fusion Token 2024-03-11 00:16:24 -04:00
Flashfyre 20e9a1e761 Fix grassy terrain heal being applied to all terrains 2024-03-10 00:14:09 -05:00
Flashfyre 47cf14da9b Implement terrains and rework status logic 2024-03-09 21:57:33 -05:00
Xiaphear b9395ebd7f Implemented Sturdy. 2024-03-09 23:49:00 +01:00
Flashfyre 6a6d676cb2 Attempt fixing one hit KO 2024-03-09 10:40:51 -05:00
Flashfyre e2bfac8922 Add unique Rogue Ball sprites 2024-03-05 19:48:41 -05:00
Flashfyre 6886108ee8 Fix clear arena tags not working properly 2024-03-04 23:22:22 -05:00
Flashfyre 95bfb2a056 Implement Skill Swap and fix Wonder Guard with status moves 2024-03-04 21:32:11 -05:00
Flashfyre 893c20fc16 Remove status effect move type immunity 2024-03-04 20:28:55 -05:00
Flashfyre 123d268619 Fixed damage moves are no longer affected by tokens 2024-03-03 23:55:52 -05:00
Flashfyre 413d748287 Fix moves that ignore boss segments not breaking segments 2024-03-03 23:50:33 -05:00