Commit Graph

837 Commits

Author SHA1 Message Date
Chomp fdfbf66c1b Removed unncessary nulls 2025-07-16 13:26:09 +01:00
Chomp e521c5ee8b Improved handling of mongoId casting inside PayMoney 2025-07-16 12:23:29 +01:00
Chomp f3482e28d9 Removed unnecessary nulls from Globals class 2025-07-16 12:20:19 +01:00
Chomp 8dce055acf Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-07-16 11:40:49 +01:00
Chomp 99c14de7af String to Mongo Id conversions
Cleaned up global class null values
2025-07-16 11:40:38 +01:00
chompDev 58068f7c6a .NET Format Style Fixes 2025-07-16 10:34:34 +00:00
Lacyway 32510bd67f Add SendMessageToAll method (#484)
* Fix typo

* Add SendMessageToAll method
2025-07-16 11:34:05 +01:00
Chomp e27b2b91e3 String to MongoId changes + Updated nullability of trader helper methods 2025-07-16 11:16:03 +01:00
Chomp 7b1f73fe7b Reduced brittleness of HealthTreatment + removed use of reflection 2025-07-16 11:15:17 +01:00
Chomp e9f6a402f7 Fixed nullref issue when healing post-raid 2025-07-16 10:43:17 +01:00
Chomp e4569395c2 Updated PayMoney
Reduced code duplication
Corrected currency key type
2025-07-16 10:14:47 +01:00
Chomp 38b1f648ce Added dictionary extensions 2025-07-16 10:13:33 +01:00
Chomp dbce1dfee7 Fixed casting issue when crafting
Renamed variable to improve readability

Code cleanup of `GetCustomSptHoursCraftingTaskConditionCounter`
2025-07-15 18:01:47 +01:00
Chomp e506ffba4f use correct types inside AdjustWeighting() 2025-07-15 17:31:27 +01:00
Chomp e42e53e492 Fixed profile creation issue 2025-07-15 17:19:47 +01:00
Chomp 88e6db3342 Fixed flea offer count 2025-07-15 17:19:31 +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
Chomp 26afa19387 made use of primary constructor inside Router.cs 2025-07-14 20:03:11 +01:00
Chomp 6f3ce60cec Simplified calls to .Remove() 2025-07-14 20:02:46 +01:00
Chomp 5ef2271a29 Converted collections to their frozen counterparts for improved lookup speed 2025-07-14 19:56:20 +01:00
Chomp 3aa13dd46b Removed reflection from AdjustBotAppearanceValues
More string to MongoId conversions
2025-07-14 18:42:42 +01:00
Chomp 0ec5aeab91 Removed FilterBlacklistedGear, same functionality can be done via editing the equipment's weighting to 0 2025-07-14 17:57:32 +01:00
Chomp 4d1ef0d326 Improved FilterBlacklistedGear logic 2025-07-14 17:41:25 +01:00
Chomp d99416a5a4 Removed use of reflection inside RemoveChristmasItemsFromBotInventory
Replaced more strings with mongoIds
2025-07-14 17:32:09 +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
Chomp 04ffbce106 Improved InsuranceController.Cost handling of duplicate Ids + made use of MongoIDs 2025-07-14 14:57:01 +01:00
Refringe 7cb286c659 Updates ModID property to ModGuid (#480)
* Updates `ModID` property to `ModGuid`

This will better align with what it's referred to elsewhere.

* Updated `ModGuid` Docblock

Updated the `ModGuid` docblock to reference the ideal use of reverse domain name notation.

* Updated `summary` to use `see` tag for reference link

* Updated `summary` to include line break

* Updated `summary` to include HTML line break
2025-07-13 19:38:50 +01:00
Chomp e5362bbe82 Merge pull request #476 from sp-tarkov/improve-migration-handling
Improve character voice migration
2025-07-12 15:10:53 +01:00
Archangel 2da3142d61 Improve character voice migration 2025-07-12 14:48:20 +02:00
Archangel 73269806cc Remove unused properties from configs, cleanup nullability 2025-07-12 14:24:21 +02:00
Archangel 8be5b2845a Fix sort by rating (#467) 2025-07-11 18:00:31 +02:00
Archangel d535dd338e Restore lifetime data on profile wipe / prestige to match live 2025-07-11 16:23:40 +02:00
Jesse a00b5c51d2 More prestige fixes (#471)
* Only send message if there's items to be sent

* Update variable name

* Fix up incrementing a null integer
2025-07-11 14:52:33 +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
Jesse 12699d799f Prestige fixes (#470)
* Add profile back to SaveServer earlier to avoid null issues

* Set proper index of prestige
2025-07-11 13:09:58 +01:00
Chomp 499b5f8b71 Updated ModId to be string to allow compat with client mods 2025-07-10 20:20:29 +01:00
Chomp 504a0e7e99 Added ModId property to AbstractModMetadata 2025-07-10 20:15:46 +01:00
Chomp 5d9a97ce5b Converted customisations ids to mongoIds 2025-07-09 17:24:12 +01:00
Chomp 4ba9a9f0d4 Correctly supply ID of voice not name of voice when generating bot 2025-07-09 17:16:17 +01:00
Chomp 736057e892 Fix wrong value being saved 2025-07-09 17:06:43 +01:00
Chomp d5fc9be339 Removed Voice from profile.info
Added 'voice' to `profile.Customisation`
2025-07-09 17:02:31 +01:00
Chomp a3d8eb2b81 Updated JSONs for 37972 2025-07-09 16:51:11 +01:00
chompDev 6852bd1e84 .NET Format Style Fixes 2025-07-09 09:33:55 +00:00
Lacyway 9de020c7e5 Update enum 2025-07-09 11:21:09 +02:00
Lacyway 5ddef9bebd Stop generating LaunchSettings (#464)
* Update csproj

* Add other projects
2025-07-09 08:34:23 +01:00