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
Chomp
1f061cfe89
Refactor of airdrop code
...
Made forced loot aware of weapon and armors. Now adds their presets instead.
Made `GetLootThatFitsContainer` aware of items inside container and will fail when container is full
Fixed issue where split stacks were not added correctly to airdrops
Comment improvements
2025-06-14 18:56:19 +01:00
Chomp
1d5162c761
Various changes and fixes for things that have been bugging me
...
Removed/flagged unused props
Typo fixes
Use `FirstOrDefault` over direct index access
Log stacktrace on exception inside `CreateWeaponItems`
2025-06-08 10:40:40 +01:00
Chomp
112afd3391
Fixed flea logic that prevented offers being listed for complex items (items /w children)
...
`GetItemsToListOnFleaFromInventory` would not keep the root item at index 0, client requires this
`FindAndReturnChildrenAsItems` now inserts root item at index 0
`CreateMultiOffer` now looks for root item by its id
Updated `CreateSingleOffer` to not choose first inventory item as root, search for it instead
Fixes #318
2025-06-04 17:30:26 +01:00
Jesse
ff1dfa54ae
Do a small pass on SPT's config's to reduce warnings and cleanup ( #348 )
...
* Do a small pass on SPT's config's to reduce warnings and cleanup
* Revert
* Revert EFT models
* Set list as null
2025-06-04 14:46:52 +01:00
Chomp
d88db583c1
Moved ItemSize into modules section, changed to record
...
Updated `GetItemSize` to accept `ICollection` instead of list
2025-05-21 11:34:02 +01:00
Chomp
8b3a5bbb90
Converted method comments to c# style
...
Made some protected properties readonly / static
2025-05-21 11:14:49 +01:00
Chomp
604137bad1
Improved various comments inside ItemHelper
...
Moved values out of `ArmorItemCanHoldMods` and into frozen set
Added Tpls to spelling dictionary
Changed list parameters to be `ienumerable` or `icollection` where possible
Made `ArmorItemHasRemovablePlateSlots` use class property directly
Made `ItemHasSlots` return false when checked item doesn't exist instead of throwing an unhandled exception
Folded `HasBuyRestrictions` logic into one line
2025-05-20 12:34:22 +01:00