Commit Graph

138 Commits

Author SHA1 Message Date
Josh Goldberg 66429140a8 Marking issue #96 as to-do
More logic required.
2015-11-30 07:56:00 -08:00
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 e50af46b29 Fixed line-of-sights not triggering properly
Fixes #108. Also corrects direction being faced by trainers, an exposed
bug.
2015-11-29 12:50:54 -08:00
Josh Goldberg 32e1e27a0b Fixed "Complete" cutscene playing on battle close
The simple fix for #97 was that .bind usage was causing setMap's
noEntrance to be truthy. Fixing this exposed a bug:
cutsceneBattleComplete was never being called.

Fixed #97.
2015-11-29 12:32:50 -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 d2f5896df3 One more TS fix 2015-11-29 06:42:25 -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 e8817e5436 Fix for player's shadow having the player's id 2015-11-28 17:04:20 -08:00
Josh Goldberg fa89a4437b Added event.preventDefault to canInputsTrigger
Fixes #103. Also a regression in animateFadeFromColor.
2015-11-28 14:26:55 -08:00
Josh Goldberg 7e204f905d Brought in tslint fixed references 2015-11-28 01:41:29 -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 6dda2617b8 Brought in a couple more module updates 2015-11-27 21:07:41 -08:00
Josh Goldberg f9dc9b41ab Brought in most of FullScreenMario's module updates
A few have merge conflicts. Will need to resolve.
2015-11-27 20:23:30 -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 a536b71ae3 Fixed battleInfo.keptThings inconsistencies
Super-speed characters were happening because they were repeatedly being
put into the Character group. BattleMovr's battleInfo now keeps
keptThings as an IThing[] with a collection method in FSP, so there's no
confusion with how to pass those in.

GroupHoldr's deleteObject assumed Array usage so now those
functionalities have been better worded.
2015-11-07 17:58:47 -08:00
Josh Goldberg 0036630e2b Brought in new & improved AudioPlayr 2015-11-05 18:50:28 -08:00
Josh Goldberg 4d37051dfe Fix for Bulbasaur, Squirtle Pokedex descriptions 2015-11-05 18:50:00 -08:00