DrakiaXYZ
edfe995c52
Initial implementation of an ItemTpl and Weapon enum generator ( !364 )
...
ItemTplGenerator will create a full ItemTpl.ts and Weapons.ts file with all items and weapons respectively
Renamed WeaponTypes to Weapons to better indicate its new format
Updated all references to these enums to use the new names
New npm command `npm run gen:items` to run this tool
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/364
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-06-16 08:33:01 +00:00
Dev
bc3649d2a1
Fixed issue where server would enter infinite loop when selling item to trader and stash contained no money
2024-06-14 19:18:55 +01:00
Dev
277925732f
Added system to allow per-trader starting standing values
2024-06-14 15:40:27 +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
IsaacSin
58ee2c66d3
Fix GP coin ragfair offers being excluded by "Exclude bartering offers" filter. ( !363 )
...
BSG now considers GP coin to be a currency.
Commit 4788f6b407 (diff-d1c96eaf446b0afaf70c62191c7a688471fca50c)
already added GP coin to the `Money` enum, but it needs to be added to `PaymentHelper.isMoneyTpl()` to prevent it from being filtered by the barter filter as with other money offers.
See attached screenshots for a demonstration of SPT vs live behavior.
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/363
Co-authored-by: IsaacSin <Isaacgsds@gmail.com>
Co-committed-by: IsaacSin <Isaacgsds@gmail.com>
2024-06-13 13:28:37 +00:00
Dev
f8bd65ed90
Replaced various array.find()
with array.some()
...
Rewrote `tagItem()` to use `.find()`
2024-06-13 13:41:29 +01:00
Dev
3327bc916a
Renamed functions to better explain what they do
2024-06-13 11:05:10 +01:00
Dev
8c05345b85
Replaced various magic strings with enum values
...
Added `itemHelper.getItemFromPool()`
2024-06-13 10:53:07 +01:00
Tyfon
836910c1d5
Implement Ragfair sort by barter ( !362 )
...
Not that anyone was clamoring for this, but I noticed it was missing.
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/362
Co-authored-by: Tyfon <tyfon7@outlook.com>
Co-committed-by: Tyfon <tyfon7@outlook.com>
2024-06-13 09:29:48 +00:00
Dev
3c0887172e
Fixed MARK_OF_UNHEARD
incorrectly adjusting insurance return time
...
Added `ItemHelper.hasItem()`
2024-06-13 09:47:03 +01:00
Dev
6c1935f93f
Added nullguard when purchasing trader assort with 0 items
2024-06-12 23:07:38 +01:00
Dev
4e311da111
Refactored InraidHelper
2024-06-12 20:42:29 +01:00
Dev
1caff10d35
Refactoring InventoryHelper
2024-06-12 20:25:27 +01:00
Dev
16f170f28e
Minor adjustments to profileHelper
, launcherController
and profileController
classes
2024-06-12 10:47:01 +01:00
Dev
ca642b94a7
Reworked gift sending/storage sytem to not store the max sends in profile and use the existing gift data
...
Fixed `sendPraporStartingGift()` not sending gifts
Expanded `GiftService` to include methods to get gift by id / all gifts / all gift ids
2024-06-09 09:13:38 +01:00
Dev
19bcfe2e87
Cleaned up traderBuyRestrictionReached()
2024-06-08 19:49:30 +01:00
Dev
f263f8b0cb
Added implementation of BSG feature Increased personal trader item limits by 20% for Edge of Darkness and The Unheard edition owners who upgraded from Edge of Darkness
...
This fixes EoD/UH/DEV profiles throwing errors when purchasing items near their trader BuyRestrictionMax limits
2024-06-08 19:38:16 +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
b645e6f51b
Added Error throwing when calling getConfig()
and a config cannot be found
2024-06-08 12:56:24 +01:00
Dev
8745caf86d
Refactored getHighestSellToTraderPrice()
2024-06-07 23:14:18 +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
ccb351a2dd
Expanded craft search code to also check for craft count
2024-06-06 11:34:03 +01:00
TetrisGG
bef57f4f58
Fix Tournament Profile having access to Fence ( !358 )
...
Fixes SPT/Issues#677
Fence should be locked in Tournament Profile.
Setting Fences base.json `unlockedByDefault` to `false` makes the profile able to lock Fence
Code from Client:
Shows that unlockedByDefault overrides whatever is written in the Profile data on init.
![image](/attachments/7336f96c-31c0-4ea3-848d-65320cf41340)
Working Screen from Game:
![image](/attachments/b94f368e-91c4-4641-a31e-8b0d8c60d239)
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/358
Co-authored-by: TetrisGG <dmiller2606@gmail.com>
Co-committed-by: TetrisGG <dmiller2606@gmail.com>
2024-06-04 17:20:10 +00:00
Dev
e5398f5e4d
Added implementation for Achievement
quest rewards
2024-06-04 15:36:01 +01:00
Dev
ba8829681d
Fixed flea-banned players being able to buy pmc items from flea
2024-06-03 22:35:09 +01:00
Dev
b7a9296fac
Expanded getItemName()
to return short name when full name is not found
2024-05-31 11:09:19 +01:00
Dev
5531f9d03e
Added text to help with finding data
2024-05-30 13:16:28 +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
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
4c08d64ca5
Make use of DatabaseService
inside GameControler
and RagfaiServerHelper
2024-05-28 11:17:38 +01:00
Dev
65f27a7d8c
Fixed various Object is possibly undefined
warnings
2024-05-28 10:25:23 +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
a37664f43a
Localised various errors
2024-05-27 20:06:10 +01:00
Alex
aee391ec1d
Null checks first pass ( !353 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/353
2024-05-27 16:05:16 +00:00
Dev
e5fd26b89c
Add system to purchase all clothing from trader on profile creation - enabled for tourney profile
...
Fixed USEC profiles not having fence locked on tourney profile creation
2024-05-27 16:30:03 +01:00
Dev
88242238f9
Peppered fillMagazineWithCartridge()
with guards to assist players with finding cause of error
2024-05-26 12:17:47 +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
923a92169d
Fixed multiple ragfair bans being added on profile creation
2024-05-25 15:46:01 +01:00
Dev
ef8307540b
Fixed issue with redeemProfileReward()
not correctly levelling up traders, causing player to only see level 1 trader items until a restart
2024-05-25 15:45:27 +01:00
Dev
ca737d2f62
Added ability to flag a profile as flea banned via config
...
Updated tournament profiles to use new system
Added `getTimeStampFromNowDays()` helper to `TimeUtil`
Improved accuracy of `Bans` property in profile
2024-05-25 15:09:52 +01:00
Dev
612b1b7940
Localized more warnings
2024-05-24 16:42:42 +01:00
Dev
6623a86d0f
Improved how PMC difficulty values are generated to improve PMC vs PMC settings
...
Moved difficulty-related into `BotDifficultyHelper`
Made `typeBeingEdited` property in `addBotToEnemyList()` optional
2024-05-24 10:58:55 +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
2b3ee4f15c
Improved how AID is obtained when generating a flea offer
2024-05-22 12:50:19 +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