Commit Graph

13030 Commits

Author SHA1 Message Date
urkerab
8ca39d65fc Properly report a near miss for an alias (#3532) 2017-05-14 07:22:20 -05:00
The Immortal
74096adda8 Mega Metagross is Uber 2017-05-14 15:24:15 +04:00
Ben Davies
92c6c3e3ac Trivia: fix crash in Trivia#destroy, pause when too many players absent (#3531) 2017-05-13 19:35:57 -05:00
The Immortal
d1cd8cc1e9 Remove OU suspect 2017-05-13 19:00:00 +04:00
Charlie Kobayashi
78ed58d0c4 Dex: fix dataSearch (#3525)
Use the result's name first instead of inexact search term if search is found.
2017-05-12 17:12:07 -05:00
HoeenHero
36b56f5c44 Finish renaming tools to dex (#3526) 2017-05-12 17:11:30 -05:00
Charlie Kobayashi
196364adca Effect: don't override inherited properties from moreData (#3524)
- caused weather effects passed in through ``moreData`` to be marked as simply ``"Effect"``
    - as a result, sandstorm and hail will damage Rock/Ground/Steel and Ice types  respectively
- this fix makes ``Effect`` inherit the ``effectType`` from ``moreData`` if it doesn't exist in the primary ``data`` variable passed into the constructor
2017-05-12 14:23:05 -05:00
GraillLord
fe9bf3c42f Fix two-turn moves behaviour with no target (#3523) 2017-05-12 14:56:26 -04:00
The Immortal
343c014358 Random Battle: Prevent recovery moves with Leech Seed 2017-05-12 14:55:49 +04:00
Spandan Punwatkar
c7b67158c4 Fix Last Will Crash(es) (#3522) 2017-05-12 13:11:52 +04:00
MacChaeger
bc8054167d Update Random Doubles (#3520) 2017-05-12 00:10:53 +04:00
Guangcong Luo
77e9ec2251 Fix Jeopardy: Part B 2017-05-10 22:25:52 -04:00
Charlie Kobayashi
eec8d69920 Update scavengers.js (#3519) 2017-05-10 20:23:03 -05:00
Jacob McLemore
925b40361d Add /damagecalc as alias of /calc (#3517) 2017-05-10 13:54:37 -05:00
Quinton Lee
53bd0c210e Tournaments: force-end when rooms are destroyed 2017-05-10 00:41:11 -05:00
Quinton Lee
2f272f6323 Jeopardy: fix ending games 2017-05-10 00:11:30 -05:00
urkerab
59583ee113 Include aliases when searching the dex (#3475) 2017-05-09 23:58:32 -05:00
Guangcong Luo
e34c77930a Start creating classes for getEffect data
Currently, getEffect/getTemplate/getMove/etc return bare objects.
Refactoring their returns into classes will allow TypeScript to type
check them.
2017-05-09 16:00:11 -05:00
Kevin Lau
f63e410d17 Random Battle: Alolan Golem cannot learn Sucker Punch (#3516) 2017-05-09 23:30:33 +04:00
panpawn
9738bfbdf1 Roomsettings: Use Chat.html for a template string (#3515) 2017-05-09 14:08:07 -05:00
Charlie Kobayashi
b90703623d Update uno.js (#3513)
- announces the presence of a game when a user joins the room.  Players will immediately see their hand instead.
- wild cards will cause the top card display to inherit the changed colour
2017-05-08 23:05:39 -05:00
Guangcong Luo
5266c7c90f Fix tsconfig lib
It's now more precise about what modern ES features we want in PS.
2017-05-08 21:09:57 -05:00
Charlie Kobayashi
d1e9a5cdcd Modjoin: escape HTML for banner display (#3510) 2017-05-08 19:34:32 -05:00
Guangcong Luo
a75282ea97 Fix crash in /weakness 2017-05-08 19:06:54 -05:00
The Immortal
6292479f6a Add 1v1 suspect test 2017-05-08 18:34:13 +04:00
Guangcong Luo
22186f1903 Improve TypeScript typing
sim/dex.js and sim/prng.js are now valid strict TypeScript! Also they
have slightly less "any" use than before.
2017-05-08 02:58:55 -05:00
Charlie Kobayashi
1c96b80694 Scavengers: add new mode, and statistic logging (#3507)
* Scavengers: add new mode, and statistic logging

* Use single quotes for keywords
2017-05-08 01:06:47 -05:00
panpawn
ffec6037c1 Roomsettings: Make UNO and Hangman text uniform (#3511)
Based on how we do stretching/capitals with the "off" language for being disabled, these should probably use that, too.

Also, "enable" and "enabled" were inconsistent, so this changes that, too.
2017-05-08 00:17:36 -05:00
asgdf
127fb33002 Add cooldown to re-enabling timer after disabling it (#3503)
Each player has their own cooldown. The point is to prevent spamming timer
on/off to timerstall indefinitely.
2017-05-07 16:31:36 -05:00
Charlie Kobayashi
770d4d94fe Poll: Fix display (#3506)
- make all poll options align left
2017-05-07 16:30:34 -05:00
CheeseMuffin
fc4ca40ef8 Refactor Jeopardy (#3468) 2017-05-07 04:37:30 -05:00
Quinton Lee
fa1b45f7ab Support supplementary rulesets in battles (#3330) 2017-05-05 20:13:08 -05:00
Guangcong Luo
9e180e4fc1 Remove MockBattle
No MockBattle feature needs to be kept out of sim/...
2017-05-05 16:57:18 -05:00
Guangcong Luo
6dd58b40d3 Refactor simulator into new sim/ directory
This is a surprisingly minor refactor considering how many files it
touches, but most of this is only renames.

In terms of file renames:
- `tools.js` is now `sim/dex.js`
- `battle-engine.js` is now `sim/index.js` and its three classes are
  in `sim/battle.js`, `sim/side.js`, and `sim/pokemon.js`
- `prng.js` is now `sim/prng.js`

In terms of variable renames:
- `Tools` is now `Dex`
- `BattleEngine` is now `Sim`
- `BattleEngine.Battle` is now `Sim.Battle`
- `BattleEngine.BattleSide` is now `Sim.Side`
- `BattleEngine.BattlePokemon` is now `Sim.Pokemon`
2017-05-05 16:48:38 -05:00
Guangcong Luo
fcccc2cff0 Rename Battle#on to Battle#onEvent
Battle will soon be a Node.js Stream, which has an .on() function,
which Battle#on would conflict with.

PS events aren't Node events, so naming a PS event function .on()
was kind of misleading anyway.
2017-05-05 16:48:38 -05:00
Guangcong Luo
5ed4bfe3d1 More TypeScript refactoring
prng.js is now validated by TypeScript. battle-engine is too huge and
tsc bugs out on it, but it needs to be split into a number of smaller
files anyway.
2017-05-05 16:48:38 -05:00
Marty-D
9948a0123f Add new event Pokemon 2017-05-05 11:23:58 -04:00
Spandan Punwatkar
5fcca90040 Update Last Will (#3504)
* Update Last Will

* Update formats.js

* Update formats.js
2017-05-05 13:07:31 +04:00
MacChaeger
7a1d06f626 Update Random Doubles Battle (#3498)
* Update Random Doubles Battle (part 1)

* Update Random Doubles Battle (part 2)

* Update Random Double Battle (part 3)

* Fix Syntax (#26)

* Fix move id typos

* Improve movepools
2017-05-05 11:52:55 +04:00
urkerab
13e7d1b464 Transplant some of ROM's code for Cross Evolution (#3501) 2017-05-04 13:55:07 +04:00
Guangcong Luo
3716f360ff TypeScript!
Currently TypeScript is validating tools.js and is not particularly
strict about anything and we use 'any' a lot and it's not part of
'npm test' yet, but everything has to start somewhere!

tools.js has also been refactored majorly to use accessors rather
than loader functions. This basically means you don't need to do
Tools.includeData() or anything like that anymore. The new system is
also easier to make TypeScript-compatible.

See #3278
2017-05-03 16:19:49 -07:00
Spandan Punwatkar
c201e22841 Update formats.js (#3500) 2017-05-03 15:24:52 -07:00
The Immortal
a9d095da15 Monotype: Ban Medichamite 2017-05-03 23:51:48 +04:00
Bär Halberkamp
e33d81b39f Wifi: Improve API for GTS Giveaways 2017-05-03 18:13:41 +02:00
Bär Halberkamp
767cd57a03 Wifi: /left also displays last winners 2017-05-03 18:13:41 +02:00
urkerab
c26adcf30d Fix for Heal Bell as a Last Will (#3499) 2017-05-03 16:25:14 +04:00
Teremiare
ef0658d1f4 Change chat filter bypassing (#3485) 2017-05-03 03:41:30 -07:00
The Immortal
7b190ed7fa Remove Monotype suspect 2017-05-03 13:59:52 +04:00
Marty-D
508081ee32 Add new event Pokemon 2017-05-02 11:26:33 -04:00
The Immortal
a8b5f629df Release Hoenn Cap Pikachu 2017-05-02 19:17:00 +04:00