TheSparta
723f8db572
Updated dependencies + A few other things ( !150 )
...
Initially this was going to be an update to dependencies but it seems i got a little carried away!
Anyways this PR removes 2 unused dependencies (`jshint` and `utf-8-validate`), and 2 other, `del` and `fs-extra` that were replaced by the built-in `fs/promises`.
It also renames all `tsconfig` and `Dockerfile` files, in a way that when viewed in a file tree sorted alphabetically they will be next to each other.
It also updates the typescript target to `ES2022`, and changes moduleResolution from `Node` to `Node10` (this isn't an update, they are the same thing but `Node` is now deprecated).
It also adds the `node:` discriminator to every import from built-in modules.
It also has major changes to the build script, `del` and `fs-extra` were only being used in the build script, it's now using `fs/promises` instead, cleaned up the code from some functions, adds better documentation to a few functions, and renames some gulp tasks and npm scripts to better represent what they actually do.
And finally it updates dependencies, except for `atomically` which can't be updated unless the project switches to ESM.
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/150
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
2023-10-14 09:01:41 +00:00
Dev
87e2948806
Remove scripts content from imported mods package data
2023-10-14 09:48:24 +01:00
Dev
3c3fd56e65
Send gift to player after taking coop extract
2023-10-12 20:04:50 +01:00
Dev
db619a30b3
Add boss item blacklist and wire into:
...
airdrops
scav cases
sealed weapon containers
daily quests
Default boss item filter to on
2023-10-12 11:00:04 +01:00
Dev
968911e3de
Refactored repeatable quest system
...
Moved quest generation code into its own class
Moved shared methods used by controller and generator into helper class
2023-10-11 17:43:57 +01:00
Dev
0986bd0932
Make separate bossKill min/max properties + adjust various difficulty values
2023-10-11 17:05:06 +01:00
Dev
c2a6ca678e
Add support for daily quests to request specific weapon kill requirements on elimination quests
2023-10-11 17:04:18 +01:00
chomp
0b67a9a0e9
0.13.5.0 ( !147 )
...
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-authored-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
Co-authored-by: Kaeno <e>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/147
2023-10-10 11:03:20 +00:00
Dev
1b387f706d
Revert "Update JSONs + add new params to interfaces"
...
This reverts commit 3bf644c0e4
.
2023-08-10 16:02:33 +01:00
Dev
3bf644c0e4
Update JSONs + add new params to interfaces
2023-08-10 16:00:49 +01:00
Dev
96de45e580
Expose SPT friend nickname in core config
2023-08-09 16:01:51 +01:00
chomp
6a864bffa9
Rework high flea listing price adjuster to be configurable, more item types can be added ( !111 )
...
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/111
2023-08-06 11:36:07 +00:00
chomp
a962823192
Persist durability changes + faceshield hit values incurred during a raid ( !110 )
...
Fixes insured items comin back full durability
Co-authored-by: CWX <CWX@noreply.dev.sp-tarkov.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/110
2023-08-05 17:26:16 +00:00
Dev
9dd2d3cd04
Improve nullguard code inside findAndAddRandomPresetToLoot()
2023-08-05 14:50:05 +01:00
Dev
beb7c5069b
Improve profile fixing system
...
Remove more modded items from profile when config set to true, warn of set to false
Handle weapon presets + messages containing modded items
2023-08-03 14:36:53 +01:00
Dev
1bf3dba1a9
Add 1% chance all PMCs in players game are named after them with random prefixes
2023-08-01 13:31:58 +01:00
Dev
82de7c097d
Replace old "evil x" pmc name system with v2
2023-08-01 12:51:40 +01:00
Dev
5b7199b952
Update flea prices + Add sytem for adjusting unreasonable high mod prices on flea
2023-07-30 15:22:19 +01:00
Dev
a514a94b45
Improve wording + Add missing properties from config
2023-07-29 10:16:03 +01:00
Dev
5a435b363a
25206
2023-07-28 10:01:14 +01:00
Dev
8a26d3f807
Rework items added to container code, now stops after 4 failed attempts
...
Don't increment cost of loot container total value if item was not placed in container
2023-07-27 13:14:09 +01:00
Dev
2d57bdb0ef
Add option to force healing items into PMCs secure
...
Make bots heal to a 90% instead of 65%
Log when item cannot fit into container when genning bots
2023-07-27 12:15:06 +01:00
Dev
0a1913ab49
Fix issue with completing Sadist
not failing Colleagues Part 3
...
Added fail state to colleagues p3
Reworked loop inside `getQuestsFailedByCompletingQuest()` to use .some() instead
Reworked `failQuests()` to check all fail conditions instead of just the first one
2023-07-25 19:20:17 +01:00
Dev
848302e769
Convert post-raid player status into an enum and update usages
2023-07-24 16:30:03 +01:00
Dev
5c6aafea51
Add enum for notification type
2023-07-24 15:19:31 +01:00
Dev
f4047489eb
Clean up sptFriend generation code - reduce duplication
2023-07-23 12:30:15 +01:00
Dev
e84781be5f
Handle moving items into sorting table when stash has no space
2023-07-23 11:51:04 +01:00
Dev
618a41fcd9
Add system to make prapor give giffts the first and second day after starting a fresh character
...
Add functionality to handle gift service to use locale ids instead of raw text
2023-07-22 23:23:42 +01:00
Dev
5071072092
Place fence seasonal item blocking behind config propery
2023-07-22 14:16:19 +01:00
chomp
a7b4ebe316
Rework message sending to support gift system ( !106 )
...
Co-authored-by: Kaeno <e>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/106
2023-07-21 17:08:32 +00:00
Dev
78d097498c
Update JSONs and add new properties to server interfaces
2023-07-20 13:53:44 +01:00
Dev
a79a5f7aec
Allow modders to set item min/max stack size limits for any item on fence
2023-07-20 12:00:24 +01:00
Dev
3cba3bfd4a
Additional types added to BaseClasses
2023-07-18 17:16:23 +01:00
Dev
3768742bc8
Improvements to varous types throughout the codebase
...
Added quest type as enum for IQuest
Added missing values to QuestReward enum
2023-07-18 16:53:15 +01:00
Dev
f28d6c2a6b
Added comments to various config files
2023-07-18 15:45:57 +01:00
Dev
942c079284
Rename all globals.ts interfaces to improve naming consistency
2023-07-18 15:44:14 +01:00
Dev
5b3e3e33df
extend MinMax for a number of interfaces
2023-07-18 15:18:01 +01:00
Dev
ca48f0e83c
Add property to location config to allow adding bot min/max spawn limits for maps
...
Limit marksman on customs/woods/streets between 2 and 4, woods to 2 and 5
2023-07-17 14:40:54 +01:00
Dev
5d20b6b781
Further comment improvements
2023-07-15 11:00:35 +01:00
Dev
c1e7c70c65
Remove unused getTemplateQuests
method
2023-07-15 10:56:47 +01:00
Dev
195d0e3b1d
Add 'fixes' section to core.json, expose some flags for enabling spt fixes
...
Added flag to enable deletion of modded items from profile - default is off
Fixed issue where loop would stop checking for modded items after finding the first item
2023-07-15 10:53:08 +01:00
Dev
2df0d44de5
Add mock implementation for client/friend/request/cancel
endpoint
...
Addec comments
2023-07-14 13:03:55 +01:00
Dev
fd56bf040e
Convert hideout craft exp magic string into config value
2023-07-12 20:12:16 +01:00
Dev
ea270a95a5
Move hard coded gameversion/account type values into bot config
2023-07-11 11:58:26 +01:00
Dev
7bb93cdcaf
Add clarifying comment
2023-07-10 22:25:59 +01:00
Dev
dba6b5f629
Allow modifcaiton of the container airdrop will use (capacity etc)
2023-07-09 14:47:02 +01:00
Dev
ad6b94d8a9
Filter out event quests from data prior to sending them to player
...
Rework season service to use enum instead of magic strings for event names
Add config property to control showing/hiding non-seasonal event quests from player
2023-07-09 14:45:06 +01:00
chomp
6754d84484
24605 ( !103 )
...
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/103
2023-07-07 20:24:42 +00:00
Dev
343be66806
Add property to ragfair blacklist to toggle removal of damaged
ammo packs
2023-06-30 14:00:08 +01:00
Dev
7ad1fc3996
Add FiR config and wire up + cleanup of openRandomLootContainer()
2023-06-20 17:19:53 +01:00
Dev
26f29e1522
Add sealed crates to airdrops
2023-06-20 16:59:15 +01:00
Dev
0c31719013
Feature: Add code to handle sealed weapon containers when opened in menu
...
Add handbook price for sealed containers (default of 100rub)
2023-06-20 16:07:05 +01:00
Dev
3918bf785e
Make two properties optional
2023-06-16 10:18:54 +01:00
Dev
709817d4fe
make property optional
2023-06-06 16:35:10 +01:00
Dev
295f144884
Update JSONs
2023-05-29 22:54:03 +01:00
Dev
a4efdf9b43
Revert "Store the location insured gear was lost on + time it was lost against insured items in profile"
...
This reverts commit 77508ace73
.
2023-05-27 22:39:32 +01:00
Dev
77508ace73
Store the location insured gear was lost on + time it was lost against insured items in profile
2023-05-27 22:31:24 +01:00
Dev
e7ccddad2d
23399 JSON changes
2023-05-27 10:34:47 +01:00
Dev
2f919c795c
Fix issue with scav case rewards failing + made function reward level handling more robust
2023-05-22 12:25:19 +01:00
Dev
17afc9e460
Add endpoint stubs and improve request/response objects
2023-05-20 18:37:39 +01:00
Dev
52f9dbefa9
Add new properties to location data
2023-05-19 17:38:38 +01:00
Dev
1f5359bde4
Fix typo
2023-04-23 23:47:16 +01:00
Dev
fae6c57bfa
Rename Itrader interface for clarity
2023-04-22 16:28:07 +01:00
Dev
a1e7f21a59
Update JSONs
2023-04-16 16:02:46 +01:00
Dev
4a44b004a6
Improved image import functionality to allow for image path overrides e.g. adjusting trader images
...
Pass routes into getImages() function
2023-04-15 14:07:56 +01:00
Dev
d39c7f30f8
Update nvgIsActiveChancePercent
into 2 properties, one for day, one for night
...
Removed:
nvgIsActiveChancePercent
Added:
nvgIsActiveChanceDayPercent
nvgIsActiveChanceNightPercent
2023-04-08 13:30:39 +01:00
Dev
c60c67fce5
Split config of lasers/lights active status by raid day/night status, default to day if no raid found
...
Removed:
lightLaserIsActiveChancePercent
Added:
lightIsActiveDayChancePercent?: number;
lightIsActiveNightChancePercent?: number;
laserIsActiveChancePercent?: number;
2023-04-08 13:18:01 +01:00
Kaeno
ca931165b2
Fix: Fixed some ragfair issues ( !86 )
...
Fixed bug with removing offers from flee and item returning too quickly.
Fixed bug with error message that would show on removal of offers.
Expose property expireSeconds in ragfair.json.
Co-authored-by: Kaeno <>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/86
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-committed-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
2023-04-06 16:23:52 +00:00
chomp
5e9e0736cc
update core and WildSpawnTypeNumber.ts to match version 22561 ( !85 )
...
Co-authored-by: Kaeno <>
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/85
2023-04-05 21:08:35 +00:00
Dev
32afbffcda
Refactor: Move server locates into database folder so they can be accessed/edited by modders
2023-03-25 15:37:50 +00:00
Dev
a5272dc596
Feature: expose profile save wait delay in config
2023-03-23 15:03:54 +00:00
Dev
e2074ffc7a
Fix: convert BotLootCache to interface
2023-03-22 14:49:24 +00:00
CZPZ
8c37bc7837
Lint: ts files ( !82 )
...
Co-authored-by: alimoncul <alimoncul@gmail.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/82
Co-authored-by: CZPZ <czpz@noreply.dev.sp-tarkov.com>
Co-committed-by: CZPZ <czpz@noreply.dev.sp-tarkov.com>
2023-03-22 14:31:05 +00:00
Dev
3232314dbd
Fix: hotfix for difference in types between botjson skills (dict) and output (array)
2023-03-21 15:58:08 +00:00
Dev
a6838e9312
Refactor: improve generateSkills() function
2023-03-21 15:06:27 +00:00
Dev
927273d71d
Feature: Add ability to define different types of airdrop loot containers
...
+ Fixed a typo in `createRandomloot()` function name
+ Added more generically named`getWeightedValue()` function as future replacement for `getWeightedInventoryItem()`
+ Changed `LootRequest` into interface
Added:
Weapon/armor
Barter
Medical/Food
Mixed
2023-03-18 17:29:26 +00:00
Dev
e8f53e1fcd
Fix: update wildspawnpoint enum
2023-03-18 16:18:59 +00:00
chomp
ed4dfc201d
Feature: Add ability to whitelist items inside each bots generation
object + filter per bot level inside bot.json
equipment.randomisation
section ( !73 )
...
(cherry picked from commit 253b4d0120db8245e6c2e863ab7d2fbdc5196128)
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/73
2023-03-17 18:20:16 +00:00
chomp
b44f62bb99
Feature: send launcher descriptions of profiles when calling connect()
( !70 )
...
Localise description text
Add `IConnectResponse` object for LauncherController.connect()
Move server name into core.json config
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/70
2023-03-15 14:18:55 +00:00
chomp
12c269fb57
Feature: add adjustPriceWhenBelowHandbookPrice
to ragfair.json + Add comments to ragfair config ( !69 )
...
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/69
2023-03-15 13:28:51 +00:00
chomp
00e367ffa5
Feature: Allow modders to define custom currencies ( !62 )
...
https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/11
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/62
2023-03-11 17:38:20 +00:00
chomp
1137912d51
Feature: Add system that allows PMCs to send text messages to player post-raic. Can be positive or negative ( !40 )
...
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/40
2023-03-08 13:26:32 +00:00
chomp
e4bc6c8d68
Feature: Improve numerous endpoints + add function for sending messages to player ( !39 )
...
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/39
2023-03-07 22:25:23 +00:00
Dev
3d849b427b
Squashed 22 commits in an attempt to fix Gitea object bloat
2023-03-05 22:02:56 +02:00
Dev
e1310d74ca
Add Repo
2023-03-03 15:23:46 +00:00