Commit Graph

65 Commits

Author SHA1 Message Date
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Archangel 7e2e3db3fd Change property naming to be more consistent (#578) 2025-08-28 15:32:02 +02:00
Chomp 8573e6ae02 Use string.empty and MongoId.Empty() where appropriate 2025-08-17 21:35:34 +01:00
Cj 9bd5c2a401 Prefer fallthrough over or and newline 2025-08-11 14:08:59 -04:00
sp-tarkov-bot 1474d2b799 Format Style Fixes 2025-08-11 14:13:49 +00:00
Cj 76e91047d6 More warnings fixes (#542)
* Fix more warnings, add new exception

* Run formatter

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-11 14:13:02 +00:00
Lacyway d468848b0c Improve MongoIds (#537)
* Mongoid improvements pt1

* Format Style Fixes

* Fix incorrect string

* Fix != comparison

---------

Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com>
2025-08-09 11:50:49 +01:00
sp-tarkov-bot 05c097e044 Format Style Fixes 2025-07-30 15:56:15 +00:00
Chomp fcf7a6d40f Removed unused side_plate weights from config
Reduced code duplication in `FilterPlateModsForSlotByLevel`
2025-07-30 16:55:26 +01:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 9db4f65002 forgot a file 2025-07-28 15:11:05 +01:00
Archangel 384381f57e Make ItemLacksSlotsCartridgesAndChambers more robust, migrate to extension 2025-07-24 22:46:23 +02:00
sp-tarkov-bot 68f95db26a .NET Format Style Fixes 2025-07-24 15:05:49 +00:00
Chomp 2c5420f3db list to ienumerable 2025-07-24 16:05:14 +01:00
sp-tarkov-bot 99a4b7cbba .NET Format Style Fixes 2025-07-24 12:27:13 +00: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
sp-tarkov-bot 95420acd3d .NET Format Style Fixes 2025-07-24 08:40:50 +00:00
Chomp e77e910cd4 Cleaned up ItemFilterService:
Removed dupe methods
Removed use of clone
Added `AddItemToBlacklistCache` and `AddItemToLootableBlacklistCache`
2025-07-24 09:40:17 +01:00
sp-tarkov-bot cc68af0511 .NET Format Style Fixes 2025-07-23 14:56:02 +00:00
Chomp a1e0dadd08 Part 2 of list to ienumerable 2025-07-23 15:55:28 +01:00
sp-tarkov-bot 0faa65a560 .NET Format Style Fixes 2025-07-23 12:07:24 +00:00
Chomp 1320f7d0ab Ienumerable changes 2025-07-23 13:06:48 +01:00
chompDev 67b886127c .NET Format Style Fixes 2025-07-18 15:06:05 +00:00
Chomp 38fb2454c7 Various micro-optimisations 2025-07-18 16:05:29 +01:00
chompDev 4393feaafa .NET Format Style Fixes 2025-07-16 13:57:00 +00:00
Chomp dfe39a0395 Fixed typo + use FirstOrDefault instead of direct index access 2025-07-16 14:56:24 +01:00
chompDev 1b2b2c04f9 .NET Format Style Fixes 2025-07-15 09:38:23 +00:00
Chomp 2639504471 String to MongoId conversions
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01:00
chompDev c8faa33b51 .NET Format Style Fixes 2025-07-14 21:30:15 +00: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
chompDev 772fb40101 .NET Format Style Fixes 2025-07-06 21:23:01 +00:00
Cj 090d7b6494 change vars to MongoId, remove underscore from injections, fix bug introduced from last PR 2025-07-06 16:40:08 -04:00
chompDev 7dc5bb106d .NET Format Style Fixes 2025-07-05 11:35:33 +00:00
Chomp 4f5571c2d4 Converted more ids to MongoId 2025-07-05 12:35:03 +01:00
chompDev 1af4834336 .NET Format Style Fixes 2025-07-05 10:03:38 +00:00
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
chompDev df3e7c9210 .NET Format Style Fixes 2025-07-04 18:30:22 +00:00
Chomp 01cd251b68 Moved more code into extension methods 2025-07-04 19:29:43 +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
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
chompDev abab349a0c .NET Format Style Fixes 2025-07-02 09:57:24 +00: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
chompDev 0ec544e6a3 .NET Format Style Fixes 2025-06-30 13:12:24 +00:00
Chomp 6baf8a9118 Fixed FilterModsByBlacklist not filtering before returning results 2025-06-30 14:11:20 +01:00
chompDev d628f738f4 .NET Format Style Fixes 2025-06-29 17:58:59 +00: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