Commit Graph

2967 Commits

Author SHA1 Message Date
Dev
f46694a169 #747 Fixed items added to ragfair configs custom blacklist still be sellable on flea by player
Moved confusing `isValidItem()` check out of `isItemOnCustomFleaBlacklist()` and into main function
Removed redundant blacklist check from flea item generation as its already covered in `isValidItem()`
2024-08-15 09:42:07 +01:00
Dev
d736ad43ff Adjusted repeatable quest type choice values based on feedback and playtesting 2024-08-14 23:26:43 +01:00
Dev
653281edc3 Improved handling of bot stock generation.
Moved code into own function
Expanded force stock check to look for any child items instead of ones for slot `mod_stock`
Expanded check to include additional slot names

(cherry picked from commit 4582bb6fe2)
2024-08-12 17:44:07 +01:00
Dev
ead2741513 Fixed PK Zenit PT-2 "Klassika" stock having incorrect pistolgrip mods 2024-08-12 17:10:46 +01:00
Dev
bfb3185b0a Fixed missing SKS rear sights
Fixed recursive issue with `FAST MT Super High Cut helmet (Urban Tan)` being inside its own nvg slot

(cherry picked from commit 85d29c5869)
2024-08-12 17:07:20 +01:00
Dev
ebe1bc021f Fixed calculateItemWorth() not handling child items lacking a upd object 2024-08-11 18:33:24 +01:00
Dev
0a229d78be Fixed invalid check inside getBonusValueFromProfile()
(cherry picked from commit 77c98a4cd4)
2024-08-09 22:05:20 +01:00
Dev
2e9a6016f1 Updated water filtering system to correctly check the craft progress against the ProductionTime value stored in the profile instead of the base ProductionTime value in the hideout json.
This is because the base value doesn't take into account any craft bonuses the profile has

After collecting a product from a continious craft, `ProductionTime` in the profiles craft data will be refreshed, this resolves issues with adjusting the `production.json` craft times not applying to continuous crafts

(cherry picked from commit 8014bdd06f)
2024-08-09 16:05:42 +01:00
TetrisGG
915c96d40c Fix Bonuses in various Services using Find and not filter. (!393)
Fix for SPT/Issues#743
FuelConsumptionBonus only looked for the first value, not all Bonuses a PMC has.
TODO: Find a way for the Broken Wall to not give too much bonus when a player mops the floor in between the stages. Resulting with too much negative bonus once the broken wall is completed.

Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/393
Co-authored-by: TetrisGG <dmiller2606@gmail.com>
Co-committed-by: TetrisGG <dmiller2606@gmail.com>
2024-08-09 08:50:57 +00:00
Dev
15a83a0da3 Removed fuel debuffs when completing wall construction 2024-08-08 22:59:07 +01:00
Dev
0e1094d775 Improved logic of getBonusValueFromProfile()
(cherry picked from commit 2a52af1275)
2024-08-08 22:37:15 +01:00
Dev
d97e717f76 Added function getBonusValueFromProfile to profileHelper 2024-08-08 18:30:07 +01:00
Dev
e4ba92b4a6 Updated PMC names 2024-08-04 09:39:01 +01:00
Dev
2529c65e80 Added missing quest icon 2024-08-04 09:14:49 +01:00
Dev
f0b302a119 Added quest Test Drive - Part 4
Updated `Counteraction` dogtag requirement
2024-08-03 22:13:58 +01:00
Dev
a407f9545a Adjusted weights of various equipment on PMCs 2024-08-02 17:42:53 +01:00
Dev
06efc71b2d Increased mp-18 chance on level 1-14 PMCs 2024-08-02 17:35:03 +01:00
Dev
1a95ad3e26 Updated version strings 2024-08-02 16:05:36 +01:00
Dev
5d1c02d0ea Updated seasonDates to fix gaps in coverage - extended summer 2 months
(cherry picked from commit f94985f3f2)
2024-08-02 09:55:21 +01:00
Dev
0032f408e6 Moved core config out of saveProfile() into its own class-level property 2024-07-31 20:44:39 +01:00
Dev
00322be0e8 Reduced mp7/mp9 spawn chances on PMCs + reduced all AK chances
(cherry picked from commit 5473f73e2a)
2024-07-31 20:30:30 +01:00
witek
3edf0f2ff9 Fix logs paths (!390)
When compiled natively to linux, logfiles are saved in main SPT folder instead of default location. It's caused by file paths being hardcoded as text.
This patch fixes logs location on linux build.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/390
Co-authored-by: witek <falls-toluene.0q@icloud.com>
Co-committed-by: witek <falls-toluene.0q@icloud.com>
2024-07-31 19:04:04 +00:00
MadByte
6f010acfca Changed mod path for loading bundles from the server to be relative (!389)
**Before merging: Please test on a real Windows installation if possible!**

I tested this on Linux as well as inside a Windows VM hosted on Linux, but wasn't able to test it on a real Windows installation.

This commit fixes an issue with loading bundles from a native Linux server:

When compiling the server natively for Linux & installing some mods, everything works except for mods trying to load bundles from the server. Reason is a malformed path to the bundle:

```ts
2024-07-30 23:48:16.968 +02:00|0.14.9.1.30626|Error|Default|
EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\home\USER\Games\escape-from-tarkov\drive_c\SPTarkov\user\mods\Bloody-Bullet-Wounds\bundles\assets\systems\effects\particlesystems\effects.bundle".
```

