Commit Graph

5083 Commits

Author SHA1 Message Date
Bertie690
4c3447c851 Added utility function randSeedFloat
basically just `Phaser.math.RND.realInRange(0, 1)`
2025-04-29 09:37:28 -04:00
Bertie690
f33396a3a5
Update move-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 22:05:00 -04:00
Bertie690
aa0adee90e
Update game-data.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 21:37:10 -04:00
Bertie690
0b9c411912
Update encounter-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 21:35:06 -04:00
Bertie690
70152c23cd
Update berry-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 21:34:51 -04:00
Bertie690
2fe03248fb
Update overrides.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 21:34:33 -04:00
Bertie690
0afb7849bf
Update ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 21:34:11 -04:00
Bertie690
cbcc07a267
Update ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-04-28 21:34:04 -04:00
Bertie690
d1e5cd7067 Merge remote-tracking branch 'upstream/beta' into waveData 2025-04-27 11:34:26 -04:00
NightKev
89a9d55d3c
[Dev] Add enemy pokemon level to encounter logging (#5718) 2025-04-27 01:22:56 -05:00
NightKev
c87598d01d
Merge pull request #5717 from pagefaultgames/main
Sync beta with main
2025-04-26 16:59:45 -07:00
Sirz Benjie
c6e7dd660e
[Bug] Hotfix 1.8.5 (#5715)
* Loading data now checks statusCode not error string

* Bump version to 1.8.5
2025-04-26 16:04:40 -07:00
NightKev
6460d46a5d
[Bug] API / Save data hotfix (#5716)
* Loading data now checks statusCode not error string

* Bump version to 1.8.5

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-04-26 15:01:46 -07:00
Dean
ab7d010a17
[Bug] Fix message for StatusEffectImmunityAbAttr (#5701)
Use class var for getTriggerMessage
2025-04-26 20:32:49 +00:00
Wlowscha
423bab1057
[UI/UX] Move Pokémon sprite below name and other text in starter select (#5714)
Moving the sprite down
2025-04-26 13:17:54 -04:00
Sirz Benjie
a036f865f0
[Bug] Fix improper critical hit key in move effect phase (#5713) 2025-04-26 06:17:42 +00:00
Wlowscha
0a48726e70
[UI/UX] Move Pokémon sprite below name and other text in dex pages (#5698)
Moved sprite below name
2025-04-26 01:24:11 -04:00
Sirz Benjie
a288de700d
[Docs][Dev] Update linting docs (#5709) 2025-04-25 22:14:08 -07:00
AndrewErting
42f291eab3
[Bug] [UI/UX] Make , . / and \ Bindable Keys (#5707)
Added , . / and \ to the key atlas, json mapping, and cfg_keyboard_qwerty.ts
2025-04-26 01:34:57 +00:00
Xavion3
38d75897bb
[Balance] Remove Dynamax Cannon being a discouraged move for AI (#5708)
Remove dynamax cannon from being discouraged on Eternatus Phase 2
2025-04-26 01:28:52 +00:00
zaccie
30e74eaaa8
[Bug] Fix boss level location (#5688) 2025-04-25 20:33:59 +00:00
Sirz Benjie
6dc2a7fddc
[Dev] Update phaser to 3.88 and fix graphical bug (#5704) 2025-04-24 20:30:00 +00:00
damocleas
793d89fa24 [i18n] Update locales submodule
Update locales submodule
2025-04-24 16:04:17 -04:00
NightKev
6ea5b4fa9d
[Bug] Fix doubles trainers not initializing properly (#5702)
* [Bug] Fix doubles trainers not initializing properly

* Add missing override in Whirlwind test
2025-04-23 17:22:25 -07:00
Inês Simões
75400a39ed
[Bug] [UI/UX] Status moves now play a No Effect Message Against Immune Type Pokemon (#5533)
* Fix #5085  Moves dont play a No Effect Message Against Immune Type

When using non-volatile status move like: Will-O-Wisp, Thunder
Wave, Toxic, or Poison Gas against a Pokémon whose type is immune
to that Status condition, no "It doesn't affect" message plays.

My proposed fixes:
In move.ts:
Removed a redudant if statement in StatusEffectAttr class

In pokemon.ts:
Renamed the "messageIsImmune" function to "queueImmuneMessage"
2025-04-23 21:29:44 +00:00
AJ Fontaine
5de567a3db
[Balance] Wave 90 gym leader has 5 mons (#5699)
5 mons on wave 90
2025-04-23 21:18:03 +00:00
Blitzy
c7265543bd
[Balance] Update Transistor to Gen IX version (#5700)
Update ability.ts
2025-04-23 17:15:45 -04:00
AJ Fontaine
b49c994d2d
[Balance][Refactor] Move fixed boss waves enum to file, adjust GL templates (#5689)
* Move fixed boss waves enum to file, adjust GL templates

* Move post return to default case

* Address comment

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-04-23 14:48:04 -05:00
Sirz Benjie
389ad6ceb6
[Tests][UI/UX] Add automated tests for the pokedex (#5637)
* Remove unneeded fields from src/ui/filter-text.ts

* Add setOverlayMode to phaseInterceptor

* initialize pokemon starters before running tests

* Add getWrappedText to mockText

* Add initial pokedex test

* Add test for wrapping cursor in pokedex view

* Make pokedex use getPassiveAbility instead of checking passive map

Allows for tests to mock passives

* Add test for filtering double ability combinations

* Add test for filtering by types

* Mark failing test as TODO

* Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>

* Use ts-expect-error instead of ts-ignore in comments

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Add save for pokedex tests

* Add test for filtering by cost reduction

* Add test for filtering by shiny

* Add tests for filtering by cost reductions

* Fix typo in test name

* Update test/ui/pokedex.test.ts

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>

* Update Mode import in pokedex test

* Replace reference to Mode with UiMode

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-04-23 18:10:01 +00:00
Jimmybald1
b848777880
[Bug][Misc] Moved SelectBiomePhase in front of NewBattlePhase (#5694)
* Moved SelectBiomePhase in front of NewBattlePhase

* disguise test now has to go to QuietFormChangePhase

---------

Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
2025-04-23 10:54:43 -07:00
Bertie690
18567a2ad6 Fixed tests 2025-04-22 20:40:59 -04:00
Bertie690
3876ba93be
Merge branch 'beta' into waveData 2025-04-22 20:23:24 -04:00
Sirz Benjie
110fd2f0a1
[Refactor][Move] Refactor move effect phase (#5678)
* Add enum for hit check result

Co-authored-by: innerthunder <brandonerickson98@gmail.com>

* Refactor parameter list for pokemon#getBaseDamage and pokemon#getAttackDamage

* Rewrite move phase

Co-authored-by: innerthunder <brandonerickson98@gmail.com>

* Update tests to reflect move effect phase changes

Co-authored-by: innerthunder <brandonerickson98@gmail.com>

* Fix pluck / bug bite

Co-authored-by: innerthunder <brandonerickson98@gmail.com>

* Fix reviver seed ohko, remove leftover dead code

Co-authored-by: innerthunder <brandonerickson98@gmail.com>

* Cleanup jsdoc comments

* Remove hitsSubstitute check from postDefend abilities

* Fix improper i18nkey in moveEffectPhase#applyToTargets

* Cleanup comments

* Fix type issue with substitute test

* Move MYSTERY_ENCOUNTER_WAVES to constants.ts

* Update linkcode in damageparams to use proper tsdoc syntax

---------

Co-authored-by: innerthunder <brandonerickson98@gmail.com>
2025-04-23 00:10:27 +00:00
AJ Fontaine
aadb57ab75
[Balance] [Mystery] Salesman ME offers mons from event encounter pool (#5674)
* Initial event commit

* Salesman odds

* Clean up imports

* globalScene shiny rate getter, fix reroll, remove placeholder event

* Rerolling shiny also tries rerolling for better variant

* Shiny reroll affects 'trainer' mons too

---------

Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-04-23 00:03:49 +00:00
Bertie690
a2c6a62598 Fixed test 2025-04-22 11:41:27 -04:00
Bertie690
b550088384 Fixed failing test by not trying to mock rng 2025-04-22 11:39:01 -04:00
Bertie690
68adbcbe83 Fixed migrate script, re-added deprecated attributes out of necessity 2025-04-22 11:29:47 -04:00
Bertie690
9e65d0a07b added commented out console.log statement
uncomment to see new berry data
2025-04-21 23:55:44 -04:00
Bertie690
82572b263d Hopefully fixed bug
my sanity and homework are paying the price for this lol
2025-04-21 23:54:48 -04:00
Bertie690
b341943ea8 huhjjjjjb 2025-04-21 23:34:59 -04:00
Bertie690
745714ea28 Fixed test 2025-04-21 18:22:52 -04:00
Bertie690
3707c00e20 Fixed test
I forgot that we outsped and oneshot
2025-04-21 18:19:48 -04:00
Bertie690
5a9fbd13f0
Merge branch 'beta' into waveData 2025-04-21 18:15:00 -04:00
Bertie690
02b6bf732b Fixed summondata being cleared inside summonPhase, removed summonDataPrimer
like seriously how come no-one checked this
2025-04-21 18:14:43 -04:00
Bertie690
6374f38b11 test added 2025-04-21 17:57:06 -04:00
Sirz Benjie
be6a117b1e
[Bug][Sprite] Fix variants not using recolors for back sprite (#5691)
Fix variants not showing back recolors with exp
2025-04-21 14:52:08 -05:00
Bertie690
024b413611 Fixed tests 2025-04-21 15:27:01 -04:00
Sirz Benjie
0da56cda9f
[Bug][Sprite] Fix variant loading console spam (#5690) 2025-04-21 13:46:32 -05:00
Bertie690
102554cdb7 Moved empty moveset verification mapping thing to upgrade script bc i wanted to 2025-04-21 12:51:28 -04:00
Bertie690
2746a658df Fixed constructor (maybe), moved deepCopy and deepMergeSpriteData to own file
`common.ts` is hella bloated so seems legit
2025-04-21 10:42:58 -04:00