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
Dev
06b35ddde8
Improved how Level specific PMC levels are handled, not included min and max - stored in pmc.json
2024-04-30 23:21:52 +01:00
Dev
297e35a1ff
Added system to set min level for PMCs spawned on sandbox_high to 20
2024-04-30 21:52:26 +01:00
Dev
267efdc7ea
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-29 21:50:12 +01:00
chomp
b6926c1bf9
Improved about 5-10% performance on botgen and fixed bug that would skip containers when generating items that wouldnt fit in pockets ( !314 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/314
2024-04-29 13:27:07 +00:00
Dev
a1070f941c
Added extra guard against adding cartridges to box sold by fence
...
Skip adding cartridges to ammo box inside `addCartridgesToAmmoBox()` if cartridge already exists
2024-04-28 23:04:37 +01:00
Dev
f07637cf63
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-24 21:23:14 +01:00
Dev
d49bf4a378
Replace single letter variables with better names
2024-04-23 21:07:34 +01:00
Dev
57557d6063
Migrate loot generation code to use per-map static data - ONLY WORKS WITH CUSTOMS (other maps to follow later)
2024-04-23 10:27:09 +01:00
Dev
a4bb5a2f60
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-23 10:03:48 +01:00
Refringe
01d97953fa
Fixes Linting Issues
...
Fixes a number of Biome linting issues:
- Variable implicitly has the any type.
- Use a function type instead of a call signature.
- Reassigning a function parameter is confusing.
- Suppression comment is not being used
2024-04-22 23:43:35 -04:00
Dev
fe7d09e075
Improved logic inside isModValidForSlot()
to better handle edge cases
2024-04-22 09:39:32 +01:00
Dev
bba169127c
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/bot.json
# project/assets/configs/core.json
# project/assets/database/bots/types/arenafighterevent.json
# project/assets/database/bots/types/assault.json
# project/assets/database/bots/types/bear.json
# project/assets/database/bots/types/bossboar.json
# project/assets/database/bots/types/bossboarsniper.json
# project/assets/database/bots/types/bossbully.json
# project/assets/database/bots/types/bossgluhar.json
# project/assets/database/bots/types/bosskilla.json
# project/assets/database/bots/types/bossknight.json
# project/assets/database/bots/types/bosskojaniy.json
# project/assets/database/bots/types/bosskolontay.json
# project/assets/database/bots/types/bosssanitar.json
# project/assets/database/bots/types/bosstagilla.json
# project/assets/database/bots/types/bosszryachiy.json
# project/assets/database/bots/types/exusec.json
# project/assets/database/bots/types/followerbigpipe.json
# project/assets/database/bots/types/followerbirdeye.json
# project/assets/database/bots/types/followerboar.json
# project/assets/database/bots/types/followerboarclose1.json
# project/assets/database/bots/types/followerboarclose2.json
# project/assets/database/bots/types/followerbully.json
# project/assets/database/bots/types/followergluharassault.json
# project/assets/database/bots/types/followergluharscout.json
# project/assets/database/bots/types/followergluharsecurity.json
# project/assets/database/bots/types/followerkojaniy.json
# project/assets/database/bots/types/followerkolontayassault.json
# project/assets/database/bots/types/followerkolontaysecurity.json
# project/assets/database/bots/types/followerzryachiy.json
# project/assets/database/bots/types/gifter.json
# project/assets/database/bots/types/marksman.json
# project/assets/database/bots/types/peacefullzryachiyevent.json
# project/assets/database/bots/types/pmcbot.json
# project/assets/database/bots/types/ravangezryachiyevent.json
# project/assets/database/bots/types/sectantpriest.json
# project/assets/database/bots/types/sectantwarrior.json
# project/assets/database/bots/types/shooterbtr.json
# project/assets/database/bots/types/usec.json
# project/assets/database/globals.json
# project/assets/database/locales/global/ch.json
# project/assets/database/locales/global/cz.json
# project/assets/database/locales/global/en.json
# project/assets/database/locales/global/es-mx.json
# project/assets/database/locales/global/es.json
# project/assets/database/locales/global/fr.json
# project/assets/database/locales/global/ge.json
# project/assets/database/locales/global/hu.json
# project/assets/database/locales/global/it.json
# project/assets/database/locales/global/jp.json
# project/assets/database/locales/global/kr.json
# project/assets/database/locales/global/pl.json
# project/assets/database/locales/global/po.json
# project/assets/database/locales/global/ro.json
# project/assets/database/locales/global/ru.json
# project/assets/database/locales/global/sk.json
# project/assets/database/locales/global/tu.json
# project/assets/database/templates/achievements.json
# project/assets/database/templates/handbook.json
# project/src/generators/BotLootGenerator.ts
# project/src/generators/LootGenerator.ts
# project/src/models/eft/common/tables/IBotType.ts
# project/src/models/spt/bots/IBotLootCache.ts
# project/src/servers/HttpServer.ts
# project/src/services/BotLootCacheService.ts
# project/src/services/FenceService.ts
# project/tests/controllers/InsuranceController.test.ts
2024-04-20 23:29:54 +01:00