Commit Graph

328 Commits

Author SHA1 Message Date
Dakurei
37266a7a5d
Fixing typo (fr locales) + Add missing i18n (#270)
* Fix typo

* Missing usage of i18n
2024-04-24 14:38:46 -04:00
Samuel H
9024eeb990
Aggregate Stat Changes (#266)
* Add stat change aggregation

* Minor fixes to stat change aggregation
2024-04-24 00:25:01 -04:00
Flashfyre
3e296116bb Fix passing wrong argument when initializing move animations 2024-04-23 23:28:55 -04:00
Flashfyre
ba71d2750b Load files from manifest for caching 2024-04-23 22:00:23 -04:00
Flashfyre
8f36bf1dcf Don't lapse eggs on the final wave of a run 2024-04-23 13:12:57 -04:00
Flashfyre
216139df5b Re-apply status token shuffling with recursion fix 2024-04-22 23:58:26 -04:00
Flashfyre
fa6f05d997 Revert "Apply status tokens in a random order to prevent bias"
This reverts commit 1f8e36575d.
2024-04-22 23:52:44 -04:00
Flashfyre
1f8e36575d Apply status tokens in a random order to prevent bias 2024-04-22 23:43:31 -04:00
Flashfyre
eeb547417f Endless biomes are short but connected 2024-04-22 20:30:46 -04:00
Flashfyre
26b1bb5f03 Don't increment seen shiny count for trainers 2024-04-22 11:28:13 -04:00
Flashfyre
f8f5b64469 Add One Hit KO accuracy and make damage 200 BP for bosses 2024-04-22 01:05:48 -04:00
Procyonae
fd8cb07c9b
Implement Liquid Ooze (#210)
Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-04-21 23:02:10 -04:00
Flashfyre
291f8570e9 Cap money at max safe integer 2024-04-21 21:17:07 -04:00
Kyle McGlynn
fdc5511356 Fixed bug where Solar Beam wouldn't display if it was sunny 2024-04-21 19:54:34 -04:00
Flashfyre
3d9f5fb157 Protect against cross-session overwrites 2024-04-21 16:19:11 -04:00
Xavion3
24c2e18ed7 Stop weather being regenerated on save load 2024-04-21 12:45:58 -04:00
Flashfyre
c8a9069e8b Add outdated session support and fix older migrations 2024-04-21 10:59:50 -04:00
Xavion3
5b34e7f873 Implement No Guard 2024-04-21 01:34:21 -04:00
LaukkaE
18de28c807 Fix Wide Lens
rm line
2024-04-20 15:02:03 +03:00
Flashfyre
0eff8cd81a Add Wide Lens item 2024-04-20 01:59:07 -04:00
Flashfyre
b5abdc0113 Fix error sound after selecting a biome 2024-04-19 18:56:45 -04:00
Flashfyre
c76f8c5e7e Add tiered shiny variants 2024-04-18 22:52:26 -04:00
Xavion3
453c5644aa Fix mold breaker + implement neutralising gas 2024-04-18 10:52:31 -04:00
Flashfyre
eab38a5ad4 Add more exp gains options 2024-04-18 00:50:04 -04:00
Hans Sorongon
0948295a98 Add option to hide exp gains after a battle 2024-04-18 00:50:04 -04:00
Flashfyre
8ab21b99fb Fix menu disabling 2024-04-18 00:24:57 -04:00
Flashfyre
d210e3878e Disable menu temporarily on receiving a voucher 2024-04-17 15:56:29 -04:00
Flashfyre
b116828b07 Convert biome select UI handler to option select 2024-04-16 15:58:02 -04:00
Flashfyre
dfe320e712 Minor changes to biome paths 2024-04-16 15:22:19 -04:00
Flashfyre
257e222b83 Fix being able to buy Sacred Ash without fainted party members 2024-04-16 12:04:52 -04:00
Flashfyre
6e59b4dd77 Prevent saving on an outdated client 2024-04-15 10:09:51 -04:00
Xavion3
6881246d17 Implement check functions for abilities 2024-04-15 01:11:27 -04:00
Matthew Ross
032ab95756 Additional check for can apply ability after move used 2024-04-14 22:40:26 -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
Flashfyre
598e695348 Fixed damage moves are unaffected by the multi lens 2024-04-14 12:02:44 -04:00
Xavion3
cc20d24afa
Implement sucker punch (#121)
* Implement sucker punch

* Fix variable name
2024-04-14 11:54:46 -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
Flashfyre
824a73ef71 Add candy system for passives and value reductions 2024-04-13 18:59:58 -04:00
neverblde
df949be2bd Refactor some string literals into i18next 2024-04-13 00:49:14 -04:00
kleekie
3d38ad14ca Add crash damage message + battle info update for missed/ineffective moves 2024-04-12 22:21:07 -04:00
James Lin
73c9625df1
Add i18next framework to enable further contributions (#96)
* prototype

* Update with comments and type safety
2024-04-11 23:47:03 -04:00
Flashfyre
a793aedd29 Don't transfer baton item if target is already holding one 2024-04-11 20:58:24 -04:00
Flashfyre
3961550f62 Fix fusion move learning bug and inaccurate HP in battle info 2024-04-11 20:40:16 -04:00
Flashfyre
49f2a5d3eb Unimplemented moves cannot be selected by the play 2024-04-11 18:53:03 -04:00
Flashfyre
af23bfc1f9 Fix post-summon abilities sometimes triggering twice on switch 2024-04-11 12:35:22 -04:00
Flashfyre
377dabdb27 Boss buffs ignore abilities 2024-04-11 12:11:55 -04:00
Flashfyre
c14c581248 Weather damage counts as neutral damage 2024-04-11 10:33:08 -04:00
Flashfyre
31050a5181 Add passive secondary abilities for bosses 2024-04-11 09:24:03 -04:00
Flashfyre
8dc96c0070 Fix triggering summon ability on load 2024-04-10 20:57:22 -04:00
Flashfyre
eb5bdb07a8 Add outage handling 2024-04-10 01:32:49 -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
d9849c5e70 Ignore stat change animations when move animations are disabled 2024-04-09 15:17:42 -04:00
Flashfyre
fbec7b8823 Only apply Pressure effect when targeted 2024-04-08 11:06:06 -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
Flashfyre
0b773ee9c6 Moves by Pokemon not on field are cancelled (IE Future Sight) 2024-04-07 20:44:57 -04:00
Flashfyre
10f987cc5e Fix not setting non initially visible party members as seen 2024-04-07 20:16:03 -04: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
Flashfyre
d41101083e Halve fog accuracy reduction 2024-04-07 17:12:53 -04:00
Flashfyre
39667f3398 Fix freezing after pressing new game without endless unlocked 2024-04-07 00:06:44 -04:00
Flashfyre
e747fa2ecd Increase endless mode limit to 15 2024-04-06 23:50:26 -04:00
Flashfyre
cc98d9da7d Validate full shiny party achievement on initial encounter 2024-04-06 23:14:13 -04:00
Flashfyre
570f10345b Add missing weather effects for fog and strong winds 2024-04-06 22:10:38 -04:00
Flashfyre
307c84914e Buff IV Scanner item 2024-04-06 10:37:54 -04:00
Flashfyre
5ebc351e4f Add a long-term goal 2024-04-05 22:58:40 -04:00
Flashfyre
4c383e105f Add evolution for secondary fusion species 2024-04-05 21:12:29 -04:00
Matthew
1085e0f692 Weather damages through enduring 2024-04-05 20:49:42 -04:00
Stophles
314b7dba43
Fixing Confusion triggering after Sleep, Paralysis, and Recharging (#44)
* Recharge checked earlier, Move Tags not checked if move cancelled

Recharge is now checked at the start of doMove to determine if other Tags need to be checked or if the pokemon is recharging.  If the move is already cancelled, Move lapse tags are no longer checked (To account for Sleep/Paralyze happening before hand, so confusion would never trigger)

* PRE_MOVE Lapse added for Recharge, Recharge now cancels

Added a PRE_MOVE Identifier for Recharge specifically, which now cancels the move and shifts the move queue (since this will no longer occur in doMove. This prevents Confusion/Infatuation from also being triggered after a Pokemon is recharging.

* Changed spacing
2024-04-05 20:42:30 -04:00
Matthew
5b2925cf85 Endure updated 2024-04-05 18:50:10 -04:00
Matthew
6b5bc5b830 Fix duplicate transition at the end of batch hatching 2024-04-05 17:53:36 -04:00
Flashfyre
e7ba9b7b06 Master balls can bypass boss bar segments 2024-04-05 12:30:48 -04:00
Matthew
8945de6d59 Implement Pay Day and Make it Rain 2024-04-05 11:55:16 -04:00
Flashfyre
dd2743bcf5 Discourage enemy trainers from switching too much consecutively 2024-04-05 10:59:03 -04:00
Flashfyre
5bed242002 Add Lock Capsule item and update reroll logic 2024-04-05 10:14:49 -04:00
Flashfyre
8b84965d7a Remove revive tokens, nerf heal token, add endure token 2024-04-04 22:42:24 -04:00
Flashfyre
3e99ed6bb6 Level up sound no longer pauses BGM 2024-04-04 17:43:37 -04:00
Flashfyre
326918a5f1 Add retry option (easy mode) 2024-04-04 15:22:05 -04:00
Flashfyre
23a8fb1fc9 Fix fainted ally targeted attacks redirecting to self 2024-04-04 14:42:20 -04:00
Flashfyre
de77db70d7 Rerolls lock rarity tiers and price accordingly 2024-04-04 00:38:02 -04:00
Flashfyre
77cf3032cf Add title screen music by edifette 2024-04-03 14:33:23 -04:00
Flashfyre
b99b781e0c Fix Baton Pass logic and enemy multi hit AI hitting ally 2024-04-03 12:14:26 -04:00
Flashfyre
5759a5e5ce Add Multi Lens item 2024-04-03 11:42:09 -04:00
Flashfyre
f95f3ff30e Implement Magic Guard ability 2024-04-02 15:14:07 -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
d9ebf99cdd Rework logic for defeat ability trigger 2024-04-02 10:13:00 -04:00
Flashfyre
68f0692849 Fix logic to prevent healing tokens from healing to full 2024-04-02 01:44:38 -04:00
Flashfyre
a3e09ee5cc Fix game not loading if save data is not found 2024-04-01 15:18:15 -04:00
Flashfyre
366e3e5120 Fix battle RNG varying when loading a game 2024-04-01 12:48:35 -04:00
Flashfyre
203ba1646d Make trainer switch AI aware of arena traps 2024-03-31 12:00:54 -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
dbca257a76 Add Schooling ability for Wishiwashi and fix Beast Boost 2024-03-30 00:53:35 -04:00
Flashfyre
371b00561a Only apply Moxie and Beast Boost when on field 2024-03-29 23:16:28 -04:00
Flashfyre
7f2dd28832 Implement Moxie and Beast Boost abilities 2024-03-29 22:08:27 -04:00
Flashfyre
34f748f331 Cries are pitched down when at low HP 2024-03-29 14:42:27 -04:00
Flashfyre
8f0a3f15a3 Change double boss bar split to factor in base stat total 2024-03-29 10:37:28 -04:00
Flashfyre
2b213da4a6 Split double boss HP bar segments 2024-03-29 10:29:19 -04:00
Flashfyre
23e3bdc960 Bosses generate with higher IVs 2024-03-29 00:03:54 -04:00
Flashfyre
20799f5a4c Fix multi target attacks missing when a target is fainted 2024-03-28 21:18:07 -04:00
Flashfyre
11bd7fdbca Implement Prankster ability 2024-03-28 16:24:11 -04:00
Flashfyre
cedc1fb3b2 Fix the way ignore flying tag works 2024-03-28 10:28:05 -04:00
Flashfyre
f0b00f9f27 Add move target redirection 2024-03-28 00:24:24 -04:00
Flashfyre
b24eac4071 Give EXP Balance a 20% factor and increase stack count to 5 2024-03-27 13:26:13 -04:00
Flashfyre
f79337b475 Fix burn damage change affecting poison 2024-03-27 11:42:06 -04:00
Flashfyre
c8ac42f267 Fix Burn damage and add more splash messages 2024-03-27 11:38:50 -04:00
Flashfyre
3d8edb8e9b Fix rival having 1 less party member than intended and add EXP All at wave 25 2024-03-27 10:20:08 -04:00
Flashfyre
a33f54b7cb Don't allow PP to go below 0 with Pressure 2024-03-26 21:09:20 -04:00
Flashfyre
0fbf21f19b Fix accuracy and evasion ability multipliers not being applied 2024-03-26 15:47:19 -04:00
Flashfyre
aee5f32bc3 Properly lapse terrain 2024-03-26 10:08:17 -04:00
Flashfyre
b114cd1cb1 Unlocks only happen on classic 2024-03-25 21:09:32 -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
93a7af853b Berries activate simultaneously 2024-03-25 00:21:00 -04:00
Flashfyre
0e694ebfb6 Fix softlock bug with double trainers 2024-03-24 22:24:26 -04:00
Flashfyre
133c1c364a Add EXP All to endless mode at wave 10 2024-03-24 11:17:12 -04:00
Flashfyre
0d776b5a7a Add confirmation before skipping items 2024-03-23 21:03:00 -04:00
Flashfyre
7f01d3f57b Add checks to initial title data load to prevent softlocks 2024-03-21 20:45:15 -04:00
Flashfyre
669260155c Fix crash on title when no save data exists 2024-03-21 13:17:43 -04:00
Flashfyre
cf959c6e1b Add proper title screen and logo 2024-03-21 13:12:05 -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
921851c1b6 Add Leppa Berry 2024-03-19 23:18:48 -04:00
Flashfyre
88e050581e Add score to daily run mode 2024-03-19 00:03:41 -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
47a51c9958 Add first hit move effect and apply only to Make It Rain 2024-03-18 17:15:20 -04:00
Flashfyre
7c32855546 Make multi target moves with user effect only trigger user effect on first hit 2024-03-18 16:36:00 -04:00
Flashfyre
68b1aef3ab Add clear score bonus 2024-03-17 20:58:12 -04:00
Flashfyre
f13e1ffa47 Record clears for failed daily runs 2024-03-17 20:31:09 -04:00
Flashfyre
9805329228 Fix load game bug after backing out of daily run 2024-03-17 17:30:07 -04:00
Flashfyre
33ba66b236 Add daily rankings board 2024-03-17 13:38:27 -04:00
Flashfyre
0701598be6 Add session scores 2024-03-17 11:36:19 -04:00
Flashfyre
dd03be2646 Fix softlock after gender selection 2024-03-17 10:11:24 -04:00
Flashfyre
ee0ff881a9 Fix field scale not resetting after a run ends 2024-03-17 00:36:33 -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
00255cb09a Fully implement save slots and ""title"" screen changes
Fully implement save slots and ""title"" screen changes; fix issues with slots including clear data not working on game over and export/import not working; fix session play time not being recorded correctly
2024-03-15 15:13:32 -04:00
Flashfyre
879971ae2b Add ""title"" screen and save data slots 2024-03-14 21:49:49 -04:00
Flashfyre
bed98ad304 Implement better solution to Fake Out issue 2024-03-14 18:09:40 -04:00
Flashfyre
10cacbe5af Fix Fake Out logic 2024-03-14 18:03:38 -04:00
Flashfyre
62ed84638f Fix GameMode enum order 2024-03-14 17:15:01 -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
Madmadness65
1905ecc828 Implement Burning Bulwark 2024-03-13 16:37:36 -05:00
Xiaphear
37f769de72 Added Baneful Bunker 2024-03-13 22:09:23 +01:00
Flashfyre
6dbbc50139 Move redirection abilities ignore own moves 2024-03-12 08:44:05 -04:00
Flashfyre
71e820f149 Add redirection logic to Lightning Rod and Storm Drain 2024-03-11 20:55:41 -04:00
Flashfyre
e99af6f148 Implement Healing Wish 2024-03-11 18:13:07 -04:00
Xiaphear
03989d07b2 Added Wring Out. Attempted Healing Wish ( WIP ) 2024-03-11 18:18:49 +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
Flashfyre
773e241735 Allow empty save data on local mode 2024-03-09 16:09:06 -05:00
Flashfyre
eb6c3ba83f Fix enemy trainers being able to switch out during multi-turn moves 2024-03-08 18:38:04 -05:00
Flashfyre
8c6f77f4c0 Fix crash with Future Sight after catch 2024-03-08 15:52:33 -05:00
Flashfyre
b147cf8f37 Fix Fake Out implementation not working properly 2024-03-08 13:14:08 -05:00
Flashfyre
9725cf47b7 Add Pokemon info display on catch 2024-03-07 22:43:15 -05:00
Flashfyre
64f6c9de09 Re-implement switch out softlock with double rewards bug fixed 2024-03-07 08:42:04 -05:00
Flashfyre
9ff7a95dc0 Revert "Fix softlock with wild switch out moves"
This reverts commit 2ce74716f7.
2024-03-07 07:05:11 -05:00
Flashfyre
2ce74716f7 Fix softlock with wild switch out moves 2024-03-07 00:04:38 -05:00
Flashfyre
3fea44de6f Fix bug with trainer double battles and implement Magnetic Flux move 2024-03-06 22:41:55 -05:00
Flashfyre
113ac10c1b Implement Pickup ability 2024-03-06 21:05:23 -05:00
Flashfyre
5efec5906a Make transfer option free 2024-03-04 23:59:15 -05:00
Flashfyre
96d2813d95 Allow negative boss segment index for catch restriction 2024-03-01 23:10:46 -05:00
Flashfyre
32f4d69041 Wild spliced Pokemon generate shared movesets 2024-03-01 16:21:28 -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
fd10cd8080 Fix master balls not working 2024-02-29 09:58:07 -05:00
Flashfyre
61eb15ffd6 Fix scaling issue with wave 1000 boss 2024-02-27 22:50:27 -05:00
Flashfyre
5766e63272 Fix various bugs 2024-02-27 21:34:21 -05:00
Flashfyre
01938dcf83 Fix issue with skipped move charge effects not activating 2024-02-27 14:21:17 -05:00
Flashfyre
597a08a196 Fix battle data not resetting properly 2024-02-26 15:14:47 -05:00
Flashfyre
74e9b95e13 Fix damage reduction abilities not working 2024-02-26 12:34:45 -05:00
Flashfyre
4f2b266e71 Add expressions for male rival 2024-02-25 19:09:24 -05:00
Flashfyre
649717a3cd Add egg moves logic 2024-02-25 12:45:41 -05:00
Flashfyre
767b57ec9e Fix rival victory dialogue sprite not showing 2024-02-22 19:24:00 -05:00
Flashfyre
9005e32883 Add character sprite system with female rival 2024-02-22 18:03:36 -05:00
Flashfyre
8cb7433f55 Fix game over and subsequent clear reward 2024-02-22 16:21:34 -05:00
Flashfyre
9c986f44ac Item stealing items prioritize rarer items
Item stealing items prioritize rarer items; reward premium voucher for subsequent classic clears
2024-02-22 00:34:54 -05:00
Flashfyre
4e93f1e52c Display enemy trainer briefly when switching 2024-02-22 00:00:51 -05:00