Commit Graph

39 Commits

Author SHA1 Message Date
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 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 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
sp-tarkov-bot 7bf52b9240 .NET Format Style Fixes 2025-07-22 19:37:29 +00:00
Alex 8ab081e057 Fixed slot misplacement in bots inventories 2025-07-22 20:35:44 +01:00
Chomp 4b12fb98f3 Removed some null props 2025-07-20 22:53:11 +01:00
Chomp d7f83e1b7d Micro-optimisations
Moved `GetInventoryItemHash` to extensions and rewrote to make better use of linq
2025-07-19 11:11:59 +01:00
Chomp e42e53e492 Fixed profile creation issue 2025-07-15 17:19:47 +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 e148f5a998 Flag RandomisedResourceDetails as nullable 2025-07-14 16:03:35 +01:00
Chomp 585a91afcc Removed reflection from GetBotEquipmentSettingFromConfig 2025-07-14 15:54:54 +01:00
Chomp fba084639c Add back incorrectly removed properties that are accessed via reflection + improved dictionary access 2025-07-14 15:42:50 +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
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
Chomp 6b810687f3 Fix issues found by tests 2025-07-04 15:26:15 +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 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
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 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 2019e7d182 Renamed variable for clarity 2025-06-05 12:06:45 +01:00
Archangel 3fc3ecc0fc Set PMC types statically 2025-06-05 07:31:05 +02:00
Jesse 787752b555 Async task OnUpdate (#355)
* Make OnUpdate a task instead a void, handle OnUpdate better by running it in it's own task

* Make helper transient, resolve mod loading issues
2025-06-04 20:53:39 +01:00
Archangel 4e3c755e90 Remove AppContext, store profile related data in ProfileActivityService 2025-05-30 19:36:23 +02:00
clodanSPT ee51e1fcab Refactored pre spt mod loader to user IOnLoad, moved Watermark to IOnLoad as well (#313)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
2025-05-30 11:03:08 +01:00
Chomp 74a5310de0 Added nullguards surrounding laser and nvg checks 2025-05-28 11:44:14 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
hulkhan22 23468cf0a3 fix: Bot flashlights on during daytime raid (#236)
* Fix flashlights being on during daytime raids

* Add comment for the new property
2025-05-05 09:07:26 +01:00
Chomp 31ae5feb41 Bot generation performance (#231)
* chore: Bot generation performance improvements (#227)

* Bot generation performance improvements

* Revert debug logging logic

* Get rid of Info log which is bound to be printed inevitably at each bot wave generation

* Use assault const

* Removed comments

Removed lowercase side constants
Renamed equipment role to better explain its purpose

Fixed `Blocks` property being serialised to client

Updated `_slotsWithNoCompatIssues` to use existing enum type

Reduced log line to be debug

* Fixed `GetRandomTextThatMatchesPartialKey` incorrectly checking eft locales instead of spt locales

* Updated various methods to be protected

---------

Co-authored-by: hulkhan22 <clandestine984@gmail.com>
Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-05-04 12:51:45 +01:00
Chris Adamson de38f1fe88 try just the enum 2025-04-29 10:57:12 -05:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
Chomp df8ffa2b16 Replaced various instances of dictionaries and hashsets with their frozen counterparts 2025-03-09 17:12:07 +00:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00