Commit Graph

30 Commits

Author SHA1 Message Date
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
chompDev 46989aa19e .NET Format Style Fixes 2025-07-01 09:18:15 +00:00
Lacyway 8e3894e9ad MongoID improvements (#437)
* MongoID improvements
- Added extension to check whether a MongoID is valid, 33% faster than old method
- Cut down generation speed by 2/3

* Fix method used

* Add test
2025-07-01 10:17:39 +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 d6b4e3378a Refactored GetMostRecentPreviousDay to not use while loop 2025-06-30 10:21:37 +01:00
Chomp 81a263b7d0 Fixed incorrect logic in how weekly reset date is picked, choose the most recent previous day, not the closest 2025-06-30 10:12:55 +01:00
Chomp e6b791179b Added Boss of the week system
Similar to live where a boss is picked at random and will have a guaranteed spawn on a map. This is indicated with a skull on the map selection screen
Configurable via `config/bot.json/weeklyBoss`
2025-06-29 18:58:23 +01:00
Chomp 4d39a4c819 Remove unused profile property VitalityData 2025-06-29 15:55:55 +01:00
Chomp cb559fdf5c Reduced complexity of post-raid health transfer
Likely fixed issue with effects not transferring over correctly out of raid
2025-06-29 15:48:23 +01:00
Chomp 1c83014ed2 Converted CalculateLevel to extension method
Removed `PlayerService`
2025-06-28 17:05:56 +01:00
Chomp d4dd309252 Converted DateIsBetweenTwoDates to extension method 2025-06-28 16:52:35 +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
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 11c52b81da Converted GetWeaponsDefaultMagazineTpl into extension method 2025-06-28 15:49:27 +01:00
Chomp 770d187061 Created WildSpawnTypeExtensions 2025-06-28 15:05:23 +01:00
Chomp ca3d0730f5 Converted PlayerIsFleaBanned into extension method
Formatting changes to `ProfileHelper`

Fixed method name typo
2025-06-28 13:27:11 +01:00
Chomp 9c9ac638c0 Added TraderAssortExtensions 2025-06-28 13:12:36 +01:00
Chomp 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01:00
chompDev 00610acefe .NET Format Style Fixes 2025-06-28 11:15:22 +00:00
Jesse 22c71bee5b Helper methods extensions (#431)
* Remove unused model

* Start moving methods to extensions, cleanup code
2025-06-28 12:14:50 +01:00
Chomp a3dbd3176e Updated FindAndReturnChildrenByItems to be an extension method 2025-06-28 11:58:50 +01:00
Chomp fed9f3dd46 Made GetScavSkills an extension method and made more generic 2025-06-28 11:53:05 +01:00
Chomp 0a28dc4657 Moved GetScavKarmaLevel to extension method 2025-06-28 11:47:29 +01:00
Chomp 4babdb59ab Added QuestConditionExtensions removed questConditionHelper 2025-06-28 10:29:33 +01:00
Chomp d2d119f3b4 Added CurrencyTypeExtensions 2025-06-28 10:09:56 +01:00
Chomp 6126dc2394 Added item extensions 2025-06-28 10:04:52 +01:00
Chomp 0be02bc3f5 Created ProfileExtensions 2025-06-28 09:27:41 +01:00
Chomp 667995be37 Converted StoreHydrationEnergyTempInProfile into extension method 2025-06-28 09:06:16 +01:00
Chomp 65d8d7432d Converted DefaultVitality into extension method 2025-06-28 09:00:23 +01:00