Commit Graph

131 Commits

Author SHA1 Message Date
Josh Goldberg 4d5b14d974 Started on PokeCenter computers (#690)
Adds the first menu and Bill's with closing. Nothing else.
2018-04-10 23:11:16 -07:00
Josh Goldberg a1dce5c0c9 A few small battle fixes (updates) 2018-04-08 05:48:48 -04:00
Josh Goldberg f94c97ca93 Streamlined PokeCenter tests (#679)
* Streamlined PokeCenter tests

Made menus use menugraphr@0.7.7's new `finishLinesAutomatically` for fewer manual clock ticks.

* Added `automaticallyAdvanceMenus` flag to tests
2018-04-08 03:34:51 -04:00
Josh Goldberg c1be6d7c1e Added tests for PokeCenter healing (#675)
Moved the internals of PokeCenterCutscene off of the old ScenePlayr routine structure. They're just regular callbacks now.
The tests themselves are a bit unweildy: they do fancy math to try to anticipate how long things take in the cutscene. I can't think of a better way for now.

As a workaround to make the tests not take 500ms, set `framerateSkip` in the stubbed games to `9000001`.  Stops the game from redrawing on subsequent ticks.
2018-04-08 01:41:16 -04:00
Josh Goldberg 379660458b Generalized wild Pokemon encounters to caves and surfing (#673)
* Generalized wild Pokemon encounters to caves (walking) and surfing (water)

Uses `AreaGate`s to mark an `activeArea` on the game's `MapScreenr`. No longer needed to keep track of map & area from spawned Things.

* Merge branc h'master'

* Missing semicolon
2018-04-08 01:40:58 -04:00
Josh Goldberg 3501dca071 Re-added runner settings defaults to createGamesRunner (#674) 2018-04-03 18:52:15 -07:00
Josh Goldberg 1766b22c8a Removed now-redundant parts of MenuGraphr schemas (#667)
* Removed now-redundant parts of MenuGraphr schemas

* Bumped MenuGraphr to 0.7.5

* menugraphr@0.7.6
2018-04-01 20:34:36 -07:00
Josh Goldberg c66460839b Nitpicked MoveAdder.test.ts (#668) 2018-04-01 20:14:32 -07:00
Machinocheese 647c8d104b Added a unit test for the new move API (#652)
* Style...?

* Fixed up some description

* Added in errors

* Intermediate stage...

* Throws errors rather than returns

* Added some new tests; fixed some style issues

* whoops
2018-03-31 16:29:55 -07:00
Machinocheese 22c45451c6 Added logic for adding battle stats (#656)
* Added logic for adding battle stats - dialog WIP

* Added logic for X Attack/Defend/Special/Speed

* Removed an accidental log/added some docs

* Added revive functionality
2018-03-31 16:25:42 -07:00
Adeet Phanse 99bba83070 Ledge fix (#658)
* starting Pokeball Status Fix

* fixing charfaint string

* adding potential NPC ledge fix

* adding potential NPC fix

* adding collision fix

* adding ledge fix

* adding border to ledge check

* adding temporary code

* adding partial fix

* fixing rendering issue

* fixing double jump issue

* updating ledge values

* trying to fix line ending

* reverting line ending change

* fixing spacing issues

* moving oldledge sprite into mountain bottom

* updating line endings

* adding comment about making sure jumping works for horizontal ledges

* Removed unnecessary line removals in Collisions.ts
2018-03-27 18:29:01 -07:00
Machinocheese c145985974 Added PP functionality (#654)
* Added PP functionality

* Changed docs

* Small nits
2018-03-25 18:19:10 -07:00
Machinocheese 4451233eb1 Added dialog for teaching Pokemon new moves (#638)
* Added dialog for teaching Pokemon new moves

* Some style changes

* Style

* Style...

* More style

* Update MoveAdder.ts
2018-03-24 23:33:35 -07:00
Machinocheese 34b8d99172 Fixed an issue where a Pokemon's status would not be correctly displayed. (#645)
* Fixed a bug where talking to a Pokeball before the Oak cutscene would freeze the game

* Whoops

* Fixed the status bug

* Structural changes

* Structural changes

* Some more changes

* Fixed tslint problems
2018-03-23 09:51:08 -07:00
Machinocheese 4079bad1ec Fixed Oak Cutscene Bug (#639)
* Fixed a bug where talking to a Pokeball before the Oak cutscene would freeze the game

* style changes
2018-03-18 13:31:43 -07:00
Josh Goldberg adb2d0c971 Added src/index.css with .gitignore fix 2018-03-17 15:56:24 -07:00
Machinocheese 25318c00bf Added an API for giving a Pokemon a new move (#633)
* fixes issue #458

* stylistic changes

* Update MoveAdder.ts
2018-03-11 10:15:19 -07:00
Josh Goldberg f0d034bd72 shenanigans-manager@0.2.24 2018-03-04 18:58:39 -08:00
Adeet Phanse 04e853d7b7 Pokeball Status fix (#622)
* starting Pokeball Status Fix

* fixing charfaint string
2018-02-22 16:06:46 -08:00
Adeet Phanse 608c3f4412 Added experience gain from battles (#596)
* adding experience implementation

* adding documentation to gainExperience

* updating experience implementation

* updating implementation to use callbacks and moving menu creation and manipulation to the experience class

* updating spacing

* splitting code into functions

* updating spacing/indentation

* removing duplicated code

* removing extra line
2018-02-09 08:43:20 -08:00
Josh Goldberg 686bad69e4 Fixed for default (falsy) "POKEDEX.LENGTH" values 2018-02-09 08:28:54 -08:00
Josh Goldberg d49e8bb10a Used ItemsHoldr with item generics (#609)
* Used ItemsHoldr with item generics

* itemsholdr@0.7.6
2018-02-05 20:19:03 -08:00
Josh Goldberg 80119450df Renamed items to storage
After filing a whole bunch of issues on missing features for in-game items, I realized this was a better naming choice.
2018-02-04 19:25:13 -08:00
Josh Goldberg 6a32c14ec8 Used constant item names instead of string literals (#600) 2018-02-04 17:22:21 -08:00
Machinocheese fd799af6cc Fixed gust bug (#591) 2018-02-03 14:47:37 -08:00