Commit Graph

21 Commits

Author SHA1 Message Date
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +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
Jesse 533a7356fd Add new service to handle profile migrations (#468)
* Add new service to handle profile migrations

* Handle various null checks

* Remove unecessary assignments

* Further works on this:

- Loads profiles as JObject's initally, so migration can take place on profiles that don't have proper compatability
- Adds prerequisite migrations, and sorts them after one another

* Throw exception if profile can't be deserialized after migration

* Cleanup & use profile version

* Further migrations work, support 3.10 & 3.11 profiles upgrading to 4.0

* Update parameter name
2025-07-11 13:11:02 +01:00
Cj 1de6a75cbf Update controllers sessionIds 2025-07-07 05:50:28 -04:00
Chomp 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +01:00
Chomp cf61560266 Cleaned up comments
Set properties as readonly
2025-06-29 09:33:11 +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 0a28dc4657 Moved GetScavKarmaLevel to extension method 2025-06-28 11:47:29 +01:00
Chomp 6126dc2394 Added item extensions 2025-06-28 10:04:52 +01:00
Chomp 0be02bc3f5 Created ProfileExtensions 2025-06-28 09:27:41 +01:00
Chomp d2267847a8 Deconstructed dictionaries to improve readability 2025-06-27 23:21:44 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Archangel 4e3c755e90 Remove AppContext, store profile related data in ProfileActivityService 2025-05-30 19:36:23 +02:00
Archangel c930197942 Cleanup AppContext 2025-05-29 23:50:06 +02:00
Chomp 2902b757e6 Added nullguard check to SaveActiveModsToProfile 2025-05-27 17:17:23 +01:00
Cj 5af362b0b3 Implement loading metadata from the assembly 2025-05-07 15:05:22 -04:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
hulkhan22 ba70911de3 Fix health and hydration regen 2025-04-29 19:44:03 +02:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
Chomp 6010e42a93 Fixed getRaidAdjustments not sending all the required fields 2025-04-01 12:06:15 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00