Commit Graph

400 Commits

Author SHA1 Message Date
prateau
509954995c update moves and abilities that takes effect in snow 2024-04-15 17:45:52 -04:00
LaukkaE
e15b810f6a Prevent crash with trace 2024-04-15 16:08:54 -04:00
LaukkaE
2a5351e2f6
impl Priority immunity abilities (#137) 2024-04-15 12:48:33 -04:00
AJ Fontaine
76edb00e31 Thermal Exchange 2024-04-15 12:18:00 -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
Appo
c8445ba8dd Implement Competitive
Since Competitive is just Defiant but for SPATK, the code for Defiant was reused with the buff changed to special attack. This should mean the ability works the exact same way as Defiant for it's respective stat.
2024-04-14 16:52:44 -04:00
shayebeadling
90ef58d7a4
Defiant implementation (#128)
* Defiant works, but self inflicted stat changes still proc the stat raise.

* Prevents proc from self-targeted stat reductions, like superpower
2024-04-14 14:20:00 -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
cornfish
c25cb50b31
Implement toxic chain (#126)
* implement toxic chain

* fix for self target like roost
2024-04-14 13:13:17 -04:00
Flashfyre
75ce0e8f73 Fix transform and imposter not copying ability 2024-04-14 12:23:49 -04:00
Xavion3
4078518c5f
Add support for ability changing effects (#113)
* Add support for ability changing effects

* Fix doodle with a fainted ally in doubles
2024-04-13 23:21:34 -04:00
Xavion3
66ef42db85 Update ability attributes 2024-04-12 22:25:22 -04:00
Madmadness65
92812aae1d Draining Kiss now restores 75% of damage dealt 2024-04-12 19:02:24 -05:00
Flashfyre
f6770b83b5 Add missing passive parameter to BonusCritAbAttr 2024-04-12 19:31:08 -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
William Burleson
389278a1b0
Implement download (#99)
* Implement Download

* Fix formatting
2024-04-12 16:08:04 -04:00
Madmadness65
dcb4688c76 Revert "Update Gen 4 & 9 egg moves"
This reverts commit eef83432ab.
2024-04-12 14:54:01 -05:00
Madmadness65
eef83432ab Update Gen 4 & 9 egg moves 2024-04-12 14:40:14 -05:00
AppleOfTheDark
d05fab041c
Snow Cloak Conditional Fix (#91)
* Snow Cloak Hail Condition Fix

Snow Cloak's evasion wasn't actually checking for hail, so the condition has been added.

* Snow Cloak

getWeatherCondition is not meant to have a capital.
2024-04-11 15:52:15 -04:00
Flashfyre
31050a5181 Add passive secondary abilities for bosses 2024-04-11 09:24:03 -04:00
AppleOfTheDark
b9a068e3b7
Implement Shed Skin (and Hydration!) (#84)
* Implement Shed Skin (and Hydration!)

Implemented Shed Skin, with a 1/3 chance to remove a non-volatile status condition if inflicted with it at the end of each turn. While doing this I noticed Hydration is the same effect but in Rain/Heavy Rain, so I implemented that too.

* Update to ability.ts based on changes.

Formatting errors should be largely fixed, and we've switched from Math.rand to Utils.

* Update src/data/ability.ts

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-04-11 00:16:09 -04:00
kd8lvt
3e5a0d5c9c
Implement Aftermath (#71)
* Implement Aftermath

* Clean up unused imports & Consistency

* Minor changes

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-09 18:05:15 -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
5844f2d742 Fix poison immunity abilities not working with toxic 2024-04-08 13:21:06 -04:00
LaukkaE
34cb70afa5 Implement Triage and Gale Wings
add move.ts
2024-04-08 10:16:50 -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
LaukkaE
fb9f5dad11
Properly implement Soul-Heart, Fix Opponent Stage boosts on faints (#53)
* Properly implement Soul-Heart, Fix Opponent Stage boosts on faints

add phases.ts

remove unused import

spacing

fix

* simplify alivePlayField
2024-04-07 17:20:24 -04:00
Madmadness65
c9de57185e Implement Sand Spit ability; Increase Nymble's starter cost
The ability Sand Spit is now functional.
Unrelatedly, Nymble has now been doubled in starter cost from 2 to 4 (it's just too good to be too low).
2024-04-07 14:01:48 -05:00
Potattiummm
0597d04784
Added Ice Scales 2024-04-07 19:36:56 +01:00
Madmadness65
0cb008adb0 Implement Gooey and Tangling Hair abilities 2024-04-06 22:18:12 -05:00
Madmadness65
af3d9cb34c Implement Steam Engine ability
Have fun fusing this ability into something wacky.
2024-04-06 22:01:08 -05:00
Madmadness65
8446130728 Fully implement Spiky Shield move 2024-04-06 21:50:17 -05:00
kd8lvt
70ce649eec
Implement contact-damage abilities (#49)
* Fix checking the wrong Pokemon for statuses when determining if abilities such as Static should activate.

* Implement Rough Skin

* Implement Iron Barbs and make Rough Skin code reusable for other abilities

* Remove unused import

* Changes for consistency

* Add missing ceiling function to damage

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-06 21:04:40 -04:00
LaukkaE
4377596f46
Implement Multiscale, Solid Rock, Filter, Justified, Water Compaction, Soul-Heart, Shadow Shield, Prism Armor (#46)
* Implement Multiscale, Solid Rock, Filter, Justified, Water Compaction, Soul-Heart, Shadow Shield, Prism Armor

fix

fix

* Update src/data/ability.ts

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-04-06 15:39:55 -04:00
Matthew
3dabfd3c55 Fix sturdy 2024-04-06 01:51:42 -04:00
Flashfyre
a6a382e357 Fix Poison Point odds 2024-04-05 14:38:54 -04:00
Flashfyre
1167b21d7e Fix Poison Point not working 2024-04-05 14:26:41 -04:00
LaukkaE
a214e815bc
implement Regenerator (#37)
* implement Regenerator

* fix
2024-04-05 10:32:36 -04:00
Jaime
36b3c91276 Implemented the abilities Stamina and Weak Armor 2024-04-04 18:35:15 -04:00
Flashfyre
84f6456972 Use nature override property instead of overwriting base nature 2024-04-02 23:00:56 -04:00
Madmadness65
08beae9cee Implement Embody Aspect abilities
More work toward getting Ogerpon's unique Terastal forms functional. Also fixes the graphics for the Terastal Ogerpon forms, as they were scaled incorrectly.
2024-04-02 18:03:49 -05:00
Flashfyre
f95f3ff30e Implement Magic Guard ability 2024-04-02 15:14:07 -04:00
Flashfyre
e171b10d40 Fix Sturdy enduring all hits instead of just from full HP 2024-04-02 01:03:29 -04:00
Madmadness65
b2f79c5756 Partially implement Good as Gold
It can block basic status attacks currently.
2024-04-01 22:16:16 -05:00
Madmadness65
077d87ade8 Implement Intrepid Sword & Dauntless Shield abilities 2024-04-01 15:34:46 -05:00
Flashfyre
332e658555 Pass ability arguments to trigger message 2024-03-30 23:49:29 -04:00
Madmadness65
8845d43784 Partially implement Flower Gift
The Attack and Special Defense boost works, but only for the ability holder currently. It does not change Cherrim's form yet.
Also adds the necessary battler tag entries because I forgot them in the previous commit.
2024-03-30 18:56:13 -05: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
Madmadness65
4b772c903a Implement Zen Mode ability 2024-03-30 13:02:58 -05:00
Madmadness65
160072ac5e Implement Hunger Switch ability
Aura Wheel still does not change types based on Morpeko's current form, however.
2024-03-30 12:01:49 -05:00
Flashfyre
7cd1cbcf5e Add missing Schooling ability effect level requirement 2024-03-30 09:07:06 -04:00
Madmadness65
c3a163b348 Implement Tera Shift ability 2024-03-30 00:19:54 -05:00
Flashfyre
dbca257a76 Add Schooling ability for Wishiwashi and fix Beast Boost 2024-03-30 00:53:35 -04:00
Madmadness65
0bd941d6a1 Implement more stat-boosting abilities
This implements Chilling Neigh, Grim Neigh, and both As One abilities.
Also separates the Embody Aspect ability into four for later when it's implemented, and adds the graphics for Ogerpon's Terastallized forms.
2024-03-29 22:19:10 -05:00
Flashfyre
7f2dd28832 Implement Moxie and Beast Boost abilities 2024-03-29 22:08:27 -04:00
Flashfyre
8915b2acec Fix Prankster ability not working properly 2024-03-28 21:35:30 -04:00
Flashfyre
11bd7fdbca Implement Prankster ability 2024-03-28 16:24:11 -04:00
Madmadness65
211d8d3636 Fix Poison Touch not working as intended 2024-03-27 23:02:49 -05:00
Flashfyre
63a6655759 Fix Transform and Imposter causing crash 2024-03-27 23:44:11 -04:00
Flashfyre
c9eac1f510 Fix Adaptability popup triggering falsely on non-STAB moves 2024-03-26 09:32:02 -04:00
Flashfyre
a22d50caa7 Fix abilities causing permanent weather and terrains 2024-03-25 10:22:16 -04:00
Flashfyre
c77ea04120 Fix static ability broken and causing crash 2024-03-24 22:43:35 -04:00
Flashfyre
a333f7886c Fix effect spore and similar abilities activating on the wrong target 2024-03-23 10:54:16 -04:00
Flashfyre
5c02455c97 Implement Protosynthesis and Quark Drive 2024-03-18 21:22:27 -04:00
Flashfyre
4432522e15 Fix weather damage ability flavor text 2024-03-17 23:21:30 -04:00
Madmadness65
76de0d01f9 Correct Huge Power and Pure Power
They now increase the attack stat directly, instead of stat boosts (which was unintended).
2024-03-14 14:09:25 -05:00
Madmadness65
66b306de9e Add Turboblaze/Teravolt flavor text 2024-03-13 23:56:18 -05:00
Flashfyre
0c835f4157 Implement various abilities including Mold Breaker 2024-03-14 00:40:57 -04:00
Madmadness65
9384344758 Implement various terrain-related abilities
Fully implements Electric, Psychic, Misty, and Grassy Surge. Partially implements Grass Pelt, Surge Surfer, and Hadron Engine, as their stat-boosting properties don't seem to work as intended.
2024-03-13 12:23:31 -05:00
Xiaphear
97b029b5d7 Added Defeatist 2024-03-13 13:54:15 +01: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
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
4d8663d274 Fix pickup working on the same item multiple times 2024-03-08 14:49:17 -05:00
Flashfyre
d18eba4df8 Fix Pickup causing crash outside of battle 2024-03-07 08:23:21 -05:00
Flashfyre
113ac10c1b Implement Pickup ability 2024-03-06 21:05:23 -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
6f54fa7741 Fix damage display issues with battle info 2024-03-01 10:28:29 -05:00
Flashfyre
1f6a6f4621 Damage-related fixes and changes
Apply damage numbers to all damage and heal; fix some damage-related bugs
2024-03-01 09:35:36 -05:00
Flashfyre
f48464d48d Minor refactoring 2024-02-29 20:08:58 -05:00
Flashfyre
fdff3a549c Factor type immunity abilities into enemy AI 2024-02-28 11:40:30 -05:00
Flashfyre
085dd15651 Fix broken type immunity ability 2024-02-23 09:24:49 -05:00
Madmadness65
76a6df43c4 Fix off-by-one champions; implement Strong Jaw
This fix currently has the unintended side effect of making Champion Leon unable to be fought, but every other set of Elite Fours is now followed by the proper Champions as intended.
2024-02-22 23:24:44 -06:00
Flashfyre
3ed80de330 Type immunity abilities only affect attack and status moves 2024-02-22 16:30:55 -05:00
Flashfyre
4e93f1e52c Display enemy trainer briefly when switching 2024-02-22 00:00:51 -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
84fe12d83a Implement some abilities 2024-01-16 00:28:03 -05:00
Flashfyre
63cb2ae22f Implement some moves and update arena tags to include side 2024-01-15 23:29:22 -05:00
Flashfyre
052564f902 Update final boss fight and restructure some files 2024-01-13 12:24:24 -05:00
Flashfyre
8cc1982859 Add natures 2024-01-05 22:31:13 -05:00
Flashfyre
e05bf78481 Overhaul random logic and implement battle seed 2024-01-02 21:31:59 -05:00
Flashfyre
40eed4464d Implement various abilities 2023-12-23 01:21:01 -05:00
Flashfyre
40a4d4cf13 Fix issues with Sticky Hold ability 2023-12-22 23:58:53 -05:00
Flashfyre
2bb1676d82 Implement Slow Start ability 2023-12-22 22:46:05 -05:00
Flashfyre
0b5adbb43c Refactor ability hook functions to remove code duplication 2023-12-22 22:04:30 -05:00
Flashfyre
6391e05508 Convert apply attribute functions to promises 2023-12-22 21:42:47 -05:00
N1ghtz567
53fb56391b Implement 2 abilities 2023-12-22 18:08:37 -04:00
Flashfyre
7deab1c545 Implement some abilities 2023-12-22 01:21:05 -05:00
Flashfyre
71fdafe8fb Add egg logic and hatching screen (WiP) and end biome arena BG 2023-12-15 23:07:32 -05:00
Madmadness65
fc2665b3f0 Implement type-boosting abilities
This affects Steelworker, Transistor, Dragon's Maw, and Rocky Payload.
2023-12-14 11:52:30 -06:00
Madmadness65
625359fb39 Add Indigo Disk data
New Pokémon, moves, learnsets, TMs, and evolution data added in various states of completeness. Until graphics are made for the new Pokémon, they cannot be used yet.
2023-12-14 03:03:00 -06:00
Flashfyre
243bfa1624 Add missing Mega Diancie evolution 2023-12-14 01:01:10 -05:00
Madmadness65
9d3b936ade Use the actual ability descriptions
With the implementation of text scrolling in the ability text box, the shortening is no longer necessary.
2023-12-11 11:23:00 -06:00
Flashfyre
7047448382 Add scrolling ability text 2023-12-11 11:09:58 -05:00
Madmadness65
a4f3408c7d Add descriptions to generation 9 abilities
They have also been sufficiently squished to fit within the gen 3 style UI.
2023-12-11 01:41:33 -06:00
Flashfyre
552bda9840 Implement some abilities 2023-12-10 22:29:13 -05:00
Flashfyre
e7ec5b4f88 Implement generation 6 Pokemon and some moves 2023-12-08 16:29:03 -05:00
Flashfyre
fab2d9b788 Soft implement gen 6-9 species, abilities, and learnsets 2023-12-05 17:12:39 -05:00
Hyun Ahn
07f82dfcac
Implement solarpower (#10)
* Implement solarpower

* Fix after review

* Fix after review

* Update src/data/ability.ts

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2023-11-28 08:20:10 -05:00
Flashfyre
1040b2f1d7 Fix incorrect operator used for ability weather damage formula 2023-11-28 08:15:50 -05:00
Hyun Ahn
3e8b047cbd
implement_sand_rush_ability (#9)
* implement_sand_rush_ability

* after review fix

* Update src/data/ability.ts

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2023-11-27 22:34:19 -05:00
Hyun Ahn
7f30cc1d37 implement_hustle_ability 2023-11-27 20:58:01 -05:00
Flashfyre
1e2bd0dbb9 Minor change to sprite shader 2023-11-26 09:53:16 -05:00
Hyun Ahn
0c5e451606 hyun/imple_slush_rush 2023-11-24 22:25:51 -05:00
Flashfyre
e5fe0c6e3a Add transform support to fusion palette swaps 2023-11-24 15:12:26 -05:00
Flashfyre
28f8fdfdc1 Implement unaware ability 2023-11-05 23:27:40 -05:00
MonkehestMan
bb4f35095d Contrary + Simple implemented 2023-11-06 16:11:38 +13:00
Flashfyre
179d1bcb13 Implement Pressure ability 2023-10-30 00:16:23 -04:00
Flashfyre
813b4894f3 Implement Transform move and Imposter ability 2023-10-29 01:28:56 -04:00
xDasone
95f645dd23 Merge branch 'main' of https://github.com/Flashfyre/pokemon-rogue-battle 2023-10-28 14:37:17 -07:00
xDasone
8bad05ea97 Fixed Huge Power, and Pure Power not giving the correct boost 2023-10-28 14:37:00 -07:00
Flashfyre
d1c58224bc Add base logic for enemy buff modifiers 2023-10-28 13:24:57 -04:00
xDasone
1d8cf50f1b Implemented Anger Point Ability 2023-10-26 21:12:53 -07:00
Flashfyre
d54a4be7b4 Implement Adaptability ability 2023-10-26 20:02:30 -04:00
Flashfyre
c778ef5e36 Add Mega Rayquaza (static sprite) 2023-10-20 14:19:22 -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
105b5cd510 Fix some bugs and add factory bg 2023-06-01 13:54:52 -04:00
Samuel H
b9f7ba173d
Implement Double Battles (#1)
* Add WiP logic for double battles

* Minor changes for double battles

* More fixes for double battles

* Show battle info for both in double battles

* Improvements to double battles

* Add double battle version of party UI

* Fix some issues with double battles

* Updates to double battles

* More work on double battles for stability

* Fix issues with ability bar and evolution screen

* Add chance for double battles
2023-05-18 11:11:06 -04:00
Flashfyre
b82d3a55e4 Implement some moves 2023-05-08 18:48:35 -04:00
Flashfyre
c88828548c Implement some abilities 2023-05-06 12:13:35 -04:00
Flashfyre
15cfd3bad4 Add color change ability, some moves, and fix mimic 2023-05-06 00:42:01 -04:00
Flashfyre
c25b2332f2 Implement some abilities 2023-05-04 14:06:31 -04:00
Flashfyre
d1d65708ce Implement some abilities and attract move 2023-05-04 12:57:55 -04:00
Flashfyre
5413fd5c9c Fix stack overflow 2023-05-02 22:27:04 -04:00
Flashfyre
c49bac094f Attempt fixing stack overflow 2023-05-02 20:53:06 -04:00
Flashfyre
76ceed52a3 Fix levitate ability effect 2023-05-02 16:58:18 -04:00
Flashfyre
dafe502b3c Implement some abilities 2023-05-02 15:56:41 -04:00
Flashfyre
60f191e60d Add battler stat multiplier ability attribute 2023-05-02 00:11:31 -04:00
Flashfyre
f6c7a2906d Add crit block abilities and fix some common anims 2023-05-01 22:07:00 -04:00
Flashfyre
fe298c39e2 Add tall grass BG and fix a hanging bug with charge moves 2023-04-30 23:58:16 -04:00
Flashfyre
2062d44026 Add Wonder Guard ability and remove test code 2023-04-27 14:56:30 -04:00
Flashfyre
005cc9b7d5 Add more abilities and move contact flag 2023-04-27 14:30:03 -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
ebdfb7b4cb Add items and ability to summary 2023-04-23 18:40:21 -04:00
Flashfyre
3546f3b5a7 Refactor source files and add berries 2023-04-20 15:46:05 -04:00