Chomp
984e10ae76
Added GetMinutesAsSeconds method
...
Removed magic number
2025-08-05 15:57:06 +01:00
Chomp
cf99d9d824
Use mongoId type instead of string
2025-08-03 22:00:25 +01:00
Chomp
08815da10d
Improved Fake PMC offer count fluctuations #527
...
Added fake PMC offer count index to `RagfairOfferHolder` and made use of it when checking if offer count is over desired count
2025-08-02 11:22:27 +01:00
Archangel
aec8420d53
Cleanup todos, run VS cleanup & enforce file scoped namespacing
2025-07-31 15:18:20 +02:00
Jesse
fc7660b6c8
Slight bundle & fileutil refactor: ( #524 )
...
- Actually load the bundle cache file now
- Don't read file as string with StreamReader, instead read with ReadAllTextAsync
- Slight refactor to bundle hashing
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com >
2025-07-30 22:23:29 +00:00
sp-tarkov-bot
b14b74bf24
Format Style Fixes
2025-07-28 19:39:29 +00:00
Chomp
ef50c3fea1
Condensed code with use of ??
2025-07-25 20:15:52 +01:00
Chomp
8a7690e13b
Improved performance of GetRandomElement when processing IEnnumerables
2025-07-25 18:26:09 +01:00
Archangel
a2ddd7ae17
Converter fixes
...
- Various nullability warnings removed
- Made CanConvert on a few of them a bit more strict
2025-07-25 16:28:22 +02:00
Chomp
ab770e795f
Improved stale offer processing
...
Pass offer creation info into methods for quicker checking
Removed unused methods
2025-07-25 12:41:41 +01:00
Chomp
34bd002876
list to ienumerable changes
...
Removed unused methods
strong to mongoId changes
2025-07-25 12:28:40 +01:00
Chomp
f562c634a7
Converted lists to hashsets where appropriate
...
Removed unnecessary uses of ToList()
string to mongoId conversions
2025-07-24 13:26:34 +01:00
Alex
545edfd25f
Removed unnecessary annotation
2025-07-23 21:47:20 +01:00
Alex
723f6fc638
Removed check for Enum converter and removed unnecesary converters
2025-07-23 21:32:49 +01:00
Chomp
1320f7d0ab
Ienumerable changes
2025-07-23 13:06:48 +01:00
Jesse
839e154adc
Make mod loading non nullable, set certain properties to be read only after init ( #506 )
...
* Make mod loading non nullable, set certain properties to be read only after init
- Breaks all mods, will require new nugets
* Make mod assembly list IEnumerable
* Convert checks to IsNullOrEmpty
* Update comment, enforce ModGuid
2025-07-23 11:24:55 +01:00
sp-tarkov-bot
1edc4d101a
.NET Format Style Fixes
2025-07-23 09:51:58 +00:00
Alex
29be94462f
Removed enum reflection method in favor of factory approach
2025-07-23 10:49:34 +01:00
clodanSPT
2d752457b2
Move port usage ( #504 )
...
* Moved port usage code check to before startup
* removed unused import
---------
Co-authored-by: Alex <clodanSPT@hotmail.com >
2025-07-23 08:44:34 +01:00
Chomp
8f4f72dcdd
Updated node comments to c# format
2025-07-21 21:09:17 +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
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
Chomp
f772e97d4e
string to mongoId changes
2025-07-20 13:07:42 +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
clodanSPT
1af50bfd34
Application cleanup ( #485 )
...
* Changed application to use background services and removed hacky http server startup
* Small improvements and method removals
* Removed Core dependency on Web application SDK
* Fixed wrong imported type
---------
Co-authored-by: Alex <clodanSPT@hotmail.com >
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com >
2025-07-18 16:21:24 +01:00
Chomp
38fb2454c7
Various micro-optimisations
2025-07-18 16:05:29 +01:00
Chomp
2639504471
String to MongoId conversions
...
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01: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
Jesse
bd7d60e5ab
More mongo ( #450 )
...
* Remove debug, doesn't really work
* Convert Handbook to MongoId's
* Make traders in Database keyed to MongoId rather than string
2025-07-05 13:41:57 +01:00
Chomp
8253215410
Converted strings into MongoId type
2025-07-05 11:03:09 +01:00
Archangel
eeddb97641
Remove extra method on Func, add options to converters
2025-07-04 22:25:39 +02:00
Chomp
01cd251b68
Moved more code into extension methods
2025-07-04 19:29:43 +01:00
Jesse
b6692fead4
Chatbot async improvements ( #446 )
...
* Add better chatbot handling by making them asynchronous
Removes the need for having RunInTimespan as await Task.Delay now can handle this
* Remove now unused classes
* Handle commando's commands with ValueTask
* Set values as not nullable, client sends all of these
2025-07-04 18:04:37 +01:00
Chomp
2609db2536
Removed unused injections
2025-07-04 09:40:22 +01:00
Chomp
abe290b1eb
Merge pull request #443 from sp-tarkov/locale-fixes
...
Handle ToLower neutrally across all locales (#412 )
2025-07-03 23:05:38 +01:00
Jesse
d3cd4359fa
Mongo fixes ( #444 )
...
* Pass Json serializer options to all converters
* Fix required on record that has two sets of id's
* Pass options to mod handlers
* Update method
2025-07-03 20:24:05 +01:00
Archangel
79489eadce
Handle ToLower neutrally across all locales ( #412 )
2025-07-03 18:28:36 +02:00
Jesse
ebe8f9ded5
Mongoid changes ( #440 )
...
* Remove old IsValidMongoId and Regex
* Convert more configs to MongoId, as well as BaseClasses
* Remove HashUtil.Generate(), replaced with new MongoId()
2025-07-03 15:42:16 +01:00
Jesse
54f0d0779c
Convert TemplateItem to MongoId ( #436 )
...
* Convert TemplateItem to MongoId
* Push new extensions
* Handle null mongoid's being passed to regex
* Handle null strings, fixes item events
* Updated loot generation to work with new property `composedKey`
Fixed typo in `SlotId`
* Fix missing method after merge
* Remove duplicately named MongoIDExtensions?
* Fixed location loot generation to handle impending loot json changes
* Updated location JSONs with new properties (excluding lighthouse loose loot)
* Fixed build issue with ItemTplGenerator
* use correct handing for new mongo ids
* Added helper method to improve readability
---------
Co-authored-by: Chomp <dev@dev.sp-tarkov.com >
2025-07-02 10:14:04 +01:00
Jesse
6ac747d18d
Begin converting some id's to MongoId ( #435 )
...
* Begin converting some id's to MongoId
* Remove nullability on MongoId's
* Update trader MongoId's
2025-06-30 15:25:47 +01:00
Chomp
14e875f199
Improved error messages inside GetExpiredOfferItems
2025-06-29 15:48:35 +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
f9d1c81437
Added RagfairOfferExtensions
2025-06-28 16:45:58 +01:00
Chomp
7782806f91
Added DateTimeExtensions
2025-06-28 16:41:26 +01:00
chompDev
d4d2ed0403
.NET Format Style Fixes
2025-06-28 15:15:48 +00:00
Jesse
d0af6acbe6
Move MathUtil methods to extensions ( #432 )
...
* Begin moving MathUtil methods to Extensions
* Add missing extension
2025-06-28 16:15:11 +01:00
Chomp
da5644cfa2
made properties readonly
2025-06-28 12:53:21 +01:00