Commit Graph

10623 Commits

Author SHA1 Message Date
Bär Halberkamp
bc00dab2f2 Convert dexsearch.js to be multiprocess 2016-03-15 19:47:18 +01:00
Bär Halberkamp
8da2cf61fe Convert ladders-remote to the ES6 class syntax 2016-03-14 11:57:08 +01:00
The Immortal
5b912f4eeb Add NU suspect test 2016-03-12 17:20:45 +04:00
Guangcong Luo
447aed29ca Fix style error 2016-03-12 05:32:24 -06:00
Guangcong Luo
97b89cc4ac Refactor CommandContext to ES6 classes
Context in command-parser.js has been renamed CommandContext and
refactored to use ES6 classes. Its also subsumed the canTalk
function. Future iterations will probably put the parse function
inside it as well.
2016-03-12 06:22:59 -05:00
Guangcong Luo
118eb8301f Merge pull request #2443 from BlazingAura/patch-1
Invite to private room crashes.
2016-03-12 02:25:54 -06:00
BlazingAura
097b6683b1 Invite to private room crashes. 2016-03-12 13:18:15 +05:00
Ivo Julca
75b632fed0 Fix crashes in dexsearch 2016-03-11 07:54:28 -05:00
Ivo Julca
3cce56f6d2 Forcibly replace Object.values implementation from Sugar.js 2016-03-10 17:18:53 -05:00
Marty-D
9d496e00dc Gen IV: Fix Focus Sash properly 2016-03-10 12:29:39 -05:00
Marty-D
f567c1ec90 Gen IV: Fix Toxic Spikes interaction with Safeguard 2016-03-10 11:25:44 -05:00
Marty-D
56da976d87 Gen IV: Fix Focus Sash interaction with multi-hit moves 2016-03-10 11:25:11 -05:00
Marty-D
a141026895 Merge pull request #2441 from brandongeren/patch-1
Gen 1: Change Horsea's SpD from 79 to 70
2016-03-10 09:05:16 -05:00
Guangcong Luo
2cf1964743 Merge pull request #2440 from Zarel/sugar-removal
Remove Sugar.js
2016-03-10 03:27:42 -06:00
Brandon Geren
b441d917f3 Gen 1: Change Horsea's SpD from 79 to 70
Gen 1: Horsea's SpA and SpD should be the same base stat of 70.
2016-03-10 02:00:36 -06:00
Ivo Julca
12e9ca78da Remove usage of Date|Function methods implemented by Sugar.js
Implements Tools#toTimeStamp to support Node.js builds without ICU support,
which are currently the default. If/when that changes, we should be able to
use Date#toLocaleDateString, given that appropriate locale options are used.
2016-03-09 16:55:47 -05:00
Ivo Julca
66c00d29af Remove usage of String|Number methods implemented by Sugar.js
Implements Tools#toDurationString to replace Number#duration.
2016-03-09 16:55:40 -05:00
Ivo Julca
0281176fd1 Remove usage of Array|Object methods implemented by Sugar.js
Adds a dependency to shim Object.values until it's natively available.
2016-03-09 16:55:34 -05:00
Ivo Julca
bc1a46eee1 Deps: Deprecate sugar extensions 2016-03-09 16:31:44 -05:00
The Immortal
527d1d03af Add LC suspect test 2016-03-10 00:46:50 +04:00
The Immortal
60cbc64ec3 Remove animation if Sucker Punch fails 2016-03-09 20:33:39 +04:00
The Immortal
d7b37ec6fa Add new Theorymon 2016-03-09 16:06:06 +04:00
Guangcong Luo
3c888c6517 Fix crash in /rank 2016-03-08 23:09:18 -05:00
Ivo Julca
821c2eba4d Battle Factory: update sets 2016-03-08 19:32:43 -05:00
The Immortal
f1624cd83e Gen 5 Random Battle: Fix Air Balloon
And moved the speed manipulation to the bottom.
2016-03-08 23:00:11 +04:00
The Immortal
93bd6365ad Unban Shedinja from Averagemons 2016-03-08 17:25:49 +04:00
The Immortal
db251d3822 Add maxHP flag for Shedinja
Refer to 61e2cfca27.
2016-03-08 17:25:20 +04:00
Guangcong Luo
edce3997f3 Revert and document old Shedinja HP behavior
There's a lot of discussion on this decision in the comments of 61e2cfca27

