The Immortal
bc1ff9fac4
Revert "Change (PU) to Untiered ( #5170 )"
...
This reverts commit d40fe510b4 .
2019-02-25 06:26:21 +04:00
Liu Cao
6d5672f9b7
Fix an inaccurate simplified Chinese translation ( #5208 )
...
Bumba's OS not showing those characters somehow
2019-02-24 18:42:53 -06:00
Bär Halberkamp
eee4555727
Fix misplaced string in PT translation
2019-02-24 23:38:49 +01:00
The Immortal
91904f1451
Remove BH suspect
2019-02-24 16:38:38 +04:00
Kirk Scheibelhut
ddcb15e3b7
Cleanup tsconfig includes further ( #5202 )
2019-02-24 03:23:40 -06:00
Marty-D
87cbe929cf
Make sure Transform copies the correct type
2019-02-23 22:28:03 -05:00
Marty-D
a483604687
Gen I: Stop trying to change a fainted Pokemon's stat stages
2019-02-23 21:29:36 -05:00
The Immortal
0d6300009d
Random Battle: Properly increment tier counters
2019-02-24 06:18:45 +04:00
The Immortal
59c4965dfa
Random Battle improvements
2019-02-24 06:00:24 +04:00
Kirk Scheibelhut
bb08599353
Fix field initialization ordering in Pokemon ( #5204 )
2019-02-23 19:58:51 -06:00
Bär Halberkamp
eb67a12ad6
Translation support ( #5167 )
2019-02-23 19:36:42 -06:00
Kirk Scheibelhut
4e421c1bd9
Refactor getEffect for speed safely ( #5201 )
...
Rollforward of 7a20245 which retains the `hasOwnProperty` checks.
Also changes the method to call `toId` earlier and use the id
as the key to the cache to ensure 'Stealth Rock' and 'stealthrock'
return the same. NOTE: 'move: Stealth Rock' and 'Stealth Rock' will
still continue to return different results.
2019-02-23 19:28:06 -06:00
Guangcong Luo
48ecdd492d
Revert "Refactor getFormat pattern and ordering for speed ( #5194 )"
...
This reverts commit 9ce00664d8 .
It doesn't account for bugs relating to Object.prototype
2019-02-23 17:08:41 -06:00
Kirk Scheibelhut
9ce00664d8
Refactor getFormat pattern and ordering for speed ( #5194 )
...
Even though 31c6a32 added caching to make this method less of a
hotspot, there's no reason to use a pattern which is an order of
magnitude slower (https://jsperf.com/pokemon-showdown-getEffect ).
Also, rearranges Format to get checked first as pkmn.cc/optimize
finds it to be the most frequently accessed.
2019-02-23 21:59:36 +01:00
MacChaeger
6266a3b707
Pokebilities: Ban Porygon-Z ( #5200 )
2019-02-23 22:12:28 +04:00
Konrad Borowski
eacf4881f6
Update TypeScript to version 3.3.3333
...
Using a tilde in a version number as TypeScript explicitly doesn't
follow semver according to Microsoft/TypeScript#14116 .
2019-02-23 15:26:58 +01:00
Guangcong Luo
5f41684442
Further improve switch tests
...
- Test that Baton Pass passes Ingrain
- Test that Baton Pass doesn't pass Imprison
- Test that other forms of switching don't pass either
2019-02-23 07:01:07 -06:00
Guangcong Luo
9b694fa350
Add Imprison switch-out test
...
Apparently we had zero tests to make sure volatile statuses go away
after switching out and back in!
2019-02-23 03:27:32 -06:00
Kirk Scheibelhut
8ffd29daae
Document remaining message types in SIM-PROTOCOL ( #5196 )
2019-02-22 23:19:26 -06:00
Kris Johnson
d49610fcd7
Datasearch: Fix event Pokemon showing in LC searches ( #5177 )
2019-02-22 18:30:56 -06:00
Kirk Scheibelhut
dc4bfbc4ae
Fix some Typescript related TODOs ( #5198 )
2019-02-22 17:48:16 -06:00
TheMezStrikes
6982be4330
Add 1v1 Sample Teams ( #5195 )
...
* Add 1v1 Sample Teams
* Add missing comma
2019-02-23 03:44:00 +04:00
Kirk Scheibelhut
0dd43ea3a9
Remove 'server/process-manager.js' from tsconfig ( #5197 )
...
'process-manager.js' now lives under 'lib/' which is already
included.
2019-02-22 15:38:26 -06:00
Konrad Borowski
03bd1b4df7
Mark Feebas's evolution in Gen4 as requiring high Beauty
...
Trade evolution for Feebas was introduced in Gen5.
2019-02-21 22:56:07 +01:00
Kirk Scheibelhut
f5991aa444
Refactor findEventHandlers further ( #5193 )
...
- rename `thing` when we know what it will be.
- simplify `resolveLastPriority`
- remove `findBattleEventHandlers` param given that its always this
- avoid multiple lookups of the same attribute
These functions related to finding events are very hot
(pkmn.cc/optimize) and microbenchmarks indicate TurboFan is unable
to extract out the constants for us. As a side benefit, there's less
`// @ts-ignore` required, and future optimizations will use the
constants anyway. More extraction can be done in findEventHandlers,
but that will be left for a future change where the need becomes
more obvious.
2019-02-21 15:19:26 -06:00
Marty-D
56b9549809
Datacenters: Add a range
2019-02-21 14:07:11 -05:00
whales
fc2eda1cf7
Mafia: Resolve chat pages properly ( #5192 )
2019-02-21 13:35:44 +01:00
The Immortal
f62b354483
Random Battle: Improve Toucannon
2019-02-21 15:41:40 +04:00
Guangcong Luo
93a76f9fa0
Refactor getRelevantEffects -> findEventHandlers
...
This fixes getRelevantEffects's massively confusing call structure.
Most parameters relating to bubbling up and down have been removed
entirely, and traversing the many possible event handler types is now
simply done outside the callers.
In addition, a lot of variables/functions have been renamed for much
better clarity.
2019-02-21 02:02:32 -06:00
Guangcong Luo
9742dd29e3
Split getRelevantEffectsInner
...
This is mainly a readability refactor.
2019-02-21 01:45:08 -06:00
Kirk Scheibelhut
fd0059f39b
Fix random typos in tests ( #5190 )
2019-02-20 22:16:44 -06:00
Bär Halberkamp
b3df28035d
Chat monitor: make inap pokemon names weeklock instead of namelock
2019-02-21 01:06:53 +01:00
Guangcong Luo
11f5c007dc
Lower tab size in !code
2019-02-20 16:57:36 -06:00
Guangcong Luo
94b2d65b05
Finally remove deprecated legacy API
...
It's gone! The last remnants of the old choice parsing system is
finally gone!
2019-02-20 02:58:41 -06:00
Jacob McLemore
34f90a9b55
Tours: Fix a forfeit being reported as failed even though it succeeded ( #5188 )
2019-02-20 02:11:43 -06:00
uzelbot
922a4cef95
Remove * from most permissions shown in /help ( #5168 )
2019-02-20 00:59:50 -06:00
Kirk Scheibelhut
0e4ed7fd40
Refactor remaining tests to use Battle#makeChoices ( #5183 )
2019-02-20 00:34:31 -06:00
Konrad Borowski
7481ccc680
Disallow 0 EVs even when EVs weren't sent ( #5187 )
2019-02-20 00:05:12 -06:00
Kris Johnson
ab3a8ef2b6
Add 1v1 suspect notice ( #5186 )
2019-02-19 23:56:46 -06:00
Guangcong Luo
64089636dd
Simplify evo data representation
2019-02-19 23:46:55 -06:00
Guangcong Luo
46134ce5f6
Improve data representation of evo method
2019-02-19 23:42:06 -06:00
Jacob McLemore
bad622e1cd
Add evolution method information ( #5179 )
2019-02-19 23:04:20 -06:00
Kirk Scheibelhut
de4ce7aebe
Refactor Dex#getEffect + Dex#getEffectInner back to one method ( #5182 )
2019-02-19 21:04:01 -06:00
Marty-D
8dfe58100d
Learnsets: Fix Gen 4 tutor moves
2019-02-19 22:03:28 -05:00
Lycanium Z
cacc83043a
SSB: Fix Evoblast interaction with substitute; update ranks ( #5166 )
2019-02-19 21:23:12 -05:00
Kirk Scheibelhut
675497307e
Optimize Dex#getEffect by caching the result. ( #5181 )
...
As outlined by pkmn.cc/optimize, this change should result in a ~30%
increase in Battle performance over repeated runs. Caching the
resultant effect is safe provided nothing mutates it.
2019-02-19 19:45:27 -06:00
Guangcong Luo
a13da24f29
Update .gitignore for /server/
2019-02-18 22:00:09 -05:00
Guangcong Luo
997274cfc5
Use editprivacy permission for /ionext
...
This matches the permission for /ioo
2019-02-18 21:57:45 -05:00
Guangcong Luo
653b303a52
Support custom hideReplay setting
2019-02-18 21:46:26 -05:00
Marty-D
2e6011fffd
Fix Chimecho's egg group
2019-02-18 21:25:49 -05:00