Commit Graph

26 Commits

Author SHA1 Message Date
Guangcong Luo
772d9093ae Fix some rounding issues for variable-base-power moves 2012-09-13 16:58:06 -07:00
Guangcong Luo
61a0bd9c09 Make sure self-target moves ignore Soundproof 2012-09-09 00:39:31 -07:00
Bill Meltsner
59fcef1ad7 Implement Ring Target. 2012-08-19 00:07:12 -05:00
Guangcong Luo
3298bd77b9 Remove old Foul Play code
obsoleted by better Foul Play code,
which was written without awareness of the existence of old Foul Play code
2012-08-17 21:43:08 -07:00
Guangcong Luo
2cddaf04a7 Proper fix to modifier rounding
(LC battles should actually have their damage calculated correctly now
2012-08-17 21:43:08 -07:00
Guangcong Luo
4aae0ac35c Implement Foul Play 2012-08-16 22:23:21 -07:00
Guangcong Luo
5fae874913 Fudge factor as we understand what's wrong with the damage calculator 2012-08-16 22:23:14 -07:00
Guangcong Luo
97f79fb7d6 Type effectiveness should also be truncated, not rounded 2012-08-16 21:59:21 -07:00
Guangcong Luo
2ea63804eb Round down the random factor
(it is not a modifier)
2012-08-16 21:49:32 -07:00
Guangcong Luo
fa1caf2384 Forecast is now affected by Air Lock etc 2012-08-14 20:54:21 -07:00
Guangcong Luo
473a1bae24 Make sure Air Lock and Cloud Nine prevent weather problems correctly 2012-08-13 22:19:27 -07:00
Guangcong Luo
a65720c8d8 Make sure hasValidMove is calculated correctly 2012-08-13 13:55:18 -07:00
Guangcong Luo
35a61657d2 Make sure switching isn't possible while recharging
(or in other move-locked situations)
2012-08-12 20:26:09 -07:00
Guangcong Luo
a0f10fe811 Two-turn move bugs: pretty much all fixed 2012-08-12 16:31:06 -07:00
Guangcong Luo
ea1565f516 Don't crash on malformed JSON in battles 2012-08-12 13:44:59 -07:00
Guangcong Luo
575454e27b Fix Red Card message 2012-08-06 14:38:47 -07:00
Guangcong Luo
92a4f85e0a Fix logging 2012-08-06 14:19:16 -07:00
Guangcong Luo
b18435b454 Restore p1active/p2active shortcuts for dev console 2012-08-04 20:31:41 -07:00
Guangcong Luo
60ca007255 Many stability improvements 2012-08-01 23:08:55 -07:00
Guangcong Luo
97a3977106 Fix team preview not working 2012-08-01 18:19:57 -07:00
Guangcong Luo
bc4b88bf66 Crash guard in sim process 2012-08-01 18:19:57 -07:00
Guangcong Luo
3714979815 Many fixes to multi-process system:
- crashes mostly gone
- teams work
- debug console available for battle process (use >>>)
2012-08-01 16:29:49 -07:00
Guangcong Luo
2d1c8ec754 Calculate inactiveSide correctly 2012-08-01 14:46:59 -07:00
Guangcong Luo
c47eb6b160 Battle process properly deallocates itself 2012-08-01 13:56:48 -07:00
Guangcong Luo
4831e68a8c Multi-process battles!
Battles now occur in a separate process.
Hopefully, this results in a substantial increase in network stability.
WARNING: Battle crashes are now practically unrecoverable.
2012-08-01 13:48:58 -07:00
Guangcong Luo
31e642c5a2 Rename simulator.js to battles.js 2012-07-31 19:48:09 -07:00