Dev
12444b025e
Fixed incorrect dogtag return
2024-06-14 15:41:02 +01:00
Dev
da04065d42
Added game version specific dogtags to PMC bots
...
removed dogtags from `baseClasses` and placed in `ItemTpl`
2024-06-14 14:38:30 +01:00
Dev
f8bd65ed90
Replaced various array.find()
with array.some()
...
Rewrote `tagItem()` to use `.find()`
2024-06-13 13:41:29 +01:00
Dev
8c05345b85
Replaced various magic strings with enum values
...
Added `itemHelper.getItemFromPool()`
2024-06-13 10:53:07 +01:00
Dev
aac2142706
Refactoring of small functions for better readability
2024-06-12 19:33:55 +01:00
Dev
292dadc55e
Prevented NRE being thrown when no weapon found inside getSealedContainerWeaponModRewards()
2024-06-12 12:41:09 +01:00
Dev
624737a036
Regenerated bot JSONs
2024-06-11 19:58:30 +01:00
Dev
e39654be6a
Simplified generateInventoryId()
2024-06-08 16:16:36 +01:00
Dev
3f125593a7
Refactor BotGenerator()
2024-06-07 22:41:30 +01:00
Dev
bb4bfc6dcb
Refactoring of generateReward()
2024-06-07 20:19:58 +01:00
chomp
4788f6b407
30473 ( !361 )
...
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/361
2024-06-07 18:25:27 +00:00
chomp
b3b1f76a77
Migrate PMCs (sptBear/sptUsec) To Bsg Types (pmcBEAR/pmcUSEC) ( !360 )
...
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/360
2024-06-06 16:59:44 +00:00
Dev
0574392f28
Added new lootable item blacklist and added checks to bot and map loot generator code
...
Remove event quest item from global blacklist and move to loot item blacklist
2024-06-04 18:57:36 +01:00
Dev
2a587d80d8
Added system to filter blacklisted items from static and dynamic loot positions
...
Moved seasonal item filter code to different position inside `generateDynamicLoot()`
2024-06-04 17:06:50 +01:00
Dev
56d135fe6d
Fixed bot generation error
2024-05-30 10:09:04 +01:00
Dev
b8ee834165
Replaced uses of DatabaseServer
with DatabaseService
2024-05-29 15:15:45 +01:00
Dev
7d515ad680
Replaced uses of DatabaseServer
with DatabaseService
2024-05-28 22:24:52 +01:00
Dev
0dfbf61ddf
Replaced usages of parameters with fixed values
2024-05-28 18:32:09 +01:00
Alex
e2eb56a60a
Added more nullguards ( !356 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/356
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-28 14:35:38 +00:00
Alex
8727f6150e
primery-dependencies ( !355 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/355
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-28 14:04:20 +00:00
Dev
f56da3c1a8
Updated various classes to make use of databaseService
2024-05-28 14:52:22 +01:00
Alex
173a726f33
Removed all null references in favor of undefined ( !354 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/354
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-27 20:06:07 +00:00
Dev
673256e5fa
Added disableLootOnBotTypes
property to bot.json
config to allow disabling loot on bots by their type
2024-05-26 16:32:39 +01:00
Dev
612b1b7940
Localized more warnings
2024-05-24 16:42:42 +01:00
Dev
4081508bf3
Improved accuracy of flea offer creation
...
`user` object of each offer matches live
Added `getPmcNicknameOfMaxLength()` to `botHelper`
2024-05-22 13:26:35 +01:00
Dev
961210f73c
Renamed function to clarify what it does
2024-05-22 12:51:04 +01:00
Dev
2b3ee4f15c
Improved how AID is obtained when generating a flea offer
2024-05-22 12:50:19 +01:00
Dev
cd965bb733
Refactored 2 functions to accept a request object instead of 5+ parameters generateModsForWeapon()
and chooseModToPutIntoSlot()
...
Store meta-data on weapon as its being generated e.g. if it has an optic/front sight/rear sight
use above meta-data to force a low/high profile gas block on weapon during generation
2024-05-21 23:22:16 +01:00
Kaeno
37f4a23acf
Fix flea market error when clicking on user. Handled responses that wasn't been handled correctly ( !348 )
...
:)
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/348
2024-05-21 21:24:57 +00:00
Alex
d13e86ba46
Rebranding to SPT ( !345 )
...
Rebranded src code and scripts to SPT
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/345
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-21 17:59:04 +00:00
Dev
a48e130f1b
Localized various warning messages
2024-05-21 14:28:52 +01:00
Dev
139b139581
Localised various error messages
2024-05-21 12:40:16 +01:00
Dev
f581b8ff2a
Fixed issue with server failing to generate a green flare as its a weapon without a default preset
2024-05-17 20:38:39 +01:00
Refringe
cb169a18b9
Project Code Format
...
Ran the `npm run format` command to bring the entire project in-line with the formatting rules.
2024-05-17 15:32:41 -04:00
Dev
d95423b0f1
Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/core.json
# project/package.json
# project/src/models/eft/common/IGlobals.ts
# project/src/routers/dynamic/BundleDynamicRouter.ts
2024-05-15 16:39:41 +01:00
Refringe
14e8f8fa19
Take your brackets back!
...
I don't want em'. Grumble. Ahem...
This change allows for "extra" parentheses to be added in situations where, without them, the code could possibly, potentially be seen as maybe a little-bit, tiny confusing.
Also, fixes a bunch of other ESLint errors. Mostly down to naming warnings now. Mostly.
2024-05-13 17:04:23 -04:00
Alex
f8d1227dfd
Introduced a new ICloner interface with 3 implementations, one of them being a recursive cloner which is faster and more efficient than its counterparts by more than 50% ( !328 )
...
Co-authored-by: clodan <clodan@clodan.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/328
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-13 17:58:17 +00:00
Dev
9323db5b1c
Improved debug logging in filterPlateModsForSlotByLevel()
+ improved variable names
2024-05-12 10:29:18 +01:00
Dev
572f6a5668
Improved getModPoolForSlot()
...
Comment changes
Variable change
Only log debug message when default mod not found + multiple choices exist in pool
Fixed possible nullref if `getMatchingPreset()` returns null
2024-05-12 10:15:08 +01:00
Dev
72a1eb0a34
Improve comments inside modIsFrontOrRearSight()
2024-05-12 09:31:40 +01:00
Dev
ac5103390c
Added nullguard check inside generateLoot()
to prevent 380 mods killing bot generation
2024-05-11 16:21:39 +01:00
Refringe
ba1ac09b0b
Merge branch '3.8.2-DEV' into 3.9.0-DEV
...
# Conflicts:
# project/src/callbacks/ItemEventCallbacks.ts
# project/src/models/eft/common/IGlobals.ts
# project/src/models/eft/common/ILocation.ts
# project/src/models/eft/common/ILocationBase.ts
# project/src/models/eft/common/tables/ILootBase.ts
# project/src/models/eft/common/tables/ITemplateItem.ts
# project/src/models/eft/weather/IWeatherData.ts
# project/src/models/spt/bots/BotGenerationDetails.ts
# project/src/models/spt/config/IPmcConfig.ts
# project/src/models/spt/config/IWeatherConfig.ts
# project/src/models/spt/server/IDatabaseTables.ts
# project/src/models/spt/server/ILocations.ts
# project/src/servers/http/IHttpListener.ts
2024-05-08 00:21:12 -04:00
Refringe
50c7a26a58
ESLint Pass
...
This is the first pass of ESLint on the codebase.
ESLint formatting is less strict when it comes to line-length and line-breaks then dprint/biome, so if you see formatting that you don't like... fix it! It shouldn't require a configuration change.
- This should merge clean into master (when the time comes).
- This will not merge clean into `3.9.0-DEV`, but the conflicts aren't that bad.
2024-05-07 23:57:08 -04:00
Refringe
735624eb9c
Merge branch '3.8.2-DEV' into 3.9.0-DEV
2024-05-06 21:52:21 -04:00
Dev
9fb1d9728e
Fixed PMC loot generator only using flea price not flea or handbook price. Now uses whatever is higher
2024-05-06 15:21:35 +01:00
Dev
17296fabfd
Moved reduceWeightValues from PMCLootGenerator into weightedRandomHelper and made public
2024-05-06 15:20:44 +01:00
Dev
509e208fb9
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/pmc.json
# project/src/helpers/ItemHelper.ts
# project/src/models/spt/config/IPmcConfig.ts
2024-05-04 21:41:44 +01:00
Dev
99444c7237
Added config to not included secure container loot in PMCs - set to false by default
2024-05-03 21:31:24 +01:00
Alex
0502257093
Added functionality for Fence to resell items sold to him by PMCs, and fixed give command giving incomplete preset items and bugged ammo boxes ( !317 )
...
Fixes https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/625
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/317
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-01 20:17:09 +00:00
Dev
bddf87a4e2
Prevented drawAmmoTpl()
failures from killing loot generation when cartridge data cannot be found inside staticAmmoDist
2024-04-30 23:23:00 +01:00