Commit Graph

269 Commits

Author SHA1 Message Date
Chomp c5864ad2e4 Refactored ragfair offer holder to pass offer id around instead of full offers
Optimised removing player offer from cache
2025-03-05 13:20:12 +00:00
Chomp 4939efa273 Sync with changes made to node since 35146 2025-03-04 16:19:47 +00:00
Chomp d2db6f9b2b Updated method comments + made private methods protected 2025-03-03 12:11:41 +00:00
Chomp 35e8a814b9 Implemented CustomLocaleService 2025-03-02 19:32:29 +00:00
Chomp 6014347c7d Improved ragfair expired offer performance 2025-02-26 20:09:25 +00:00
Chomp 3b7c8dbdb5 Fixed ragfair offers not expiring + some perf improvements
todo:
fix "offer not found"
Replace _offersByTraderLock with hashset + manual locks
2025-02-26 16:45:04 +00:00
Chomp 3d6eaefd8c AddPlayerOffers reordering 2025-02-26 14:18:38 +00:00
Chomp b7e734c781 Various small micro-optimisations 2025-02-25 15:06:09 +00:00
Chomp b67ff36631 Converted more string comparisons to use string.equals
Optimised `CreateBarterBarterScheme`
2025-02-25 13:30:59 +00:00
Chomp c857359b5a Optimised GetCollectionValue and GetPmcNicknameOfMaxLength 2025-02-25 12:53:41 +00:00
Chomp 8f2fbed27b Reduced amount of items iterated over when generating fence assorts 2025-02-24 21:08:58 +00:00
Archangel 180aa9e100 Use HashSet and Overlaps, should shorten time spent looking up base classes? 2025-02-24 19:32:40 +01:00
Chomp b4c5392f08 Replace various uses of Count() with Any() for ienumerables + remove redundant parenthesis 2025-02-24 17:53:42 +00:00
Archangel eeea8a0000 Remove count for any 2025-02-24 18:49:36 +01:00
CWX 8d9f96600b Trader is a KVP, changed naming and fixed kvp.tostring being added to "traderId" 2025-02-24 17:27:31 +00:00
Chomp ea671d2092 Make use of handbook item cache to speed up AdjustUnreasonablePrice 2025-02-24 17:18:25 +00:00
Chomp fe500f7c27 Replace string comparisons with string.Equals (ordinal) 2025-02-23 16:33:23 +00:00
Chomp 103b797a54 Refactored how flea offer quantity is handled 2025-02-21 17:48:04 +00:00
Chomp 85900724e5 Fixed multipler typo 2025-02-21 15:07:41 +00:00
Chomp bffeec8361 Handle flea item prices as doubles 2025-02-21 15:05:00 +00:00
Chomp 4d4ff7bfe1 Small cleanup of ragfair offer generator 2025-02-21 13:20:42 +00:00
Chomp fc6c15792d Fixed flea offers not reducing quantity after purchase 2025-02-21 12:58:02 +00:00
Chomp c250fb8dd3 Use global item blacklist in cultist circle reward system 2025-02-21 11:04:40 +00:00
Chomp 6b0e1ffbce Updated all mongoId checks from == to .equals() 2025-02-20 16:47:30 +00:00
Chomp 5a5e18f568 Add HTTPS support (#101)
* Initial work on adding https support

* Updated logging

* More logging

* Added support for a certificate password

Replaced method used for getting path to cert

* Reduce duplication of logic in program.cs

* Cleanup of `HttpServer`

* More https stuff

* https

* Fixed remote IP stuff

* Fixed non-local request logging

* Updated assets

* Replaced `singleplayer/bossconvert` to `singleplayer/bosstypes`

* Updated map loot

* Asset update

* Stop storing a bots inventory and other values to save memory

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
Co-authored-by: clodan <clodan@clodan.com>
2025-02-20 12:27:55 +00:00
Chomp 97fd83c6bf Pass bots AID instead of generating one 2025-02-18 12:43:41 +00:00
Chomp 440121514b Fix post-raid PMC messages not working after bot gen changes 2025-02-18 09:31:20 +00:00
Chomp baf1a41c30 Fix insurance not being returned 2025-02-18 09:23:21 +00:00
Chomp 1ff8d2cbef Replaced lists containing unique values with HashSets
Reworked Soft Insert id checks

Improved dogtag id lookup memory usage

Removed wave cleanup code
2025-02-17 19:05:47 +00:00
Chomp 169e1460bb Updated IsOfBaseclasses and isOfBaseClass to work with ICollection types, not just lists 2025-02-17 17:00:41 +00:00
Chomp dcd2655171 Replaced lock with Concurrent dictionary 2025-02-17 14:30:28 +00:00
Chomp 924fff686d Refactored botgen 2025-02-17 13:07:32 +00:00
Valens 5a8c5f0f1c Update SeasonalEventService.cs
reorganize the _halloweenEventItems and _christmasEventItems to be alphabetical. Fucking craig.
2025-02-15 16:35:37 -05:00
CWX 987e7d5709 added special 40degree fuel to blacklist 2025-02-15 21:17:23 +00:00
Chomp 365691aa5c Fix insurance IDs piling up 2025-02-15 18:23:32 +00:00
Chomp 20447eecf0 Match node server 2025-02-15 17:25:06 +00:00
Chomp 3b1f8c81ef Updated loot generator to block seasonal items when out of season 2025-02-14 17:33:29 +00:00
Archangel d3990c1219 Use file streams to deserialize files
- Improves load speed
- Lowers memory overhead
2025-02-14 12:52:18 +01:00
Chomp 04f6501fa1 Renamed methods 2025-02-13 20:50:53 +00:00
Chomp 3acf10b27e Flagged various methods as virtual to allow for overriding 2025-02-13 12:52:42 +00:00
Chomp 388ce141f5 Fixed typo 2025-02-12 21:56:59 +00:00
Chomp d8e0ef457a Stubbed out new service `CustomLocaleService 2025-02-12 21:55:23 +00:00
CWX d6d7afb451 fix repeateable quest logic deleting quests 2025-02-12 19:50:21 +00:00
CWX 194f2a7c36 Fix insurance blowing up, fix quest handover item blowing up 2025-02-12 18:22:47 +00:00
Chomp 096d3298b6 improved GetLocaleDb dictionary lookup 2025-02-12 18:03:35 +00:00
Chomp e9bfce4b28 Updated removeNewBeginningRequirementFromPrestige to check for BOTH New Beginning quest ids as they're no the same between prestige 2025-02-12 15:34:17 +00:00
Chomp 71079def3e Fixed removeNewBeginningRequirementFromPrestige looking for the wrong id 2025-02-12 11:33:04 +00:00
Chomp 233a7c4202 Updated prestige system 2025-02-11 21:27:52 +00:00
CWX 11a7b4fdbd make sure there are props to override before iterating 2025-02-10 21:09:25 +00:00
CWX 7d9e7f0727 fix bundle sending 2025-02-10 20:38:12 +00:00