Commit Graph

29 Commits

Author SHA1 Message Date
Chomp 731b79519f Rename method to GetItemWithChildren 2025-07-22 20:43:08 +01:00
Chomp db04c513fe Moved heavy fence assort logic after skip checks 2025-07-19 13:22:33 +01:00
Chomp 38fb2454c7 Various micro-optimisations 2025-07-18 16:05:29 +01:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +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
Chomp 61f62f191d Converted more strings to mongoIds and fixed issue with buying items from pmcs on flea 2025-07-07 11:56:19 +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
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02: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
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 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
Chomp da5644cfa2 made properties readonly 2025-06-28 12:53:21 +01:00
Chomp 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01:00
Chomp a3dbd3176e Updated FindAndReturnChildrenByItems to be an extension method 2025-06-28 11:58:50 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 57c9ff477e Localised various error messages 2025-06-09 09:35:47 +01:00
Chomp bdde7d7454 Updated UpdateFenceAssorts() to add a upd object when missing
Updated various methods to use library functionality

Improved string compare inside `RandomiseArmorInsertsDurabilities()`

Comment improvements
2025-05-21 12:02:12 +01:00
Chomp 718015c2a6 Simplify IF check inside RandomiseItemUpdProperties() 2025-05-10 21:13:20 +01:00
Chomp 6a683cd2c9 Improved Preset generation for Fence assort
Filter weapon preset root items by fence blacklist prior to looping over them
Added an exit after 25 failed attempts to add a preset to assort to prevent infinite loop

https://github.com/sp-tarkov/server-csharp/issues/167
2025-05-10 20:56:31 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 617b95b911 Undo tryadds, fixed actual issue 2025-04-08 21:04:29 +01:00
CWX d12f3f3bde Fix selling weapons to Fence, added stackObjectCount to upd init 2025-04-08 20:54:12 +01:00
TetrisGG 86f31fe202 Change Services Comments
Changed comments to XML standard
Added missing comments
Adjusted wording on some comments for clarity.
2025-03-09 13:40:05 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00