Commit Graph

128 Commits

Author SHA1 Message Date
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
chompDev 3afc1e3431 .NET Format Style Fixes 2025-07-02 22:37:51 +00:00
Chomp fefe9bcec5 Cleaned up property content 2025-07-02 23:37:16 +01:00
Chomp fb1a96c3bf Fixed AddCompatibleModsForProvidedMod not filtering mods correctly 2025-07-02 23:35:37 +01:00
Chomp 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +01:00
Chomp a8308248d6 Replaced hashutil.generate with new MongoId() 2025-07-02 12:47:00 +01:00
Cj 371c9d58f0 Repeatable quest generation MongoID conversion (#439)
* Update repeatable quest generation for mongoid, add new server localizations, switch `Traders` to MongoId

* Give error default value
2025-07-02 12:44:49 +01:00
chompDev abab349a0c .NET Format Style Fixes 2025-07-02 09:57:24 +00:00
Chomp 18bdd203dd Fixed invalid comparision of IDs 2025-07-02 10:56:39 +01:00
Chomp 5c26f47e2f Use correct new MongoId() instead of hashutil 2025-07-02 10:56:10 +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
chompDev 0ec544e6a3 .NET Format Style Fixes 2025-06-30 13:12:24 +00:00
Chomp 6baf8a9118 Fixed FilterModsByBlacklist not filtering before returning results 2025-06-30 14:11:20 +01:00
Chomp 62a9cc28d5 Fixed weekly boss elimination quest generation not finding a location 2025-06-30 12:41:49 +01:00
chompDev d628f738f4 .NET Format Style Fixes 2025-06-29 17:58:59 +00:00
chompDev c5216044da .NET Format Style Fixes 2025-06-28 18:09:13 +00: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 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 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 da5644cfa2 made properties readonly 2025-06-28 12:53:21 +01:00
Chomp 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01: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 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 c04b4bad95 Improved GetFilteredDynamicModsForItem 2025-06-27 23:35:44 +01:00
Chomp d2267847a8 Deconstructed dictionaries to improve readability 2025-06-27 23:21:44 +01:00
Chomp afbd481b81 Expanded PMC loot pool blacklist to include item.json/rewardItemBlacklist 2025-06-27 10:53:44 +01:00
Chomp 80b50af732 Refactored RemoveBlacklistedLootFromBotTemplate to not use reflection 2025-06-25 13:39:18 +01:00
Chomp 38e4cc2570 Refactored AdjustBotTemplateWithKarmaSpecificSettings
Modularised code into smaller chunks
Improved loops for better readability
Removed reflection
2025-06-25 13:35:11 +01:00
chompDev 340db55f81 .NET Format Style Fixes 2025-06-24 15:29:18 +00:00
Cj 4fb19151be Merge pull request #424 from CJ-SPT/GetLowestHp-optimization
Optimize GetLowestHp()
2025-06-24 16:28:46 +01:00
chompDev 4909a80b32 .NET Format Style Fixes 2025-06-24 08:24:39 +00:00
Cj c6d5638057 Move RepeatableQuestRewardGenerator.cs and update some reward generation data 2025-06-24 02:59:37 -04:00
chompDev 2646f90273 .NET Format Style Fixes 2025-06-23 21:26:58 +00:00
Chomp 083e3b97e0 Fixed Weapon cache generation running 15+ times on first load due to threading issues
Expanded weapon and equipment cache to include mods - Fixes randomisation slots causing warnings during bot generation

Optimised `FilterModsByBlacklist` handling of blacklists
2025-06-23 22:26:20 +01:00
chompDev 321fdd9ace .NET Format Style Fixes 2025-06-23 13:56:14 +00:00
Cj 524fa65c29 Repeatable quest generation (Part 3) (#420)
* clean up EliminationQuestGenerator.cs

* add locales
2025-06-23 14:54:43 +01:00
chompDev 60324bc4e1 .NET Format Style Fixes 2025-06-23 10:39:01 +00:00
Chomp e0975c6958 Localised various error and warning messages 2025-06-23 11:38:26 +01:00
chompDev d4f9e38169 .NET Format Style Fixes 2025-06-23 09:04:32 +00:00
Cj b3dca61ac0 Break rest of repeatable quest generation code into components. Fix nullability of exploration generation and improve error handling, make new helper method, add pick random quest type method to controller (#419) 2025-06-23 10:03:56 +01:00
chompDev 6820d7b8be .NET Format Style Fixes 2025-06-22 19:51:53 +00:00
Cj 811791f7d3 Repeatable quest generation (Part 1) (#417)
* Refactor and breakout CompletionQuestGenerator.cs

* make `GenerateAvailableForFinish` protected
2025-06-22 20:51:18 +01:00
chompDev d7b61e857c .NET Format Style Fixes 2025-06-22 08:12:25 +00:00
Chomp 8477cc6485 Refactored AddForcedDynamicLoot 2025-06-22 09:11:50 +01:00
chompDev e64243a0c5 .NET Format Style Fixes 2025-06-22 08:05:18 +00:00