Commit Graph

2082 Commits

Author SHA1 Message Date
DrakiaXYZ
f650bb6be5 Fix sealed weapon crates when bad mod data exists (!416)
If a modded weapon includes non-existant items in some of its fields, sealed weapon crates had the potential to throw an exception on open due to not validating that all `LinkedDbItems` existed. This filters the list to only items that are found in the item DB

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/416
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-10-04 15:21:44 +00:00
Dev
84064caa0d Remvoed unused keys from WildSpawnTypeNumber 2024-10-03 17:29:45 +01:00
Dev
5a7f03a2d4 Further refinement of loot generation code switch 2024-10-03 15:17:00 +01:00
Dev
7b1a37e71e Added sptGenerateLoot to IStartLocalRaidRequestData to allow caller to choose to generate loot or not, default is true 2024-10-03 15:12:51 +01:00
Dev
61e90d7e9a Tiered Flea: instead of not showing offers outside of players level, show offer but set to locked 2024-10-02 11:06:25 +01:00
Dev
93127ff16a Added nullguard to setTraderUnlockedState() 2024-10-01 21:41:14 +01:00
Dev
73ecbe7d2c Removed ProfileSnapshotService
Added `InMemoryCacheService`
2024-10-01 11:21:32 +01:00
Dev
6301411a86 Removed unnecessary use of ProfileSnapshotService 2024-10-01 10:57:59 +01:00
Dev
9b3d18ded5 Improved wrong container size error 2024-09-30 17:29:19 +01:00
Dev
24ab327ac2 Fixed off by one error inside generateUniqueBotNickname that would result in undefined names when the unique name pool was low 2024-09-30 16:55:34 +01:00
Mattdokn
599c03dd06 Update quest interfaces to match quests.json (!415)
Matched quest related interfaces with the types being used in quests.json. Also made some properties that weren't required into nullable types.

Co-authored-by: mBarneto <4347791+m-barneto@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/415
Co-authored-by: Mattdokn <mattdokn@noreply.dev.sp-tarkov.com>
Co-committed-by: Mattdokn <mattdokn@noreply.dev.sp-tarkov.com>
2024-09-29 18:53:08 +00:00
Dev
a82a41f3df Tiered flea:
Added system to limit single items by tpl to player level

Added:
Oakley Mechanism - level 32
Tri-zip - level 30
Beta 2 - level 30
Gruppa 99 T30 - level 30
Eberlestock F5  - level 30

Poyas-A - level 26
Velocity Systems MPPV - level 25

labs keycard - level 30
Sledgehammer - level 25
ledx - level 25
Graphics card - level 35
2024-09-29 17:29:08 +01:00
Dev
92c64024eb Force rain off if clouds are below or equal to 2 2024-09-29 16:51:04 +01:00
Dev
a9e13c7238 Map transit improvements:
Scav inventory now persists between transitions
Item FiR status is not lost when transitioning
Made `endLocalRaid()` aware of 'transfer' end state
2024-09-29 10:30:44 +01:00
Dev
bc0bb3a636 Removed unused property 2024-09-28 23:40:36 +01:00
Dev
057425b363 Improved bot generation system to allow PMCs to wear NVGs at night more than during day 2024-09-28 23:29:08 +01:00
Dev
f5360d0a92 Added ability to know if current raid is at nighttime 2024-09-28 23:00:24 +01:00
Dev
66c49dc9d8 Fixed getTraderSuits() not returning ragman clothing 2024-09-27 20:41:36 +01:00
Dev
7b4be0817b Add missing interface 2024-09-27 18:18:53 +01:00
Dev
80762d6a00 Handle changes to airdrop endpoint
Reworked airdrop loot generation to incorporate 'radar' drops

Added `forced loot` system to LootGenerator service, can now explicitly define what items it contains