`this.speciesid === 'shedinja'` and `this.template.baseStats['hp'] === 1` do the exact same thing in Hackmons and Custom Game. They are both valid interpretations of:

```
0803E554   LDR     R0, =0x12F
0803E556   CMP     R7, R0
0803E558   BNE     loc_0803E568
```

But this is disassembly. Who knows what the uncompiled code looks like? Maybe it's not even hardcoded; maybe the uncompiled code just checks a list of Pokémon whose base HP is 1, and if you change Shedinja's base HP in the source, it'll have more than 1 HP. You can't say whether it does or doesn't.

So the only question between `this.speciesid === 'shedinja'` and `this.template.baseStats['hp'] === 1` is: which is better for mods?

I would argue that `this.template.baseStats['hp'] === 1` is better for mods, since it lets you 1. change Shedinja's max HP, and 2. give other pokemon 1 max HP, all just by editing pokedex.js (without needing to edit the engine). To be fair, it makes it so you can't have a regularly-calculated 1-base-HP Pokémon (without editing the engine), but I think this is much less common than wanting to give Shedinja more HP and wanting to give other Pokémon 1 max HP combined. And as always, you can have whichever you want by editing the engine.

Now, you call the default behavior for Averagemons and Tier Shift "wrong", but this is only wrong if you define the stat changes in terms of hexediting the games' compiled data, not if you define the changes in terms of editing the source or in terms of what you'd expect. Which you are free to define it that way, but I don't like that definition and don't support hexediting as an excuse to make PS's behavior less intuitive for modders.
2016-03-08 00:07:21 -06:00
Marty-D
c70bc2da94 Avoid all potential Thousand Arrows crashes from info commands 2016-03-07 21:45:29 -05:00
Ivo Julca
2b391ad824 Fix informational commands crashing for Thousand Arrows 2016-03-07 21:22:15 -05:00
The Immortal
438e9e4106 Update BH and AAA 2016-03-07 18:18:06 +04:00
The Immortal
1007219525 Move Gurdurr to RU 2016-03-07 05:54:46 +04:00
The Immortal
61e2cfca27 Correctly implement Shedinja's HP
Pokemon with a base HP of 1 do increase according to the stat formula.
Shedinja is hardcoded to have 1 HP no matter what its base stat is.
2016-03-06 20:36:28 +04:00
Marty-D
5d01004381 Fix Powder tag 2016-03-05 22:29:33 -05:00
Ivo Julca
23573646de Fix information leak in random formats 2016-03-04 19:46:25 -05:00
The Immortal
8c7fddfb5a Tier Shift: Fix HP boost 2016-03-05 03:34:50 +04:00
The Immortal
316cd1baa4 Update NU 2016-03-05 02:05:49 +04:00
Marty-D
0c0a0ce403 Validator: Fix tradeback logic 2016-03-04 15:06:44 -05:00
The Immortal
b542556fe3 Update Metagamiate 2016-03-04 23:57:53 +04:00
Guangcong Luo
33a0ea235e Merge pull request #2438 from QuiteQuiet/spread
Pass list of hit targets with [spread]
2016-03-04 13:44:57 -06:00
Ivo Julca
b9fe677d05 Update viability ranking threads 2016-03-04 14:16:31 -05:00
Quite Quiet
20877368a3 Pass list of hit targets with [spread] 2016-03-03 22:57:11 +01:00
Marty-D
1179e512e9 Add Hidden Ability Regi events 2016-03-03 15:47:18 -05:00
The Immortal
5f91a8247a Add STABmons bans 2016-03-04 00:14:44 +04:00
Guangcong Luo
9111f2635f Split dexsearch off to its own chat plugin 2016-03-03 05:25:13 -06:00
Ivo Julca
99a69f4d87 Include debug data in replay logs for random battles 2016-03-02 23:43:22 -05:00
Marty-D
d4decbc30f Fix Fling and Gem interaction with stealing items 2016-03-02 09:24:26 -05:00
Guangcong Luo
8474edccec Merge pull request #2436 from bumbadadabum/mafia3
Various updates
2016-03-02 04:12:30 -06:00
Guangcong Luo
5bf62dd524 Merge pull request #2437 from QuiteQuiet/spread
Notify client when a move is a spread move
2016-03-02 03:58:55 -06:00
Quite Quiet
7a14a8f547 Notify client when a move is a spread move 2016-03-02 10:42:09 +01:00