Commit Graph

355 Commits

Author SHA1 Message Date
damocleas 902d4df1a8
Wide Lens to Ultra item tier, Berry Count limits, and small Berry Pouch % chance reduction (#1472)
* Voucher and Wide Lens item table Changes

- Wide Lens moved from Rogue -> Ultra Tier, same weight
- Voucher moved from Ultra -> Great Tier, same weight
- Voucher Plus moved from Master -> Rogue Tier, with weight starting at 9 -> 6 and decreasing with each reroll with 3 -> 2
- Voucher Premium added to Master (based on suggestion from Madmadness) with same weight as new Voucher Plus, and disabled in Endless / Endless Spliced

* Added Berry Count limiter

2 count for Lum, Leppa, Sitrus, Enigma

3 count for all else

* fix test 1

* fix test 2

I blame browser coding for this

* fix test  3

I BLAME BROWSER CODING

* Changed Berry Pouch to 30% > 33*%, max stack 90% > 100%

* fix test 4!!!!

oops

* english.

* german.

* spanish.

* french.

* italian

* portugese.

* simplified chinese.

* traditional chinese.

* Removed voucher changes, making separate PR for them to be discussed.

* Swapped switch statement to .includes statement

* Update modifier-type.ts

* thank you cheek pouch pr
2024-06-02 03:10:58 +01:00
Xavion3 e7fed48f8e
[Balance] Simplify and fix flame/toxic orb weight (#1670) 2024-06-01 12:10:10 +10:00
Tempoanon cf9992f9b8
Add code (#1661) 2024-05-31 16:42:38 -05:00
Amani H e0bc1d8781
[Item] Add Toxic Orb and Flame Orb (#1574)
* Add Toxic Orb and Flame Orb

* Change Weighting Logic & Functions

* Adjust Party Filter during Weighting

* Add Dynamic Weight Ceilings

* Refactor for Performance/Cleanliness

* Adjust Party Filter to Check Status Applicability

* Cover Same & Different Status Cases

* Adjust Full Heal & Restore Weighting

* Cover Unwanted Status Case

* Fix Wrong Status Effect on Reload
2024-05-31 14:31:11 -05:00
Tempoanon 0c862839d3
Revert "[Bug] Full Heals and Full Restore cure confusion (#1112)" (#1653)
This reverts commit 6c4b60a2fa.
2024-05-31 15:56:39 +01:00
Ethan 6c4b60a2fa
[Bug] Full Heals and Full Restore cure confusion (#1112)
* Added Confusion to be healed with Full Heals and Full Restores

* Semi-Colon oversight

* Changed resetStatus to have a condition whether to include confusion or not, defaults to false so you manually have to add

* Fixed spacing and semicolon

* Refactored the Lum Berry case

* Fix berry conflicts

* Update {}

* Fix PP Conflict

* Build fix?

* Fix Modifier

* Build Fix

* Fix

* Fix StatuHeal from eslint
2024-05-31 10:31:15 -04:00
dielle000 bda3013c19
Allow selection of item quantity when transferring items (fixes #723) (#1394)
* Transferring item does not kick out of transfer menu

* Select simultaneously the item to transfer and the quantity

* eslint fix

* eslint fix

* Reset quantity on scroll

* Documentation

* eslint fix
2024-05-30 16:58:10 -05:00
InfernoVulpix 19ec18677b
Prevent useless Ethers (#1474)
Moves with 5 or less max PP now only boost Ether/Elixer rates if they are at less than max PP.
2024-05-29 00:04:02 -04:00
Greenlamp2 e2be6ba002
added rule no-trailing-spaces (#1307) 2024-05-23 18:45:04 -05: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 77a88e0895.

* 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
Benjamin Odom f93f2bfca6
Reduce EXP Balance (#1128)
* Set max to 4
2024-05-20 19:06:20 +10:00
José Ricardo Fleury Oliveira 3cc9c93643
Type localization instead of TeraType (#981)
* Type localization, now type-boosting items descriptions are fully translated

* pokemon-stat refactoration

* reverted import changes
2024-05-17 09:43:11 -05:00
Calvin Keats bfa12fd48d
Update ETHER and similar items to use total max PP instead of base PP (#1014) 2024-05-17 06:54:51 -05:00
FanHua 77cfa58078
fix: EXP_SHARE should not have a group parameter (#948) 2024-05-16 01:49:07 -05:00
FanHua 0aca9aed9c
fix: FULL_RESTORE should now heal status (#947) 2024-05-16 01:17:29 -05:00
FanHua 5fa57d42a6
Fix the issue where ‘TerastallizeModifierType’ uses the wrong translation key. (#942) 2024-05-16 00:00:47 -05:00
FanHua b5ae8330a2
Implements localization for ModifierType (#887)
* Implements localization on ModifierType

* All languages' translation fallback to EN locale

* Fixed some typos

* Add missing QUICK_CLAW translation entry
2024-05-15 23:32:45 -05:00
Ice 3781f581cc Fix potion weight logic 2024-05-15 19:51:33 -04:00
Flashfyre 5f3fd17fdd Add Quick Claw item 2024-05-15 09:42:45 -04:00
James Diefenbach 81349816d9
changed formIndex to getFormkey in EvolutionItem constructor (#844)
Co-authored-by: James Diefenbach <z5421232@ad.unsw.edu.au>
2024-05-13 23:01:08 -05:00
LaukkaE af86bdeb06
Prevent applying item boosts when power is <1 (#795)
* Prevent applying item boosts when power is <1

* add comments
2024-05-13 18:48:47 -05:00
JackGilham 19d244ee94
Update modifier-type.ts (#636)
Issue#613.

Have added additional EvolutionItemModifierType condition that prevents none base form pokes from taking Evo Items.
2024-05-13 18:38:27 -05: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
Madmadness65 8a35166988 Slightly adjust Recovery Tokens
Each individual token heals 1 percent less, but now stacks to 15 instead of 10, to maintain the current maximum of 30% recovered per turn.
The purpose of this change is to make the healing more gradual, and just generally less painful if you get multiple early on.
2024-05-08 12:38:31 -05:00
Xavion3 cc3113ff43 Fix revive weight cap 2024-05-07 11:26:28 -04:00
Flashfyre b9ce5cfaaa Mints permanently unlock natures 2024-05-07 00:58:36 -04:00
Alvin Zou 0beb3a0f89
Show number of Pokeballs in inventory when selecting a pokeball in the reward phase (#573)
* Show number of Pokeballs in inventory when selecting a pokeball in the reward phase

* Address comments
2024-05-06 21:43:01 -05:00
Flashfyre a7af14b8e2 Fix fusion token weight at 1000 2024-05-04 11:54:00 -04:00
Flashfyre 3d2f31eb4f Fix endure token weight 2024-05-04 11:50:15 -04:00
Flashfyre 991f097e9e Rebalance friendship and add starter friendship with candy reward 2024-05-02 17:48:08 -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 4ad0dbeaa8 Cap costs at max safe integer 2024-04-26 13:05:48 -04:00
Flashfyre c1f53f00b1 Lower luck cap 2024-04-26 11:39:54 -04:00
Flashfyre 5e7356636e Update shiny luck mechanics and count both fusion components 2024-04-26 11:31:39 -04:00
Flashfyre 251bd3edb1 Unnerve message procs only once 2024-04-25 21:40:00 -04:00
John Martin 145267c9a6
Fixed leftover text re-corrections. (#283)
* Minor text corrections to item descriptions.

* Update modifier-type.ts; minor text correction updates

* Update modifier-type.ts; further text re-corrections.

* Update modifier-type.ts; leftover re-corrections.

* Minor text corrections in modifier menu.
2024-04-24 23:29:47 -04:00
John Martin ea40bd18f5
Minor text corrections to item descriptions. (#255)
* Minor text corrections to item descriptions.

* Update modifier-type.ts; minor text correction updates

* Update modifier-type.ts; further text re-corrections.
2024-04-24 00:28:48 -04:00
Flashfyre af85d38b27 Halve damage, protection, and endure tokens 2024-04-22 22:10:39 -04:00
Flashfyre 291f8570e9 Cap money at max safe integer 2024-04-21 21:17:07 -04:00
Gwendal 8d7f1ae554
Allowing pokemon name translation (#228)
* Allow pokemon name translation

* Improve Pokemon localization

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-21 19:53:24 -04:00
Flashfyre 87c1f5e50f Fix Poke Ball localization 2024-04-21 11:50:50 -04:00
Flashfyre ae2c9c1a57 Account for stack count with Wide Lens accuracy boost 2024-04-20 22:59:48 -04:00
Flashfyre 0eff8cd81a Add Wide Lens item 2024-04-20 01:59:07 -04:00
dpMelian 4c128e9d26 feat: correct typo in AttackTypeBoosterModifierType constructor
Corrected "Inceases" to "Increases" in the description of the AttackTypeBoosterModifierType constructor to accurately reflect its functionality.
2024-04-17 15:59:57 -04:00
Flashfyre 257e222b83 Fix being able to buy Sacred Ash without fainted party members 2024-04-16 12:04:52 -04:00
Flashfyre 8819473dce Lower price of Sacred Ash 2024-04-14 23:46:20 -04:00
Flashfyre 3961550f62 Fix fusion move learning bug and inaccurate HP in battle info 2024-04-11 20:40:16 -04:00
Flashfyre 151b751300 Fix crash when stealing an enemy item not in player pool 2024-04-10 14:31:29 -04:00
Flashfyre ca778e07d5 Implement Pokemon fusion icons 2024-04-10 10:57:06 -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 eff64db70e Use bitmap text for modifier text for optimization 2024-04-09 13:59:46 -04:00
Flashfyre 5437d315c0 Uncap damage reduction tokens past wave 2000 2024-04-07 09:13:16 -04:00
Jason Halvorson 9449de4854 Fix battle stat booster text to match effect again
Battle stat boosters were changed to 5 turns in
e5ffc1e2db
2024-04-06 23:25:39 -04:00
Flashfyre e5ffc1e2db Re-nerf battle stat boosters to 5 turns and move Dire Hit to great tier 2024-04-06 20:15:19 -04:00
Flashfyre 1f860d6d1d Fix fusion evolution items not working on fully evolved species 2024-04-06 14:32:55 -04:00
Flashfyre 307c84914e Buff IV Scanner item 2024-04-06 10:37:54 -04:00
Flashfyre 4c383e105f Add evolution for secondary fusion species 2024-04-05 21:12:29 -04:00
Flashfyre a3fcf3f3d2 Lower Master Ball weight 2024-04-05 12:34:35 -04:00
Flashfyre b221c519a4 Fix party shiny odds check on locked reroll 2024-04-05 11:37:07 -04:00
Flashfyre 5bed242002 Add Lock Capsule item and update reroll logic 2024-04-05 10:14:49 -04:00
Flashfyre 8169db62ef Make token changes compatible with old saves 2024-04-05 01:00:11 -04:00
Flashfyre a45fe05f53 Critical hits ignore stat drops and X items last 10 battles 2024-04-04 23:32:09 -04:00
Flashfyre 5fd50eae40 Add missing Shiny Gallade sprite 2024-04-04 22:56:37 -04:00
Flashfyre 8b84965d7a Remove revive tokens, nerf heal token, add endure token 2024-04-04 22:42:24 -04:00
Flashfyre 4afa0bf142 Fix damage booster type check 2024-04-04 21:16:25 -04:00
Flashfyre e191ae0567 Nerf damage and protection tokens to half 2024-04-04 20:53:41 -04:00
Flashfyre ea562bbd87 Increase attack type booster limit to 99 2024-04-04 20:42:55 -04:00
Flashfyre e76fa25bc8 Fix attack type boosters applying universally and buff Soul Dew 2024-04-04 20:33:08 -04:00
Flashfyre 7d58f2885a Only cap damage booster tokens at 999 2024-04-04 12:30:49 -04:00
Flashfyre 7b85b92a6e Increase damage and reduction token stack limit 2024-04-04 11:59:02 -04:00
Flashfyre de77db70d7 Rerolls lock rarity tiers and price accordingly 2024-04-04 00:38:02 -04:00
Flashfyre 1323093eb5 Fix enemy item generation softlock with no attack moves 2024-04-03 19:01:09 -04:00
Flashfyre 5759a5e5ce Add Multi Lens item 2024-04-03 11:42:09 -04:00
Flashfyre 84f6456972 Use nature override property instead of overwriting base nature 2024-04-02 23:00:56 -04:00
Flashfyre e8b5d7aa3e Unsplicing no longer requires an item 2024-04-02 20:51:43 -04:00
Samuel H 4f82ff9819
Implement Mints (#27)
* Implement mints to change natures

* Merge main

* Merge main
2024-04-02 20:04:42 -04:00
Flashfyre f540aeb804 Check specific form change items for compatibility before allowing them to be held 2024-04-02 14:20:30 -04:00
Flashfyre 68f0692849 Fix logic to prevent healing tokens from healing to full 2024-04-02 01:44:38 -04:00
Flashfyre 2ec471708d Healing tokens can't heal to full HP 2024-04-01 23:10:11 -04:00
Flashfyre e6c7f5dc77 Evolution items get more common the further in until wave 120 2024-04-01 13:53:29 -04:00
Flashfyre 814eb3053e Fix PP ups going above 3 2024-03-31 22:36:33 -04:00
Madmadness65 586aa0227d Buff Golden Punch's damage-to-money percentage
Raised from 20% to 50%.
2024-03-30 09:20:28 -05:00
Flashfyre b67a3ced85 Fix evolution item types switched 2024-03-29 19:14:34 -04:00
Flashfyre 001ad1f55e Include catch rate in Poke Ball item description so people stop asking what Rogue Balls do 2024-03-29 17:36:44 -04:00
Flashfyre 2b2b02ff2c Divide evolution items into common and rare 2024-03-29 16:19:27 -04:00
Flashfyre b06c101020 Rare candies add 5 friendship 2024-03-28 11:15:28 -04:00
Flashfyre cedc1fb3b2 Fix the way ignore flying tag works 2024-03-28 10:28:05 -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 75c9c9cc2c Make form change items non-stealable and fix Recover AI 2024-03-27 13:13:37 -04:00
Flashfyre 28ff6f5638 Exclude learned moves from compatible TMs 2024-03-27 10:43:00 -04:00
Flashfyre d98b973a9a Update metal coat evolutions to link cable with steel move
Update metal coat evolutions to link cable with steel move; update Sooth Bell rate to be more common
2024-03-26 14:42:07 -04:00
Flashfyre 6c89af4488 Fix move skipping from Candy Jar levels 2024-03-25 18:31:51 -04:00
Flashfyre a1b09f3aeb Fix item bar hover logic 2024-03-25 12:33:35 -04:00
Flashfyre f87dbcbac3 Fix zoom out for large sprites and trade full heal for elixir in shop 2024-03-24 17:32:44 -04:00
Flashfyre 921851c1b6 Add Leppa Berry 2024-03-19 23:18:48 -04:00
Flashfyre 0701598be6 Add session scores 2024-03-17 11:36:19 -04:00
Flashfyre a52b8c6b4b Tweak for daily run final boss 2024-03-17 00:12:57 -04:00
Flashfyre 14912541c5 Fix bug with excluding last tier from item pools 2024-03-16 22:26:52 -04:00
Flashfyre 56f4a71ca6 Add daily runs (WiP) 2024-03-16 22:06:56 -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 623d600e13 Add wrapper for game mode 2024-03-14 16:26:57 -04:00
Flashfyre 4c5981c126 Update token logic, nerf revive tokens, and add Fusion Token 2024-03-11 00:16:24 -04:00
Flashfyre 47cf14da9b Implement terrains and rework status logic 2024-03-09 21:57:33 -05:00
Flashfyre a4528f5349 Fix crash on giving a Pokemon a held item 2024-03-06 21:12:31 -05:00
Flashfyre bc236cd048 Add check for max stack count of 0 2024-03-06 20:20:57 -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 ff802d162b Fix duplicate form change items appearing 2024-02-29 16:02:57 -05:00
Flashfyre dca8a5c529 Remove level and stat caps 2024-02-29 15:25:15 -05:00
Flashfyre b698a8ffae Fix error in modifier weight logic 2024-02-29 12:01:02 -05:00
Flashfyre 13f4a764eb Adjust rogue tier item weights 2024-02-29 10:18:22 -05:00
Flashfyre ffd785d534 Rebalance item weights and add Rogue tier 2024-02-28 23:13:05 -05:00
Flashfyre 59fb3fa5db Add thawing to burning moves 2024-02-28 15:15:27 -05:00
Flashfyre 5280840cac Fix cases of items not using seeded random 2024-02-28 14:57:11 -05:00
Flashfyre d7a81925b0 Fix crash on iOS 2024-02-28 13:01:38 -05:00
Flashfyre d5eb20d842 Fix token stack count conflicting 2024-02-28 11:55:35 -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
Flashfyre aa13562433 Fix item icon overflow visibility 2024-02-21 21:31:56 -05:00
Flashfyre 8d2f302ac2 Fix broken logic in Healing Charm and nerf effect 2024-02-19 22:54:11 -05:00
Flashfyre 9179930249 Fix multiple form change held items not appearing 2024-02-19 19:11:52 -05:00
Flashfyre 5a0cbfad56 Fix giving terastallize achievement for opponent 2024-02-19 10:25:28 -05:00
Flashfyre 2f8df43db8 Fix some bugs and add seen Pokemon to starter screen 2024-02-18 22:21:57 -05:00
Flashfyre c92f108fe3 Rebalance some item rates 2024-02-17 12:03:18 -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 e8c4db4582 Rebalance Memory Mushroom 2024-02-15 10:27:42 -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 d6d9341132 Double shop prices 2024-02-09 13:56:14 -05:00
Flashfyre ac456fc5ba Add item shop when choosing items
Add item shop when choosing items; add full restore item; add egg art to egg gacha; fix some minor text errors
2024-02-04 00:30:19 -05:00
Flashfyre 9a00090617 Fix max elixir logic not working properly 2024-01-26 18:36:23 -05:00
Flashfyre 80095a64fc Add money items 2024-01-18 22:30:03 -05:00
Flashfyre 052564f902 Update final boss fight and restructure some files 2024-01-13 12:24:24 -05:00
Flashfyre ea6c547af1 Minor changes to forms 2024-01-12 20:16:29 -05:00
Flashfyre cfde592870 Add PP Up and PP Max items 2024-01-12 19:05:00 -05:00
Flashfyre 6084d3aaa6 Add form change system 2024-01-09 23:34:43 -05:00
Flashfyre 7f1add83c4 Add Soul Dew item and make various minor changes 2024-01-09 00:06:11 -05:00
Flashfyre 9037562c5c Add Pokeball release animations and Fairy Feather item 2024-01-04 23:57:21 -05:00
Flashfyre 4776851bb8 Add new boss trainers and tweak boss trainer logic 2024-01-04 19:37:07 -05:00
Flashfyre e05bf78481 Overhaul random logic and implement battle seed 2024-01-02 21:31:59 -05:00
Flashfyre 6ca98ee6b5 Change Soothe Bell weight to depend on benefit 2024-01-01 00:29:41 -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 957b5d0fa7 Add friendship system in place of win count
Add friendship system in place of win count; add soothe bell item
2023-12-21 23:00:45 -05:00
Flashfyre aa94e044ab Add egg gacha system and various minor changes
Add egg gacha system; remove certain mythical Pokemon from the wild pool as egg exclusive; add egg vouchers with UI; rework Shiny Charm odds; fix trainer Pokemon shiny odds not properly ignoring Shiny Charm modifier
2023-12-19 23:51:48 -05:00
Flashfyre 90f4b54fcc Minor visual fixes for item icons 2023-12-16 10:15:25 -05:00
Flashfyre dad6401f67 Add evolution pausing and fix visual bug with evolution scene 2023-12-14 12:55:11 -05:00
Flashfyre e2a6a93209 Rebalance base stat boosters and make max stack count rely on IVs 2023-12-09 00:33:29 -05:00
Flashfyre d4b620b155 Lower stack limits for base stat boosters and reviver seed 2023-12-08 21:59:03 -05:00
Flashfyre 35747c3dd6 Fix Pokemon icon positioning 2023-12-08 19:43:14 -05:00