Dev
43a09c29c2
Improved import consistency + comment improvements
...
Moved `IGenerateEquipmentProperties` into own file
2024-06-19 11:11:28 +01:00
Dev
1caff10d35
Refactoring InventoryHelper
2024-06-12 20:25:27 +01:00
Dev
75a34f5ca2
Expanded gift system used by spt bot
...
Gifts can be given multiple times
stash expansions are limited to 5 max by default
dev balaclava can be given 5 times, majority of gifts are 1 use still
Updated data structure to persist gifts received, this will break profiles
2024-06-08 17:54:05 +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
f341bfcb4b
14.8.6.30268
...
Added new properties to daily quests
Stubbed out quest achievement rewards
Added new Item properties used by unknown radio
Updated data JSONs
2024-05-30 13:05:28 +01:00
Dev
f56da3c1a8
Updated various classes to make use of databaseService
2024-05-28 14:52:22 +01:00
Dev
3d4447c978
Added ITemplates
interface
2024-05-28 11:11:50 +01:00
Dev
d6f7374a9a
Added IHideout
interface
2024-05-28 10:41:07 +01:00
Dev
17882ddeab
Add interface for database bots object
2024-05-28 10:33:29 +01:00
Dev
e0eaadbeef
Added implementation of adjusting hideout area level via mails profileChangeEvents
property
2024-05-27 21:30:40 +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
82c6add9ab
Improved insurance calculation accuracy with help from Doctor
...
Removed `insuranceMultipler` from `insurance.json` config, no longer necessary
2024-05-27 13:42:28 +01:00
Dev
40bc26dfd0
Improved localization text for ragfair-unable_to_find_item_price_for_item_in_flea_handbook
2024-05-27 10:26:11 +01: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
86c383c97b
Added trader assort item blacklist system. Can be applied per profile
...
Enabled for Tournament profile
Added support to server to handle `AssortmentUnlockRule` mails
2024-05-25 21:21:23 +01:00
Dev
ece45f0788
Ignored various property naming lint issues
2024-05-25 15:53:49 +01:00
Dev
f68827bdc2
Added ability to insert custom text into the server watermark at the bottom via core.json config
2024-05-23 21:40:59 +01:00
Dev
198f864fe6
Added additional property
2024-05-23 18:10:24 +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
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
597ea96f34
Added per-profile type redeem times to server
...
unheard has a 72 hour redeem time vs all other profiles 48
renamed `redeemTime` to `mailRedeemTimeHours`
2024-05-20 11:31:45 +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
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
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
TheSparta
cd5179bf39
fixed autoimport resolved wrong path
...
- vscode fumbled my previous commit
2024-05-07 15:14:49 +01:00
Refringe
735624eb9c
Merge branch '3.8.2-DEV' into 3.9.0-DEV
2024-05-06 21:52:21 -04:00
Dev
77a5b0a4b4
Reworked how insurance picks attachments to delete before return
...
Now has a chance to not pick any to remove (default 10%)
Now only removes attachments that are above a rouble price (default 2000)
Stores attachments in a dictionary weighted by rouble price
Picks random amount of attachments to remove and then picks from pool by price, removing items from pool as they're picked
2024-05-06 15:54:29 +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
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
8ff241b7b9
Add new map to Interface
2024-04-30 20:54:48 +01:00
Dev
9dff3e0790
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-27 22:58:05 +01:00
Alex
a1e48ca245
Added profile and trader commands to commando ( !309 )
...
Added new spt commands for commando to alter profile levels and skill, as well as trader rep and money spent.
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/309
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-04-27 16:56:28 +00: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
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
Dev
b305ffdc24
Add currency
to generation configuration for each bot
...
Fix various missing properties in some bot jsons
2024-04-18 11:56:45 +01:00
Dev
8cbc51d20e
Revert "Merge branch '3.9.0-DEV' into 3.8.1-DEV"
...
This reverts commit 6121e65b4e0fde2d9e797cab9b271db6096ff0ce, reversing
changes made to 10b1b2b3aa3ee549738c5ad9a27c70ec9c7639d7.
2024-04-15 09:00:52 +01:00
chomp
687436ab8b
update 3.9.0 with 3.8.1 changes ( !289 )
...
Co-authored-by: Refringe <me@refringe.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: Terkoiz <terkoiz@spt.dev>
Co-authored-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/289
2024-04-15 07:59:33 +00:00
chomp
6121e65b4e
Merge branch '3.9.0-DEV' into 3.8.1-DEV
2024-04-15 07:57:24 +00:00
Dev
a9d89695f0
Added new service ProfileActivityService
...
Maintains a timestamp of when each profile was last active on the server.
Timestamp is refreshed on two events: `game/start and `game/keepalive`
Timestamp is used to determine if a profiles hideout should be processed. If a profile has a timestamp older than 90 minutes, it is not processed. (could be set lower but its a conservative value)
This has the side effects of not adjusting the `sptUpdateLastRunTimestamp` property, resulting in `saveProfile()` not running for every profile.
My testing shows a 20x perf increase for every profile in SPT not in use.
Service could likely be used in other scenarios to avoid doing unnecessary work
2024-04-13 12:46:43 +01:00
Dev
73a1dd9511
Split out static/dynamic magazine fill options in config
...
set static mag fill to 0%
2024-04-12 23:05:27 +01:00
Dev
d60cdb6be2
Separate out address used by backend to assist with users who have locked down local machines and cannot connect to a local http server
...
Remove unsed ip/port property assignment on server start that wasn't used anywhere
2024-04-12 09:27:15 +01:00
Dev
e48362ae6e
Added setting to allow/deny player wiping a profile via launcher - default true
2024-04-10 22:49:26 +01:00
Dev
46d48c7531
Added system to filter out ammos from fence by its penetration value
...
Removed redundant hard-coded ammos from blacklist
2024-04-09 10:29:12 +01:00
Dev
64ddca4124
Improved handling of fence assort item refresh. Duplicate stacks should be much less common
...
Stacked items can now be partially reduced instead of all or nothing
2024-04-08 20:01:51 +01:00