Commit Graph

34 Commits

Author SHA1 Message Date
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 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 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 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 bda27e5f21 Fixed ledge hopping behavior for walking pauses
If a character stops walking on a ledge, it will correctly maintain the
velocity.

`character.walking` is now added as a flag to indicate whether a
character is walking. This is used instead of weird hesitancy checking.
2015-10-28 09:04:54 -07:00
Josh Goldberg f016c36e0d Standardized more of battle dialogs' format
Allowed (string | string[])[] instead of string[][] in dialogRaw, so
correctly formatted battle dialog is easier.

Fixes #74. Helps with #75.
2015-10-23 20:44:00 -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
Josh Goldberg 1786b5d921 Removed reset/resetTimed logic
It's in GameStartr now. Also brought in some module updates.
2015-10-21 22:45:06 -07:00
Josh Goldberg c5051b974c Brought in fixes for Pokemon choice menus
Going to have to merge into master. This will be crappy for a day.
2015-10-17 20:29:01 -07:00
Josh Goldberg 96e1512e02 Moved dialogs to string[][]; menu word string[]s
Yup, that's the real format now.
2015-10-14 22:00:48 -07:00
Josh Goldberg 9c5ab96168 Fix for menu triggerers not creating menus
Fixes #50.
2015-10-08 18:33:12 -07:00
Josh Goldberg 10199290cf Tentatively changed keyboard results to string[] 2015-10-06 18:56:45 -07:00
Josh Goldberg 68d0109c16 Fixups for TS 1.6 compliant interfaces
bugh
2015-10-06 17:13:09 -07:00
Josh Goldberg 9cc07918fe Fixed Oak chase: Direction aliases, cutscene args 2015-09-11 21:30:04 -07:00
Josh Goldberg fd8be7d020 Fix for lacking Introduction.mp3, and EightBittr 2015-07-25 22:28:25 -07:00
Josh Goldberg b55711fa43 Removed GSBEmulatr d.ts reference 2015-07-13 20:00:32 -07:00
Josh Goldberg 82cd54338c More d.ts fixes: MapsHandlr, AudioPlayr, MenuGraphr 2015-07-09 18:59:29 -07:00
Josh Goldberg 55b804f885 Used BattleMovr.IActor instead of IPokemon 2015-07-09 14:43:30 -07:00
Josh Goldberg 02c4d017b4 Fixed IBattlrMovr, IGBSEmulatr, IItemsHoldr 2015-07-09 14:31:19 -07:00
Josh Goldberg 0e8d537731 Brought in BattleMovr with definitions 2015-07-09 12:28:32 -07:00
Josh Goldberg f41535b343 Brought in ScenePlayr with rest args in bind* 2015-07-09 12:14:06 -07:00
Josh Goldberg 84c827a658 Filled in constants under FullScreenPokemon
Making progress on those TypeScript additions.
2015-07-09 12:05:53 -07:00