Commit Graph

505 Commits

Author SHA1 Message Date
Katie Durden
a7dfeb5526 Optimization and refactoring of TileInfo.cs
Reduced number of calls to `isCollidingAtTile` as it calls a StardewValley function that takes ~30 ms to complete.
Optimize `getFarmAnimalAt` in `TileInfo`.
Refactor `getResourceClumpAtTile` and `getStumpsInWoods`.
2023-04-05 18:37:15 -07:00
Katie Durden
34c182ddc6 Cache the value of Game1.currentLocation 2023-04-05 18:37:15 -07:00
Katie Durden
245959366c Refactor StaticTiles and CATEGORY classes for enhanced functionality
`StaticTiles` now uses `System.Text.Json` and supports conditional and mod-based maps with efficient dictionary lookups. Dictionary can be reloaded as needed, typically once per game day.
`CATEGORY` allows runtime addition of new categories, with an indexer function for retrieval, and retains static properties for compiled categories.
2023-04-05 18:37:15 -07:00
Katie Durden
5d8f85fa5b Separated tile file loading from StaticTiles constructor 2023-04-05 18:37:15 -07:00
Katie Durden
dd812851b4 Add base for improved tile coordinate lookup functionality; typo fixes.
* Build tile dictionary at game launch to speed up tile lookups during gameplay.
* Add GameLaunched event to setup new dictionary after other mods loaded.
* Change `StaticTiles.getStaticTileInfoAtWithCategory` to use new dictionary for lookup.
* Various typo fixes and other code cleanup
2023-04-05 18:37:15 -07:00
Katie Durden
4b2e31fadc Change comparisons relying on string.ToLower() to use StringComparison.OrdinalIgnoreCase. 2023-04-05 18:37:15 -07:00
Katie Durden
541fd42133 Static tiles uses HashSet to lookup entries. More nullchecks changed to use is. 2023-04-05 18:37:15 -07:00
Katie Durden
a88172c0cf Replaced some foreach loops with for loops and nullchecks to use is instead of ==. 2023-04-05 18:37:15 -07:00
Katie Durden
e9ba7c96b9 Changes searched from List to HashSet; saves ~43ms in `SearchLocation 2023-04-05 18:37:15 -07:00
Katie Durden
32db14b329 add <modpath>/libraries/windows to the dll search path before loading Tolk. This enables nvdaControllerClient64.dll to be loaded in place. 2023-04-05 18:37:15 -07:00
Katie Durden
1c61580d6b Fix inventory not speaking extra info; not respecting config option. Reduce excess commas. Bump version to 1.3.5-alpha2. 2023-04-05 18:37:15 -07:00
Mohammad Shoaib Khan
7bb4819601 Merge pull request #94 from khanshoaib3/Issue90
Speak year and season on day 1
2023-04-04 16:01:55 +05:30
Mohammad Shoaib Khan
ce6f67a0dc Speak year and season on day 1 2023-04-04 15:59:40 +05:30
Mohammad Shoaib Khan
b24fe44dd3 Merge pull request #91 from khanshoaib3/refactor
Patches Refactor
2023-03-10 15:37:09 +05:30
Mohammad Shoaib Khan
2b6b60494e Grouped files 2023-03-10 15:33:39 +05:30
Mohammad Shoaib Khan
b8fce68bec Moved more menus to their own class 2023-03-10 15:24:08 +05:30
Mohammad Shoaib Khan
ea03f9a4cb Moved some menus to their own class 2023-03-10 15:09:56 +05:30
Mohammad Shoaib Khan
b0c1d9e173 Moved tailoring menu patch to its own class 2023-03-10 15:00:31 +05:30
Mohammad Shoaib Khan
af0ec1ab8d Moved pond query menu patch to its own class 2023-03-10 14:55:07 +05:30
Mohammad Shoaib Khan
07fcc94296 Moved forge menu patch to its own class 2023-03-10 14:50:40 +05:30
Mohammad Shoaib Khan
64300c58eb Moved item list menu patch to its own class 2023-03-10 14:41:30 +05:30
Mohammad Shoaib Khan
a250cbd98d Renamed classes 2023-03-10 14:35:46 +05:30
Mohammad Shoaib Khan
c553b589ab Moved patches related to Game1 and InstanceGame to their own class 2023-03-10 14:32:43 +05:30
Mohammad Shoaib Khan
50e8afc78c Moved and organized quest patches 2023-03-09 14:01:58 +05:30
Mohammad Shoaib Khan
53fe731401 Moved and organized mini game patches 2023-03-09 13:32:45 +05:30
Mohammad Shoaib Khan
2c233f6e6b Moved InventoryUtils.cs 2023-03-09 13:27:02 +05:30
Mohammad Shoaib Khan
1346e90bf5 Organised code for geode menu patch 2023-03-09 13:21:46 +05:30
Mohammad Shoaib Khan
8970a2c441 Fixed bug for Museum menu patch 2023-03-09 13:12:07 +05:30
Mohammad Shoaib Khan
2ddebd3615 Organised code for donation menu patches 2023-03-09 13:06:13 +05:30
Mohammad Shoaib Khan
5195313a5b Organised code for item grab menu patch 2023-03-08 12:44:07 +05:30
Mohammad Shoaib Khan
6822bd4840 Organised code for purchase animal menu patch 2023-03-08 12:29:19 +05:30
Mohammad Shoaib Khan
80963c4dc6 Improved and organised code in shop menu patch 2023-03-08 12:21:50 +05:30
Mohammad Shoaib Khan
8523026ed0 Improved and organised code for dialogue box patch
Moved letter viewer menu patch to its own class
moved npc patch to its own clas
moved draw hover text patch to IClickableMenuPatch.cs
2023-03-08 12:06:46 +05:30
Mohammad Shoaib Khan
2ba41822c9 Improved and organised code in title menu patches 2023-03-07 23:34:07 +05:30
Mohammad Shoaib Khan
9096ce59b9 bug fix in snapping mouse to primary and secondary inventory slots 2023-03-07 22:57:15 +05:30
Mohammad Shoaib Khan
6141447c13 Improved and organised code in carpenter menu patch 2023-03-07 22:45:00 +05:30
Mohammad Shoaib Khan
baede57965 Improved and organised code in bundle menu patches 2023-03-07 19:44:58 +05:30
Mohammad Shoaib Khan
b0ef71cd4a bug fix 2023-03-07 12:16:39 +05:30
Mohammad Shoaib Khan
403a97b633 Improved and organised code in AnimalQueryMenuPatch.cs 2023-03-07 12:03:08 +05:30
Mohammad Shoaib Khan
b22af63b97 Improved and organised code in SocialPagePatch.cs 2023-03-07 11:29:23 +05:30
Mohammad Shoaib Khan
774454ce0e Refactored code CraftingPagePatch.cs 2023-03-03 21:03:37 +05:30
Mohammad Shoaib Khan
0fa90e4c74 Improved and organised code in InventoryPagePatch.cs 2023-02-24 20:45:35 +05:30
Mohammad Shoaib Khan
15380e5b76 Improved game menu patch code
- Added active suffix if the hovered tab button matches the current tab
2023-02-24 20:44:54 +05:30
Mohammad Shoaib Khan
911c93a555 Moved game menu patch 2023-02-24 19:45:01 +05:30
Mohammad Shoaib Khan
8d11cc6266 Moved exit page patch 2023-02-24 19:40:01 +05:30
Mohammad Shoaib Khan
820d714594 Moved options page patch 2023-02-24 19:35:58 +05:30
Mohammad Shoaib Khan
7c1e600790 Moved inventory page patch 2023-02-24 19:33:14 +05:30
Mohammad Shoaib Khan
f851806947 Moved crafting page patch 2023-02-24 14:43:19 +05:30
Mohammad Shoaib Khan
9d7c2c36ec Moved social page patch 2023-02-24 14:37:21 +05:30
Mohammad Shoaib Khan
2a5baa6770 Moved collections page patch 2023-02-24 14:33:03 +05:30