Commit Graph

47 Commits

Author SHA1 Message Date
Josh Goldberg 8bf07d92bc Added removePreThing to FSP
Looks like it's deleting the whole terrain...
2015-11-29 15:59:30 -08:00
Josh Goldberg f775d0ab65 Converted maps.js to maps.ts
Also fixed a few tslint errors.
2015-11-29 15:51:03 -08:00
Josh Goldberg 4606990207 Fix for trainers not walking to players
Distance between was being computed as NaN. Fixes #109.
2015-11-29 15:21:42 -08:00
Josh Goldberg fc1771c3c7 Added basic time measurementts
Fixes #102.

This doesn't account for pause menu, which shouldn't increase in-game
time. Issue #??? created to account for that.
2015-11-29 12:13:03 -08:00
Josh Goldberg c78763e387 Tslint fix for menus.ts
Wow, only one.
2015-11-29 10:34:51 -08:00
Josh Goldberg dc71bb11c6 Fixes for assorted menus.ts related breakages
Fleshed out replacement functions for badges.length and pokedex.length.
Also fixed accidental capitalization of Nidoran names and more
capitalization in FullScreenPokemon.ts.
2015-11-29 10:28:29 -08:00
Josh Goldberg eb70a04f35 Fixed rest of menu.ts to tslintification
Changes in replacers will need to be tested.
2015-11-29 09:23:27 -08:00
Josh Goldberg b53288d9d0 Mostly got menus.js converted to .ts
Getting rid of replacementStatistics and replaceFromItemsHolder.
Instead, replacements can either be a string[] or a function returning a
string[]. This simplifies the API and allows for non-ItemsHolder things
being returned, such as badges.length.
2015-11-29 08:56:35 -08:00
Josh Goldberg e3a08642a4 Small tslint fixes 2015-11-29 06:39:03 -08:00
Josh Goldberg cc1e489811 Finished migrating names to uppercase
Fixes #105.

Hopefully...
2015-11-29 06:29:37 -08:00
Josh Goldberg eddbcae750 Updated math.js to math.ts, with definitions
Fixes #104. Incidentally updated grunt-typescript to 0.8.
2015-11-29 03:03:25 -08:00
Josh Goldberg ad345133f1 Updated placeholder editor settings
LevelEditr changed, so the old settings were causing an error
2015-11-27 21:12:58 -08:00
Josh Goldberg 3af9a35dbd Separated settings/maps.js into settings/maps/...js
Updated grunt, tests, and gitignore to go with it. This is the same
change as FullScreenMario.
2015-11-27 20:04:01 -08:00
Josh Goldberg 4d37051dfe Fix for Bulbasaur, Squirtle Pokedex descriptions 2015-11-05 18:50:00 -08:00
Josh Goldberg 463aa1868d Fixes for a few cutscene errors
Added an ID to the anonymous trigger causing the Oak grass cutscene.
Fixed scoping errors for PokeCenter cutscene.

Fixes #100.
2015-10-30 20:10:02 -07:00
Josh Goldberg 66f27ade1a Fix for Viridian's PokeMart location being object
The behavior *should* be that when you setLocation, it resets the area,
so having multiple locations with the same name should be fine. Should
be.
2015-10-30 19:33:15 -07:00
Josh Goldberg 807a12aabc Fixed Viridian City's area spawner for Route 1
It was too far to the right.

Fixes #92.
2015-10-30 16:11:16 -07:00
Josh Goldberg d50f934028 Small fixes for dialog stabilities
Made the GeneralText menu deleteOnFinish by default for character
dialog.

Fixed tslint too.
2015-10-29 09:54:38 -07:00
Josh Goldberg 545a1a7132 Fix for "Got away safely!" one-letter-at-a-time 2015-10-26 21:58:27 -07:00
Josh Goldberg 9798d16e0c Fix for sprite cycles not triggering
Turns out settings/events.js was passing then with "Sprite" instead of
"Class" (this was changed a while ago elsewhere).

Fixes #33. Just in time for Halloween.
2015-10-26 19:12:40 -07:00
Josh Goldberg 6706dcc5d3 Fix for filename containing undefined
No need to store it in statistics.js.

Fixes #58.

Also random fix for default opponent names being stored as strings
(might help with stuff later).
2015-10-25 10:38:28 -07:00
Josh Goldberg cd6abe88fc Added logic for zero or infinite power attacks
Fixes #75.

Side note, fixed capitalization issue for menu introduced in last
commit.
2015-10-24 15:50:18 -07:00
Josh Goldberg 6d15e9e9cc Fix for full player health not showing in battle
The menu wasn't wide enough, now that it's treated as separate words.

Also used the addBatlteDisplayPokemonHealth function instead of manually
setting the dialog.

Fixes #77.
2015-10-24 15:31:57 -07:00
Josh Goldberg 964cc12c69 Added hasPokedex flag to ItemsHolder
Fixes #45.
2015-10-24 14:42:30 -07:00
Josh Goldberg 9e85c0dfc4 Re-enabled maps' afterAdd, with correct scope
Turns out areas' attributes weren't being taken into consideration.
They're now used again, and MapsHandlr keeps an optional commandScope
for stretches and afters.

Fixes #54.
2015-10-23 19:58:43 -07:00