Commit Graph

76 Commits

Author SHA1 Message Date
hulkhan22 320e6adb84 Minor cleanup 2025-05-17 13:04:34 +02:00
hulkhan22 1eb4d55a02 feat: Make adding new traders easier (#251)
* Make adding a new trader easier

* Improvements
2025-05-11 20:12:26 +01:00
Chomp 718015c2a6 Simplify IF check inside RandomiseItemUpdProperties() 2025-05-10 21:13:20 +01:00
Chomp 6a683cd2c9 Improved Preset generation for Fence assort
Filter weapon preset root items by fence blacklist prior to looping over them
Added an exit after 25 failed attempts to add a preset to assort to prevent infinite loop

https://github.com/sp-tarkov/server-csharp/issues/167
2025-05-10 20:56:31 +01:00
Chris Adamson f8bb244061 actually get rid of quest items on death (#249)
* actually get rid of quest items on death

* fixes based on feedback
2025-05-08 17:53:44 +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
CWX f15eb8e563 fix saiga FA 2025-05-05 23:01:22 +01:00
Chomp ae98f57bd9 Replaced various string.toLower() == x checks with string.Equals 2025-05-05 14:03:57 +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
CWX dd6085af97 thanks lacy 2025-05-02 20:36:27 +01:00
CWX 7b22d93c60 Add ability to remove Custom locale 2025-05-02 20:26:29 +01:00
CWX 5c6a94a731 fix custom locales not overwriting existing ones 2025-05-02 20:24:48 +01:00
Chomp 344ea6de35 Moved container methods around
Added code to validate items fit into airdrop crate

Updated `CreateForcedLoot` and `CreateRandomLoot` to return items with their children

Updated `SetFoundInRaid` to not add a upd to money/currency if it doesn't already have one
2025-05-02 19:48:28 +01:00
hulkhan22 25386d588f Fix bonus ID check (#223) 2025-05-01 22:04:17 +01:00
Chomp e716e7b1d8 Made use of ProfileActivityService inside HandleFallback
Removed storage of session id from `HandleFeedback`

Cleaned up `ProfileActivityService`
2025-05-01 13:51:04 +01:00
CWX 0f3795fc49 fix buff logic for nulls 2025-04-30 15:59:13 +01:00
CWX 309fffeab2 Remove redundant code from node 2025-04-30 13:31:25 +01:00
Chomp 442011fef3 Deconstruct KvP inside PayMoney 2025-04-30 13:12:51 +01:00
CWX 990fe1cd7f Fix: taking the wrong amount 2025-04-29 21:41:26 +01:00
Chomp 1e42c8b8db Merge branch 'develop' into refactor/perf-work 2025-04-28 21:16:03 +01:00
hulkhan22 bbae435498 Refactor Bot chat messages at raid end 2025-04-28 21:58:45 +02:00
Chomp c0760ce4c1 Return empty response object when no stash id found, allows client to continue 2025-04-28 09:43:33 +01:00
hulkhan22 294c879f11 Fix cultist circle not giving reward 2025-04-28 00:23:01 +02:00
Alex 222ca2e274 Replaced Serilog for custom logger 2025-04-24 16:29:36 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 8ba498a4bc Removed TraderAssortService use TraderHelper.GetTraderAssortsByTraderId 2025-04-22 14:36:28 +01:00
CWX 2b0a829515 reduce flea offer pack chance, cuz i hate em 2025-04-22 14:23:30 +01:00
CWX 7726df0ee1 simplify blacklist filtering 2025-04-22 13:08:39 +01:00
CWX d8bdfb9cb0 Fix botgen filtering issues 2025-04-21 23:36:10 +01:00
CWX 5b5e668ed6 add firework to seasonalevent blacklist 2025-04-21 23:11:04 +01:00
CWX 5886320bb6 change to seconds not ms 2025-04-20 14:33:14 +01:00
CWX 69ecde139e Update uasges to use LocalService 2025-04-17 13:21:38 +01:00
CWX 257c8cc698 moved removal of prapor message to localService as this needs to happen each time we lazyload 2025-04-17 13:20:54 +01:00
CWX f83b4a9138 implemented ability to add custom locales
change was relatively small so added it directly to localService
anything dealing with locales should use this service and not directly with DatabaseService.GetTables().Locales.Global as injected locales will be lost due to lazyloading
2025-04-17 13:19:55 +01:00
Chomp 00e94e2f25 Copy changes from node-server 2025-04-16 11:55:51 +01:00
CWX a7b52a5632 Change to use ConcurrentDict as i got a modified whilst reading on cloner 2025-04-11 13:55:18 +01:00
CWX 84dc3dfdbc Moved BotLootCacheService to ConcurrentDictionary 2025-04-11 12:17:48 +01:00
CWX 52d1514f82 Fix repairing Buffs and botgen buffs 2025-04-10 17:44:27 +01:00
Chomp cc8198f3e6 Flagged method result as nullable 2025-04-10 13:10:17 +01:00
Chomp 259c8b7cc5 Fixed ChooseMessage not adding a space prior to suffix 2025-04-10 13:02:57 +01:00
CWX 642413f041 filter out mags and ammo from secure container that is "loot" from bot jsons 2025-04-10 12:55:31 +01:00
CWX 0d8d6e4fec fix spelling 2025-04-10 12:37:16 +01:00
Chomp f104ab1417 Improved logging 2025-04-09 17:20:24 +01:00
CWX 0979aa626a remove redundant check based on last change 2025-04-08 22:11:13 +01:00
CWX 95d009e0e4 Changes to MailSendService
originally we had the trader id -> then used a method to get the EnumValue as a string -> then later turned it BACK into a traderId

unless im missing something major this should simplify things?

example:
we took "6617beeaa9cfa777ca915b7c" and turned it to "Ref" to then turn it back to "6617beeaa9cfa777ca915b7c"
2025-04-08 22:03:43 +01:00
CWX 617b95b911 Undo tryadds, fixed actual issue 2025-04-08 21:04:29 +01:00
CWX d12f3f3bde Fix selling weapons to Fence, added stackObjectCount to upd init 2025-04-08 20:54:12 +01:00
CWX 213e61022e should fix null ref on Getting Exit adjustments 2025-04-07 14:15:12 +01:00
CWX 660e41a0f0 change to trygetvalue on dict access 2025-04-07 14:05:09 +01:00