Commit Graph

1779 Commits

Author SHA1 Message Date
Chomp 908635e272 Correctly init 2d array 2025-07-04 10:41:24 +01:00
Chomp 2609db2536 Removed unused injections 2025-07-04 09:40:22 +01:00
Chomp a337b3c4e9 Removed unused injections from controllers 2025-07-04 09:24:06 +01:00
Chomp c8b8669546 Cleaned up Inventory helper and improved readability 2025-07-04 09:23:41 +01:00
Chomp 52bb6f3cab Fixed logic error inside CanItemBePlacedInContainerAtPosition 2025-07-04 09:06:23 +01:00
chompDev 973ea857f9 .NET Format Style Fixes 2025-07-03 22:06:04 +00:00
Chomp abe290b1eb Merge pull request #443 from sp-tarkov/locale-fixes
Handle ToLower neutrally across all locales (#412)
2025-07-03 23:05:38 +01:00
Jesse d3cd4359fa Mongo fixes (#444)
* Pass Json serializer options to all converters

* Fix required on record that has two sets of id's

* Pass options to mod handlers

* Update method
2025-07-03 20:24:05 +01:00
Chomp 930ce7d6ad Fixed incorrect logic inside RowIsFull` 2025-07-03 18:01:51 +01:00
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02:00
Chomp 939198026f Cleaned up logic inside HideoutItem mongoid set 2025-07-03 16:39:04 +01:00
Chomp f2cebc4f88 Pass correct mongo id as parameter 2025-07-03 16:37:45 +01:00
Chomp 4e2d4dc708 Rewrote container item space system to use 2 dimensional arrays (#442)
* Rewrote container item space system to use 2 dimensional arrays

* Moved container helper code into extension methods

* Reduced amount of parameters passed into `RowIsFull`

* Skip root trader items

* Remove debug

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-07-03 16:36:13 +01:00
chompDev a9918f9e1c .NET Format Style Fixes 2025-07-03 14:44:10 +00:00
Cj dab6fd5291 update item tpl generator to use MongoIDs (#441)
* update item tpl generator to use MongoIDs

* make generation readonly
2025-07-03 15:43:44 +01:00
Jesse ebe8f9ded5 Mongoid changes (#440)
* Remove old IsValidMongoId and Regex

* Convert more configs to MongoId, as well as BaseClasses

* Remove HashUtil.Generate(), replaced with new MongoId()
2025-07-03 15:42:16 +01:00
Chomp 020cfa7ab8 Cleaned up GetStashSlotMap and related sub functions 2025-07-03 13:13:59 +01:00
Chomp 83d35b4555 Fixed item deletion error - Use separate record for item deletions 2025-07-03 10:37:12 +01:00
Chomp 7a78467d72 Fixed login error 2025-07-03 10:36:18 +01:00
Chomp 8858ccc17f Improved handling of edge-case MongoId values 2025-07-03 10:06:15 +01:00
Chomp 82f555a754 Added MongoId type to various places 2025-07-03 10:04:09 +01:00
Chomp 539f56491c Improved handling of nulls inside AddBaseItems 2025-07-03 09:43:41 +01:00
chompDev 3afc1e3431 .NET Format Style Fixes 2025-07-02 22:37:51 +00:00
Chomp fefe9bcec5 Cleaned up property content 2025-07-02 23:37:16 +01:00
Chomp fb1a96c3bf Fixed AddCompatibleModsForProvidedMod not filtering mods correctly 2025-07-02 23:35:37 +01:00
Chomp 77ce596056 Added MongoId type to various places 2025-07-02 19:50:29 +01:00
Chomp 145b19857d Updated profile.json defaults to resolve MongoId conversion warnings 2025-07-02 19:49:42 +01:00
Chomp 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +01:00
Chomp 2beebaed12 Reduced error to warning 2025-07-02 19:07:08 +01:00
Chomp 0d946b48cc Hashutil.generate to new MongoID() 2025-07-02 13:04:53 +01:00
Chomp a8308248d6 Replaced hashutil.generate with new MongoId() 2025-07-02 12:47:00 +01:00
Cj 371c9d58f0 Repeatable quest generation MongoID conversion (#439)
* Update repeatable quest generation for mongoid, add new server localizations, switch `Traders` to MongoId

* Give error default value
2025-07-02 12:44:49 +01:00
chompDev abab349a0c .NET Format Style Fixes 2025-07-02 09:57:24 +00:00
Chomp 18bdd203dd Fixed invalid comparision of IDs 2025-07-02 10:56:39 +01:00
Chomp 5c26f47e2f Use correct new MongoId() instead of hashutil 2025-07-02 10:56:10 +01:00
Chomp 873b0b11f7 Passed version id string into return object 2025-07-02 10:29:21 +01:00
Jesse 54f0d0779c Convert TemplateItem to MongoId (#436)
* Convert TemplateItem to MongoId

* Push new extensions

* Handle null mongoid's being passed to regex

* Handle null strings, fixes item events

* Updated loot generation to work with new property `composedKey`

Fixed typo in `SlotId`

* Fix missing method after merge

* Remove duplicately named MongoIDExtensions?

* Fixed location loot generation to handle impending loot json changes

* Updated location JSONs with new properties (excluding lighthouse loose loot)

* Fixed build issue with ItemTplGenerator

* use correct handing for new mongo ids

* Added helper method to improve readability

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-07-02 10:14:04 +01:00
chompDev 46989aa19e .NET Format Style Fixes 2025-07-01 09:18:15 +00:00
Lacyway 8e3894e9ad MongoID improvements (#437)
* MongoID improvements
- Added extension to check whether a MongoID is valid, 33% faster than old method
- Cut down generation speed by 2/3

* Fix method used

* Add test
2025-07-01 10:17:39 +01:00
Jesse 6ac747d18d Begin converting some id's to MongoId (#435)
* Begin converting some id's to MongoId

* Remove nullability on MongoId's

* Update trader MongoId's
2025-06-30 15:25:47 +01:00
chompDev 0ec544e6a3 .NET Format Style Fixes 2025-06-30 13:12:24 +00:00
Chomp d22b0a9d1d Made debugging botgen while in IDE easier 2025-06-30 14:11:53 +01:00
Chomp 6baf8a9118 Fixed FilterModsByBlacklist not filtering before returning results 2025-06-30 14:11:20 +01:00
Chomp 62a9cc28d5 Fixed weekly boss elimination quest generation not finding a location 2025-06-30 12:41:49 +01:00
Chomp 25c3eee4fa Added MongoId struct 2025-06-30 11:07:04 +01:00
Chomp d6b4e3378a Refactored GetMostRecentPreviousDay to not use while loop 2025-06-30 10:21:37 +01:00
Chomp 81a263b7d0 Fixed incorrect logic in how weekly reset date is picked, choose the most recent previous day, not the closest 2025-06-30 10:12:55 +01:00
Chomp 50c91fb1c2 Added missing property 2025-06-30 10:07:33 +01:00
Chomp 611b234142 Added ability to change weekly boss reset day via config 2025-06-30 09:50:11 +01:00
Chomp 4608567982 Added Knight to weekly boss pool 2025-06-30 09:42:53 +01:00