Commit Graph

1206 Commits

Author SHA1 Message Date
Alex 5bbf671acd Refactored unit tests to use NUnit and added DI usage 2025-07-22 19:41:34 +01:00
Jesse c852debf2b Bundle loader refactor (#502)
* Bundle loader refactor

- Made async
- Validate if bundle actually exists, if not throw warning into the console
- Updated mod example

* Cleanup unused var
2025-07-22 12:54:06 +01:00
Jesse 7d8c3d041e Update dependencies (#501)
* Update dependencies

* Revert UnitTests.csproj
2025-07-22 10:20:46 +01:00
Chomp 8f4f72dcdd Updated node comments to c# format 2025-07-21 21:09:17 +01:00
Jesse 41756041d4 More migrations (#499)
* Make abstract virtual

* Handle nullability on List

* Move migrations into their own folders, add new migration for minor 3.10 versions
2025-07-21 20:03:06 +01:00
Chomp 2700273de1 string to mongoId changes 2025-07-21 15:13:47 +01:00
Chomp 8865484e2b string to MongoId changes 2025-07-21 14:52:30 +01:00
Chomp 0d7b006081 Don't serialise property and instead set when loaded on server start 2025-07-21 14:51:45 +01:00
Chomp 53cf5f97c8 Must serialise property into profile for player offers 2025-07-21 14:44:22 +01:00
Chomp 02b0c23cba Created CreateFleaOfferDetails 2025-07-21 14:38:00 +01:00
Chomp 3901a91f45 Improved how ragfair offer creator status is checked - store creator type in offer
Converted `IsTraderOffer` into extension method
string to mongoid conversions
2025-07-21 13:36:51 +01:00
sp-tarkov-bot a687320d75 .NET Format Style Fixes 2025-07-21 02:26:37 +00:00
Refringe f6894ad33c Validating auto-format workflow.
This style change should be automatically reverted.
2025-07-20 21:17:53 -04:00
Chomp 4b12fb98f3 Removed some null props 2025-07-20 22:53:11 +01:00
Chomp 0d79095aed Removed unused method and cached result of GetHighestSellToTraderPrice 2025-07-20 20:59:31 +01:00
Chomp 14e520633e Updated tests 2025-07-20 20:39:32 +01:00
clodanSPT 2af0891c66 .NET Format Style Fixes 2025-07-20 19:04:02 +00:00
Alex 9584d171f0 Test cleanup 2025-07-20 20:03:32 +01:00
chompDev 850441fcda .NET Format Style Fixes 2025-07-20 18:17:57 +00:00
Cj 1d1f872875 Refactor Item tpl generator to handle multiple generators + add quest tpl generator (#493) 2025-07-20 19:17:29 +01:00
Chomp f772e97d4e string to mongoId changes 2025-07-20 13:07:42 +01:00
Chomp 59d33d2621 Deconstructed dict KvP to improve readabiltiy + string to mongoId conversions 2025-07-20 11:57:15 +01:00
Chomp 776c5454ad Fixed pmc loot overrides from bear/usec.json not applying correctly 2025-07-20 11:35:07 +01:00
Chomp 80e0637b26 string to mongoid conversion
Removed unnecessary nulls

Cleaned up access levels for methods in `BotGenerator`
2025-07-20 11:33:25 +01:00
Chomp 737776c99d Made use of Math.Clamp to simplify logic across server
Made all fence rep clamping use min/max values from config instead of magic values
2025-07-20 10:29:34 +01:00
chompDev 2466a29520 .NET Format Style Fixes 2025-07-20 09:18:17 +00:00
XeonDead 6e68e02636 PrestigeHelper: fix wrongly awarding prestige+1 awards 2025-07-20 08:56:00 +03:00
Chomp d7f7d6c3c6 Renamed variable to ensure consistency 2025-07-19 23:08:46 +01:00
Chomp 5142f6b689 Reduce allocations inside AddAmmoToSecureContainer 2025-07-19 22:51:21 +01:00
Chomp 9a92440b31 Simplified IsVertical() 2025-07-19 22:33:37 +01:00
Chomp 02d079985f Updated pmc dogtag generation systems to use weights + prestige tags 2025-07-19 22:26:22 +01:00
chompDev 4c01d4d186 .NET Format Style Fixes 2025-07-19 21:14:00 +00:00
Dmitriy 2302ad4870 PrestigeHelper: add logic for fetching max prestige levels from database (#490)
BSG's logic implies that each prestige level saves 5% times prestige level from previous skill progress, implemented that, too
2025-07-19 22:13:29 +01:00
Chomp 96e073c604 Updated SetCustomisation to handle voice changes 2025-07-19 22:02:38 +01:00
Chomp a80d159545 Fixed prestiging not working after prestige 2
Fixed issues with receiving clothing
2025-07-19 21:16:42 +01:00
Chomp 32663a25df Added missing reward mappings 2025-07-19 20:49:27 +01:00
Chomp f006afa28d Revert "Fixed choosing 'wipe' from launcher persisting your prestige level"
This reverts commit c463e81f24.
2025-07-19 20:44:32 +01:00
Chomp c463e81f24 Fixed choosing 'wipe' from launcher persisting your prestige level 2025-07-19 20:40:36 +01:00
Chomp b7b50bc490 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-07-19 18:53:35 +01:00
Chomp a8e77b16e7 Added notification enum 2025-07-19 18:53:22 +01:00
clodanSPT 7b6f1eb9ad Added OnWebAppBuild load step (#489)
* Fingers crossed this will fix the mod loading issue for configs

* Renamed classes and documentation for clarity

* Remove some extra traces of the old PreSptLoader

* Renamed interface for clarity and updated docs

* Re-introduced PreSptModLoad for now

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-07-19 18:48:48 +01:00
Chomp ecdefef16c Removed unnecessary clone of db when checking for chat item + prevented some boxing issues 2025-07-19 14:29:51 +01:00
Chomp 405a8c94ac Removed unnecessary clone of db in GenerateRandomisedItemsAndAddToRewardPool 2025-07-19 14:13:03 +01:00
Chomp 43cc325da2 Removed unnecessary clone of db when generating flea offers 2025-07-19 14:08:29 +01:00
Chomp 096ec842ba Created overload of IsValidItem 2025-07-19 14:06:49 +01:00
Chomp 71481b3021 Removed unnecessary clone from GetAirdropLootConfigByType 2025-07-19 13:32:49 +01:00
Chomp fe7498c32d Reduced boxing inside FindAndReturnChildrenByAssort 2025-07-19 13:22:59 +01:00
Chomp db04c513fe Moved heavy fence assort logic after skip checks 2025-07-19 13:22:33 +01:00
Chomp 46638b1197 Refactored FindAndReturnChildrenAsItems method for better performance 2025-07-19 13:03:28 +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