Fixed airdrop system sending incorrect icon to client
2024-09-27 14:30:35 +01:00
Dev
700b6a5338 Updated itemtpl enum + overrides 2024-09-27 08:50:28 +01:00
Dev
98a079fa4c Set IStartLocalRaidResponseData transition data correctly 2024-09-27 08:45:26 +01:00
DrakiaXYZ
3703698a1a Implement TransitItemsDelivery service via expansion of the BTR item delivery handler (!413)
- Fixes exception thrown when attempting to transfer items during transit
- Implements transit item transfer by expanding on the existing BTR item transfer code (They are both BTR services)

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/413
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-09-27 07:19:20 +00:00
Dev
ca8b61a001 Added nickname check to pmc response message send, kills profiles when name is null 2024-09-26 21:01:01 +01:00
Dev
058ccc2b29 More JSON and interface changes 2024-09-26 20:49:08 +01:00
Dev
454a71213f Updated JSONs and interfaces to match new patch 2024-09-26 17:28:23 +01:00
Dev
5e528d668e Added profile version whitelist and blacklist
Blacklisted `Old Patterns` from Unhead profiles
Whitelisted `The Good Times - Part 1` to only Edge of darkness profiles
2024-09-26 09:44:18 +01:00
Dev
4d8aaea4a9 Fixed airdrop crates having the incorrect id 2024-09-25 19:07:02 +01:00
Dev
c7a44456bb Added tiered flea system with placeholder values - Allow items to be locked to a specific level - defaults to off
Unlocks have a priority order, it will be filtered by whatever is first in the dictionary
e.g.

pistol: unlock level 20
weapon: unlock  level 30

A pistol will be unlocked at level 20,
A shotgun will be unlocked at level 30

if the order was different:
weapon: unlock level 30
pistol: unlock level 20

The pistol would be unlocked at level 30 as its a weapon and gets picked up by the weapon filter first
2024-09-25 17:16:44 +01:00
Dev
9b7602baa8 Fixed mannequin pocket items being lost on pmc death 2024-09-24 18:21:19 +01:00
Dev
a57ce79b45 Fixed BTR not delivering items
Fixed player scav being unable to transfer items via BTR
2024-09-24 17:25:32 +01:00
Dev
8baac2cfad Fixed items added to wishlist in-raid not persisting to out of raid 2024-09-24 16:47:55 +01:00
Dev
be7e07fa4e Added coreConfig.features.chatbotFeatures.sptFriendGiftsEnabled, default true 2024-09-24 16:41:02 +01:00
Dev
ab1422bc40 Updated interfaces to follow correct naming convention
Removed some interface duplication
2024-09-24 12:47:29 +01:00
Dev
5fd9271491 Updated various interfaces to use correct naming scheme
Added `IGroupPostion`
2024-09-24 11:26:45 +01:00
Dev
b4e78d14f2 Improved bot vest filtering to not filter down to 0 vests 2024-09-24 10:09:58 +01:00
Dev
bf39ed957e Cleaned up duplication in bot generation system
Added optional parameter to `cacheHasBotWithKey`

Removed params needed for calling `rollToBePmc`

Created `getMostRecentRaidSettings`
2024-09-23 23:01:47 +01:00
Dev
a477b0b584 Added labs to pmc conversion system 2024-09-23 22:56:22 +01:00
Dev
22b661ac49 Moved mongo id validation into its own function 2024-09-23 14:33:47 +01:00
Dev
cabd17d2c9 Added config option forceRigWhenNoVest
Wired up to bot generation

Updated Raiders to use true value
2024-09-23 12:16:47 +01:00
Dev
4cb901d592 Fixed issue with getPmcConversionMinMaxForLocation() 2024-09-23 10:45:25 +01:00
Dev
10c436cd7d made use of resetInterval inside of resetMoneyTransferLimit() calculation 2024-09-23 10:22:26 +01:00
Dev
218044d23b Renamed interfaces 2024-09-23 10:20:02 +01:00
Dev
6b6b791940 Updated JSONs 2024-09-23 10:15:01 +01:00
Dev
396f5220f7 Fixed server error on raid start 2024-09-22 15:18:08 +01:00
Dev
6de8740dcc Updated convertIntoPmcChance to work per map
Removed unused `shouldBotBePmc` function
2024-09-22 13:58:55 +01:00
Dev
5b7945a501 Added missing traderId to conditionCounter interface 2024-09-22 12:30:38 +01:00
Dev
c1526a4ad3 Reset money transfer limit of player when they have reached/passed the nextResetTime value 2024-09-22 11:49:55 +01:00
Dev
1ba795cf66 Added first attempt at fixing Circulate item sale tracking
Doesnt update client until after restart
2024-09-22 11:33:49 +01:00
Dev
ff6746ebe9 Now include money transfer limits of server>client response 2024-09-22 10:56:39 +01:00