`process.cwd()` returns the linux-agnostic path of course, but for some reason it also returns `C:`.
Changing the line to `modpath.slice(0, -1).replace(/\\/g, "/");` seems to work and the bundles seem to get loaded without issues (did a quick test raid), even without passing the absolute path to the  mod.

I tried to check why that is, and I think node is able to [get the cwd and resolve the relative path](4d1d88118b/src/path.cc (L101)) by itself..

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/389
Co-authored-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
Co-committed-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
2024-07-31 14:14:56 +00:00
Dev
52a0373deb Lowered PMC spawn chance of following weapons:
ADAR, MP7,MP9, P226
2024-07-31 15:14:33 +01:00
Dev
97ed43b841 Updated PMC max level to match player max
(cherry picked from commit a1fe93cab6)
2024-07-30 15:25:28 +01:00
DrakiaXYZ
ee1eb7d690 Fix issue in BotLevelGenerator when high level (!388)
Previously `highestValue` could be lower than `lowestValue`, resulting in an exception. These values are now generated in the same method and clamped

Add a catch to the botgen promise await so we get more useful errors if botgen fails

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/388
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-07-30 07:24:29 +00:00
RomanxTheLast
398bf43444 Add async to the handleRequest chain in HttpServer (!387)
The httpListeners are promise based but they aren't awaited when handling the request.

I found this while implementing another version of HttpServer in a mod but couldn't actually find where this would cause an issue so feel free to close this if you think it's not worth it.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/387
Co-authored-by: RomanxTheLast <alex@romanx.co.uk>
Co-committed-by: RomanxTheLast <alex@romanx.co.uk>
2024-07-28 13:45:09 +00:00
Dev
45e559efff Updated crowdin locales 2024-07-26 19:29:39 +01:00
Dev
0491be80f2 Add null protection to playerHasRecievedMaxNumberOfGift()
(cherry picked from commit 0c42a38306)
2024-07-25 23:18:42 +01:00
Dev
019db50cf6 Make use of SideType.SAVAGE enum 2024-07-25 19:10:21 +01:00
Dev
8f8a0c1f05 Adjusted ragfair pack chance and max size values 2024-07-25 13:46:39 +01:00
Dev
ce6cb095c0 Added item reward pools for Unlocked supply create (x)
Added item reward pools for `Unlocked equipment create (x)`
Added support for weapon/armor presets inside `getRandomLootContainerLoot()`
Expanded pool for `Unlocked valuables crate (x)",` by 8 items

(cherry picked from commit 4a1a5d924c)
2024-07-25 12:18:00 +01:00
Dev
1034bf5bd8 Added a weighting bias to the level chosen for bots, favors the higher value
(cherry picked from commit 797d75fd4f)
2024-07-25 10:35:20 +01:00
Dev
e7f56edf0c Improved bot generation comments 2024-07-25 09:38:28 +01:00
Cj
92f5cdea7d Fix trailing space in COMB_MUZZLE_DEVICE (!386)
Fixes a trailing space in the base class id `COMB_MUZZLE_DEVICE` that rendered it unusable.

Note: No idea where these wacky formatting changes came from, sorry about that. Assuming Biome things.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/386
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-07-25 07:47:38 +00:00
Dev
6cde96a710 Further changes to locale text 2024-07-24 17:39:31 +01:00
Dev
eb3ba0ef80 Fixed incorrect english locale text 2024-07-24 17:36:52 +01:00
Refringe
f969371585
Updates README Branch Information 2024-07-24 11:56:47 -04:00
Dev
e565bb03cd Rounded flea offers requirementsCost to nearest int
(cherry picked from commit de53abf002)
2024-07-24 09:26:50 +01:00
Refringe
6e07932aaa
Apply Biome Formatting
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
2024-07-23 11:30:35 -04:00
Dev
e11fd8fa22
Added locations formatted to ignore 2024-07-23 11:28:26 -04:00
Dev
94c6c3d783
Added DB to biome ignore list 2024-07-23 11:27:55 -04:00
Refringe
afda0d5255
Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️

Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:

I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.

Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.

This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...

...It's the TOZ, and it always will be. Don't DM me.

Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>

# Conflicts:
#	project/src/callbacks/GameCallbacks.ts
#	project/src/callbacks/MatchCallbacks.ts
#	project/src/routers/static/GameStaticRouter.ts

Resolved by Refringe
2024-07-23 11:25:08 -04:00
Dev
6613d997cc Removed redundant rating check now it has been moved to ProfileFixerService 2024-07-23 13:14:56 +01:00
Cj
7ab466a0dc Ragfair Rating Fix (!385)
Adds a method to the `ProfileFixerService` to fix null offer ratings. Will fix both the profiles primary rating, and any offers created when the rating was null.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/385
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-07-23 11:46:44 +00:00
Dev
6d39ad3085 Adjusted EDITPROFILE gift to have 50 uses
(cherry picked from commit 6d1bde60ca)
2024-07-23 09:57:40 +01:00
Dev
c90b8670f2 Added null protected to playerLevelFulfillsQuestRequirement() 2024-07-23 09:07:07 +01:00
Dev
5107aeeeee Updated version values 2024-07-23 08:48:04 +01:00
Dev
5771f1f567 Blacklisted Mark of The Unheard from reward items pool 2024-07-22 15:08:21 +01:00
Dev
817d339104 Updated PMC names
(cherry picked from commit 416780d9f9)
2024-07-22 13:34:04 +01:00