0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

726 Commits

Author SHA1 Message Date
Chomp
828dcf83ab Fixed send message failing 2024-12-31 11:25:45 +00:00
Chomp
a812f30cc0 Fixed replaceIDs replacing hideoutCustomizationStashId IDs 2024-12-29 20:19:25 +00:00
Chomp
207e88fe6f
Improved performAction logic
# Conflicts:
#	project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts
2024-12-27 20:11:45 -05:00
agavalda
a9d76021bc
Allow to set reputation as decimal in TraderCommand (#994)
Since the reputation levels are expressed as decimals i found it weird
that you can only set integers. This PR changes the way the reputation
is set:
`spt trader prapor rep 44` won't set 44 to the reputation (which is way
higher than anyone can get) but 0.44, this allows to test loyalty levels
more granular:

![image](https://github.com/user-attachments/assets/4e706f63-2d25-4f4c-9501-e6379174dc16)

![image](https://github.com/user-attachments/assets/61edb0f7-fc0b-4e7c-869f-09a30efa50dc)

Updating the regex and then testing that only decimals are used for
`rep` and not for `spend` looked to messy.

PS: This is my first PR here :)
2024-12-23 20:52:46 +00:00
Chomp
a22032abe2 Made use of RagfairOfferHelper.offerIsFromTrader() 2024-12-22 19:57:26 +00:00
Chomp
140a1e8c00 Added filtering of offers that have exceeded the buy limit threshold from possible offers to display 0 - Fixed a limit-reached trader offers always showing over a PMC offer
Various improvements to `getOffersForBuild`:
Renamed offers to offersToReturn
Removed one layer of indentation by using early return
Replaced use of `ragfairOfferService.getOffers` with `ragfairOfferService.getOffersOfType` to improve performance by using a more appropriately indexed dictionary of offers
Run `getOffersInsideBuyRestrictionLimits` as part of offer filtering process
removed redundant reassignment of availableOffers/possibleOffers
2024-12-22 19:49:57 +00:00
DrakiaXYZ
4614c890a6 Implement basic friends list functionality
This commit implements basic friends list functionality including adding, auto accepting, and removing friends. As well as storing the list in the profile and providing the friends list back to the client on login.
This is a one-way implementation, the target profile will not have the source account added to its friends list.

This is primarily useful in combination with the recent favorites fixes, to allow users to inspect favorited weapons on other profiles to "copy" weapon builds between their profiles
2024-12-13 21:25:32 -08:00
21939dcf38
Biome Format
Ran the `npm run style:fix` command. These are the code-formatting fixes.
2024-12-07 13:50:09 -05:00
DrakiaXYZ
d34eca32bb
Further favorite item/weapon functionality and fixes (#974)
- Resolve issue where we were storing favorites in the incorrect format,
resulting in a client error on game load
- Resolve issue where we were clearing favorites when they were meant to
be saved
- On login, fix any previously corrupted favorites array
- Properly implement favorite data in `getOtherProfile`, now shows your
favorites when viewing your profile

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-06 17:14:19 +00:00
Chomp
2527823208 Formatting changes 2024-12-03 16:52:20 +00:00
Chomp
9b7c31e36f Added nullgaurd to getQuestRewardItems() to protect against invalid custom quests 2024-12-03 16:50:54 +00:00
Chomp
a16aaf270f Renamed parameter to improve readability 2024-12-03 11:53:49 +00:00
Chomp
e5fb672579 Fixed price discrepancy between trader and flea price for trader items, resolves #968 2024-12-03 11:53:22 +00:00
Chomp
b48c1153e1 Removed unused subfunction from getAssort 2024-12-03 11:51:44 +00:00
Chomp
73186a2240 Improved comments inside ragfairOfferHelper + small refactor of trader offer checks inside getOffersForBuild 2024-12-03 10:16:55 +00:00
DrakiaXYZ
8b1a3158cb Add quest production unlocks to the PMC Profile fixer service 2024-11-30 10:08:51 -08:00
Chomp
effcc37e68 Fixed checkForAndFixPickupQuestsAfterDeath() running when the player was alive
Removed old code that did the same but wasn't working
2024-11-24 18:29:04 +00:00
Chomp
1376a25439 Fixed typo 2024-11-24 17:01:21 +00:00
Chomp
7ba772d458 Fixed issue where player dying with a quest item would prevent the quest item from appearing in a raid again due to the profile flagging the quest item as being picked up 2024-11-24 15:47:03 +00:00
b2d7a29577 Resolve two issues with game edition locked quest rewards (!429)
- Properly handle game edition locked item rewards for quests
- Properly hide game edition locked rewards for quests

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Server#429
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-11-19 09:22:18 +00:00
Dev
ab488bd22f Improve raid time emulation of live 2024-11-18 21:27:45 +00:00
Dev
bda8f3fda2 Adjust time offset to make raid timers match live 2024-11-18 21:06:46 +00:00
Dev
14b5bcb93f Replaced hard coded id with config value 2024-11-17 22:06:49 +00:00
Dev
50e79e72b5 Localised some chatbot messages 2024-11-17 20:57:50 +00:00
Dev
ef7ed5870a Added spt friend code VERYSPOOKY to enable halloween/zombies 2024-11-15 19:01:27 +00:00
Dev
d88e705c86 Fixed questConfig.profileWhitelist causing quests to not be shown when accepting a quest
reversed `questConfig.profileWhitelist` to have quest id as key and allowed game versions as value
2024-11-14 14:01:54 +00:00
Dev
43bed3a8a8 Fixed hydrateLookup() storing data from handbookPriceOverride with incorrect parent keys
Increased prices of overrides
2024-11-05 09:27:21 +00:00
Dev
7b62ad5eac Delete all quest items from server profile prior to adding them from the client copy 2024-11-04 16:00:16 +00:00
Dev
0411430381 Fixed PMC responses breaking messages and emptying the dialog window 2024-11-02 20:37:26 +00:00
Dev
c7811f69cf Reduced complexity of filtering inside findAndAddHideoutProductionIdToProfile() 2024-11-02 16:58:56 +00:00
Dev
7ab3935b4b Improved Quest crafting unlock reward matching with Draks new gen:productionquests command output 2024-11-02 16:47:49 +00:00
Dev
a8c6432d28 Fixed quest items not being transferred from client to server profile
Cleaned up `setInventory()`
2024-11-02 09:59:37 +00:00
Dev
9fe28edbe4 Updatd findAndAddHideoutProductionIdToProfile() to take into account bsg no longer storing the quest id in the productions requirement 2024-11-01 20:06:19 +00:00
Dev
5ec265d9bd Fixed error on purchasing items after a raid 2024-11-01 14:54:08 +00:00
Dev
ad9ae4fb52 Fixed ragfair failing when purchasing non-trader items 2024-11-01 13:19:54 +00:00
Dev
2c53e28e81 Refactored post-raid pmc inventory modification - Fixes dupe id error on raid end 2024-11-01 12:08:05 +00:00
Dev
cc782ba3d5 Updated chatbots to use Monogo_Ids 2024-10-31 22:07:31 +00:00
Dev
d2aa3983b3 improved QuestRewardType.ASSORTMENT_UNLOCK comment 2024-10-31 15:13:11 +00:00
Dev
554aceda26 Moved quest reward game edition checks into own function 2024-10-31 10:55:06 +00:00
2204181363 Quest Rewards take GameEditions into account (!418)
Fixes SPT/Issues#841
QuestReward with this property check the version of the PmcProfile, and skipped if it's not included / included depending on the property
length > 0 check is workaround for Gunsmith Pt 25

Co-authored-by: TetrisGG <tetrisggdev@gmail.com>
Reviewed-on: SPT/Server#418
Co-authored-by: TetrisGG <tetrisgg@noreply.dev.sp-tarkov.com>
Co-committed-by: TetrisGG <tetrisgg@noreply.dev.sp-tarkov.com>
2024-10-31 10:31:45 +00:00
Dev
3818388893 Added workaround for LK quests not completing correctly in PvE 2024-10-24 22:45:42 +01:00
Dev
776f925d91 Updated interfaces to follow correct naming scheme 2024-10-19 12:43:38 +01:00
Dev
9ab0b40854 Fixed botgen failing 2024-10-18 19:10:28 +01:00
Dev
9c58e2e0e5 Loosened bot name limit to 19 characters
Moved value into config
Added `botConfig.botRolesThatMustHaveUniqueName`

Refactored `getPmcNicknameOfMaxLength()`, removed all recursion + handles when no name is below desired length
Refactored `generateUniqueBotNickname()` to handle PMC names differently, use centralised pmc name function

Updated ragfair to utilise maxlength value from bot config
2024-10-18 11:39:51 +01:00
Dev
ec825d990c Moved function to better location 2024-10-17 14:14:17 +01:00
Dev
7330f6fb82 First pass at improving weather simulation logic 2024-10-17 00:57:33 +01:00
Dev
eb0b3ce369 Reduce max length of flea offer names to 15 2024-10-15 20:54:11 +01:00
Dev
4a1c4be0e9 Don't save cultist circle flag into every production on init 2024-10-15 12:48:25 +01:00
Dev
5496ab9557 Cleaned up updateProductionTimers() 2024-10-15 12:47:17 +01:00
Dev
f647c8ebce Fixed hideout craft processing exiting before all crafts are processed 2024-10-15 12:21:31 +01:00