Commit Graph

278 Commits

Author SHA1 Message Date
DrakiaXYZ d2e2f04c93 Merge 4.0.3 changes to main (#674)
* Fix exception sometimes thrown on save
- Switch back from File.Rename to File.Move, as Rename is throwing exceptions on some users systems

* Change BTR skin to tarcola during Christmas event

* Added comment

* Remove unused using

* Add wipe Response model

* formatting and add Wipe Endpoint to V2

* Format Style Fixes

* Merge pull request #669 from sp-tarkov/Assembly-ref-validation

Validate core assembly reference when loading mods

* removed zombies from customs and interchange + increased infection across other maps that have zombie kill quests

* Don't apply hostility changes to maps without zombies during halloween

`ReplaceBotHostiltiy` has optional map whitelist param

* Updated hostility values for maps with infection:
bosses = hostile to player not to pmc bots
followers = hostile to player not to pmc bots
pmcs = hostile to player + always hostile to scavs
scavs = hostile to player and pmc bots
raiders = hostile to player and pmc bots

Adjusted infection rates to just maps with zombie kill quests

* Format Style Fixes

* Added missing values for event bosses

* Format Style Fixes

* Added missing values for `ravangezryachiyevent`
Fixed preset typo `bossTagillaAgro`

* Format Style Fixes

* Flagged `Night of The Cult` as halloween quest

* Fixed incorrect logic

* Enabled `Night of The Cult` bosses to spawn

* Format Style Fixes

* Addd a new ReleaseCheckService to notify users of updates (#670)

* Addd a new ReleaseCheckService to notify users of updates
- Pulls the latest release from GitHub API to compare the tag against the users current SPT version
- Runs at the very end of the startup process to avoid being pushed off screen by mod logging
- Only notifies of patch version increments, not major or minor increments
- Links the release notes so users can Ctrl+Click to open directly to the upgrade page
- Is run on its own thread, and discards all errors, so as to not impact users without an internet connection or ability to access GitHub

* Formatting

* Use record for the ReleaseInformation class

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>

* ProfileDataService changes:

Added `ClearProfileData()`
Replaced filepath access with `Path.Combine`
Reduced various sources of duplication

* Adjusted `Goons` spawn chance to 20% across `Customs/Lighthouse/Woods/Shoreline`

* Account for compound items in DialogHelper.GetMessageItemContents

* Generate weapon/armor price based on the child item price total

* Added halloween event bosses to april event

* Flagged infected spawns as `ForceSpawn` and ``

* Add migration for invalid pockets

* Default assign IEnumerable

* Post raid effect fixes:
When exiting raid with severe muscle pain, prevent client instructing server to add mild muscle pain
When exiting a raid with effect that has a timer, decrease timer value by amount of time spent in raid

* Updated nuget packages

* Fixed player scav not having correct HP values on limbs #642

* Remove unused record

* Revert "Updated nuget packages"

This reverts commit f6d9d461a6.

* Added `IMP mine detector` to reward and flea blacklist

* Fixed weapon builds not overwriting existing #654

Cleaned up `SaveWeaponBuild` and `SaveEquipmentBuild`

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
Co-authored-by: CWX <CWXDEV@outlook.com>
Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com>
Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Co-authored-by: Tyfon <29051038+tyfon7@users.noreply.github.com>
Co-authored-by: Archangel <jesse@archangel.wtf>
2025-10-31 14:55:07 -07:00
sp-tarkov-bot 331162e141 Format Style Fixes 2025-10-10 11:27:26 +00:00
Chomp 57a1b16505 Improved handling of ammo pick when data not found in bot json 2025-10-10 12:26:34 +01:00
Cj cf29c7bde3 Merge pull request #601 from sp-tarkov/repeatable-completion-quests
Repeatable completion quest level ranges
2025-10-02 19:02:05 +00:00
Chomp 192d157f2a Correctly set pmc Aid to 0 on generation 2025-10-01 10:35:26 +01:00
Cj 040b4cd618 Repeatable quest warning fixes 2025-10-01 05:12:20 -04:00
Cj b5448ccf09 Fix another bad refactor... 2025-10-01 03:54:58 -04:00
Cj a7eeda3aa6 Fix bad refactor - Thanks rider 2025-10-01 03:48:22 -04:00
Chomp 586128aab8 Merge branch 'develop' into repeatable-quest-tuning 2025-10-01 07:35:43 +00:00
Cj c95446bb20 Implement level ranged Exploration objective generation 2025-10-01 02:58:20 -04:00
Lacyway f083cfe3b0 Fix missing culture invariant in parse 2025-10-01 08:24:09 +02:00
Cj e57f03bd28 - Add min extract requirement property
- Fix warnings
- Convert string to mongoId
2025-10-01 01:51:57 -04:00
Chomp 836112dc50 Weather refactor (#596)
* First pass at Weather generation refactor

* Moved generation logic around

* Added seasonal variability support

* Expanded weather generation to use DI system and allow easier modding

* Updated weather weight values

Converted records into classes

* Added fallback when generator isn't found

* Fixed colliding lambda

Added method comments

* Cleanup of weather code

* Adjusted `weatherPresetWeight` values

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-09-30 12:23:46 +00:00
Chomp 4a1061d183 Cleaned up if check inside GetWeatherValuesBySeason 2025-09-29 13:31:25 +01:00
sp-tarkov-bot f2eb062c0c Format Style Fixes 2025-09-26 12:39:38 +00:00
Chomp ecc0ba8406 Cleanup of warnings 2025-09-26 13:38:47 +01:00
Cj 35b595cff0 Prefer Count over Any() 2025-09-18 14:19:11 -04:00
Chomp 45237693f8 Fixed issue with GenerateExtraPropertiesForItem not returning Upd object 2025-09-14 16:39:47 +01:00
Chomp ee1cca6330 Force StackObjectCount property to be added to:
Bot equipment
Bot loot
Player scav additional loot items

Emulates what we see in live data
2025-09-14 10:20:24 +01:00
sp-tarkov-bot a61738b7f3 Format Style Fixes 2025-09-08 15:42:24 +00:00
Chomp 3af494317c Reduced number of params throughout bot generation process 2025-09-08 16:41:25 +01:00
Chomp 4830f1e2b2 Removed filledContainerIds system as its handled by botInventoryContainerService 2025-09-08 15:52:36 +01:00
sp-tarkov-bot 49ec6c2b9a Format Style Fixes 2025-09-06 18:06:50 +00:00
Chomp 495660bec3 Expanded UBGL ammo placement to try pockets if rig placement fails - fixes partisan not having any ubgl ammo 2025-09-06 19:05:54 +01:00
Chomp bf60770aa5 Comment improvements + deconstructed dictionary loop 2025-09-05 10:08:46 +01:00
sp-tarkov-bot bb625f76aa Format Style Fixes 2025-09-02 13:28:01 +00:00
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Chomp b563bf1feb Improved method comments
Small type improvements
2025-09-02 11:01:16 +01:00
Chomp 0983748201 Improved safety of accessing static loot dictionary inside GetPossibleLootItemsForContainer
Moved code around for tiny optimisation
2025-09-02 10:50:00 +01:00
Chomp 561cb81c03 string to mongoID conversion 2025-09-02 10:45:10 +01:00
Chomp 440b63a5e0 Updated property nullability inside GenerateStaticMagazineItem 2025-09-02 10:39:58 +01:00
Chomp c4297aa30c MongoId conversion for GetPossibleLootItemsForContainer 2025-09-02 10:39:15 +01:00
Archangel 6dacfde715 Change prop method naming to be more consistent 2025-08-28 15:38:36 +02:00
sp-tarkov-bot db8af3c88f Format Style Fixes 2025-08-28 13:33:02 +00:00
Archangel 7e2e3db3fd Change property naming to be more consistent (#578) 2025-08-28 15:32:02 +02:00
Chomp b5ff9106ae Reduced logging to debug: GetAggressorBonusByDifficulty and GetStandingChangeForKillByDifficulty + improved message text
Inverted logic so happy path is first
2025-08-27 14:13:14 +01:00
Chomp fd7a576b0c use voiceId value directly when generating a bot + updated type to use mongoid 2025-08-23 18:23:17 +01:00
Chomp 1df80171eb Added new property to profiles 2025-08-23 14:34:53 +01:00
Chomp 100c3a7b47 Cleaned up SetScavCooldownTimer 2025-08-19 12:04:35 +01:00
Chomp 7eb88646f2 Second attempt at fixing prestige issue #558 2025-08-19 12:04:15 +01:00
Chomp bb566e32ad Fixed pscav generation failure during prestige #556 2025-08-19 10:28:50 +01:00
Chomp 8573e6ae02 Use string.empty and MongoId.Empty() where appropriate 2025-08-17 21:35:34 +01:00
sp-tarkov-bot ab114352ea Format Style Fixes 2025-08-16 23:31:11 +00:00
Chomp 3c8634edd7 Improved saftey of adjusting values when using randomistionDetails.NighttimeChanges.EquipmentModsModifiers 2025-08-16 14:38:02 +01:00
Chomp d94490b52f Added functionality to force PMCs to wear specific armband - default enabled
usec = blue
bear = red
2025-08-16 14:37:06 +01:00
Chomp 07504d406e Renamed TryFillContainerMapWithItem and changed output to better follow c# conventions 2025-08-15 11:24:10 +01:00
Chomp b061200803 Refactor of how bot loot has its position picked to improve performance (#548)
* Initial work on moving container space checks into new class

* Updated tests

Wired up service to save item into inventory when space is found

Updated `FillContainerMapWithItem` to return outcome and not throw exception on failure

Add containers to bot when generating bot equipment

Clean bot cache after completion of loot generation

Removed redundant code from `AddItemWithChildrenToEquipmentSlot`

Removed unnecessary Singleton status from `BotInventoryContainerService`

* Clean-up of service

* Add botId xml docs

* Updated documentation for `FillContainerMapWithItem`

* Code review fixes and improvements

* Remove TODO

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-08-13 15:35:57 +00:00
Cj 0964acff8d Fix bad port from node, fix invalid specific extract requirement 2025-08-12 16:13:39 -04:00
Jesse 60958b3d24 Merge pull request #544 from sp-tarkov/remove-warnings
Remove unused dependencies and improve code quality
2025-08-12 19:26:05 +02:00
Cj e54dcbd4d1 Fix more warnings... (#543)
* Fix more warnings...

* Fix mistake
2025-08-12 15:28:54 +00:00