Commit Graph

77 Commits

Author SHA1 Message Date
Chomp 57dde61384 Various code quality improvements 2025-08-06 12:28:56 +01:00
Chomp 83408c76fc Reduced complexity of GetCompatibleTplFromArray()
Flagged ItemHelper as singleton due to number of frozensets
2025-08-05 23:55:13 +01:00
Chomp ec2cc78b2a Inventory code cleanup 2025-08-05 23:48:10 +01:00
Chomp 02b80888ec Improved dictionary access inside GetItemName to prevent issues where now-removed modded items are checked 2025-08-05 16:27:35 +01:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 623fce1484 Added id generation for BaseClasses, updated references 2025-07-27 17:40:27 +01:00
Chomp 5cfb1421c7 Removed unnecessary ?? 2025-07-25 20:13:50 +01:00
Chomp b1aa8f0942 Removed unnecessary ?? 2025-07-25 20:09:07 +01:00
Chomp 834666a403 Created overload of ItemHasBaseClass that accepts one base type input, faster for 70% of use cases 2025-07-25 17:22:59 +01:00
Chomp 2c5420f3db list to ienumerable 2025-07-24 16:05:14 +01:00
Chomp f562c634a7 Converted lists to hashsets where appropriate
Removed unnecessary uses of  ToList()
string to mongoId conversions
2025-07-24 13:26:34 +01:00
Chomp 10ad2dfe9a list to ienumerable changes 2025-07-23 22:07:56 +01:00
Chomp a1e0dadd08 Part 2 of list to ienumerable 2025-07-23 15:55:28 +01:00
Chomp 1320f7d0ab Ienumerable changes 2025-07-23 13:06:48 +01:00
Chomp db34eaa501 Updated various methods to accept IEnumerable instead of List 2025-07-23 10:57:49 +01:00
Chomp 731b79519f Rename method to GetItemWithChildren 2025-07-22 20:43:08 +01:00
Chomp 096ec842ba Created overload of IsValidItem 2025-07-19 14:06:49 +01:00
Chomp fe7498c32d Reduced boxing inside FindAndReturnChildrenByAssort 2025-07-19 13:22:59 +01:00
Chomp 38fb2454c7 Various micro-optimisations 2025-07-18 16:05:29 +01:00
Chomp b94d625362 string to mongoId + Various small refactors 2025-07-16 21:29:35 +01:00
Chomp 2639504471 String to MongoId conversions
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01:00
Chomp 5ef2271a29 Converted collections to their frozen counterparts for improved lookup speed 2025-07-14 19:56:20 +01:00
Chomp 7bda1b525f Updated acceptableFileExtensions to be a frozenSet
Removed more boxing
2025-07-07 13:31:39 +01:00
Cj 3817d6cca4 Helpers Mongoid conversion + cleanup (#458)
* Start converting helper method ids to mongoids and remove underscore from injections...

* Finish helper mongoIds
2025-07-06 17:31:59 +01:00
Cj edb1f8a6fc alphabetical order, rename var 2025-07-06 08:52:16 -04:00
Cj 14d2c53ba1 clean up FindBarterItems, remove underscore from injections, add locale for warning 2025-07-06 08:33:44 -04:00
Cj d1af6bf6e3 Service sessionIDs to mongoIDs (#454)
* Start updating service sessionIDs to mongoIDs

* Finish service conversion + fix other small issues
2025-07-06 13:08:07 +01:00
Chomp fa674d6add Converted RemapRootItemId into extension method 2025-07-05 17:46:58 +01:00
Chomp f140e1e106 Converted ReplaceIDs into extension method 2025-07-05 17:25:59 +01:00
Chomp 4f5571c2d4 Converted more ids to MongoId 2025-07-05 12:35:03 +01:00
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
Chomp 908635e272 Correctly init 2d array 2025-07-04 10:41:24 +01:00
Chomp c8b8669546 Cleaned up Inventory helper and improved readability 2025-07-04 09:23:41 +01:00
chompDev 973ea857f9 .NET Format Style Fixes 2025-07-03 22:06:04 +00:00
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02: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
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 82f555a754 Added MongoId type to various places 2025-07-03 10:04:09 +01:00
Chomp a8308248d6 Replaced hashutil.generate with new MongoId() 2025-07-02 12:47:00 +01:00
Chomp 5c26f47e2f Use correct new MongoId() instead of hashutil 2025-07-02 10:56:10 +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
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
Jesse 5686f4a486 Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
2025-06-28 19:08:42 +01:00
chompDev d4d2ed0403 .NET Format Style Fixes 2025-06-28 15:15:48 +00:00
Jesse d0af6acbe6 Move MathUtil methods to extensions (#432)
* Begin moving MathUtil methods to Extensions

* Add missing extension
2025-06-28 16:15:11 +01:00
Chomp 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01:00
Jesse 22c71bee5b Helper methods extensions (#431)
* Remove unused model

* Start moving methods to extensions, cleanup code
2025-06-28 12:14:50 +01:00
Chomp a3dbd3176e Updated FindAndReturnChildrenByItems to be an extension method 2025-06-28 11:58:50 +01:00
Chomp 6126dc2394 Added item extensions 2025-06-28 10:04:52 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00