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

4162 Commits

Author SHA1 Message Date
Chomp
23f2d96433 Changes to max bot values 2025-01-02 15:27:40 +00:00
Chomp
f29ae25cd9 Disable clothing changes - clothing is broken 2025-01-02 15:13:03 +00:00
Chomp
073587d74b Removed broken clothing 2025-01-02 14:55:34 +00:00
Chomp
da2a86e2c1 Added PMC names 2025-01-02 14:47:21 +00:00
Chomp
d151db0c76 Updated dogtag generation based on client investigation 2025-01-02 13:20:18 +00:00
Chomp
1df8a5630b Updated JSONs/assorts 2025-01-02 13:15:25 +00:00
Chomp
f789d7e27c Lowered max bot cap values for most maps 2025-01-02 12:20:49 +00:00
Chomp
d36e5380fa Updated dev account secure container 2025-01-01 21:07:02 +00:00
Chomp
b63497fe59 Added 2 event quests This Is My Party + The Price of Celebration 2025-01-01 17:27:36 +00:00
Chomp
e45d2d16f3 Updated JSON data 2025-01-01 17:21:25 +00:00
Chomp
ad70c9a66e Expanded handleModEvent to make use of forceSeason, enableChristmasHideout, enableHalloweenHideout, addEventGearToBots and addEventLootToBots 2025-01-01 14:47:56 +00:00
Chomp
a0a9fcacb9 Improvemetns to seasonal event system
Extended christmas event to 7th of january

new years event has christmas event actions

Moved seasonal code into functions

Added more seasonal settings for events
2025-01-01 14:37:11 +00:00
Chomp
1d71930a48 Added more clothing to USEC PMC 2025-01-01 11:22:10 +00:00
Chomp
6628eb9bab Added system to allow adjustment of bot appearance by season
PMCs have higher weighting to wear winter clothing during Christmas
2025-01-01 11:21:50 +00:00
Chomp
615f8dfbab Added clothing/heads to PMCs 2025-01-01 10:32:22 +00:00
Chomp
a8ecfb7be9 Fixed new years and april fools events being incorrectly named 2025-01-01 09:04:40 +00:00
Chomp
b09f179d2a Cleaned up type errors 2024-12-31 18:00:06 +00:00
Chomp
1f6a2c8435 Add function to get active seasonal events 2024-12-31 17:57:33 +00:00
Chomp
89b4620b25 Improved seasonal event setting typing 2024-12-31 17:56:57 +00:00
Chomp
545707d0bb Implemented system that purges Christmas containers when outside of relevant event 2024-12-31 17:56:23 +00:00
Chomp
90c6b62814
Adopt orphaned items sent with the mail service (#1011)
Sometimes items aren't received properly due to them not being parented
correctly in sendSystemMessageToPlayer, this aims to fix that.
2024-12-31 17:31:59 +00:00
Chomp
63e7e6fc16 Updated location loot data with 0.16 values 2024-12-31 14:23:57 +00:00
39b95ac2fa Adopt orphaned items sent with the mail service 2024-12-31 13:24:03 +01:00
Chomp
828dcf83ab Fixed send message failing 2024-12-31 11:25:45 +00:00
Chomp
02082ef6f6 Send new years 2024 gift during NEW_YEARS event 2024-12-31 11:25:20 +00:00
Chomp
31d757b935 Added new years 2024 gift 2024-12-31 11:23:52 +00:00
Chomp
00814dc489 Moved EntryType into its own file 2024-12-31 10:20:21 +00:00
dbed08a747
Static Program Properties & Simplified Entry Points (#1010)
Significant refactoring of globals and entry points. Oh my.

- The global variables previously accessible throughout the codebase
have been restructured as private static properties of the Program
class. Public static getter methods have been added to allow read access
to these properties throughout the codebase.
- Entry points, which were dispersed across multiple files, have been
consolidated and simplified into a static method on the Program class,
making the entry logic easier to follow.
- Removed unnecessary ~~globals~~ Program static properties.
- Adjusted imports and references across the codebase to reflect the new
structure.

Try not to focus on the `gulpfile.mjs` changes, as it won't be around
for much longer. *[winky face]*

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-31 10:11:08 +00:00
Chomp
539b505c61 Added null protection to updateGlobalEvents 2024-12-31 10:07:21 +00:00
Chomp
107dd1a274 JSON update 2024-12-31 10:04:00 +00:00
Chomp
02832a1c53 Refactored seasonal and event date checking code into one function
Capitalised and localised `Event is active` text
2024-12-31 09:57:23 +00:00
Chomp
1e486c867b Updated cacheActiveEvents() to treat eventEndDate as inclusive
Moved enabled check to be earlier
2024-12-31 09:41:10 +00:00
Chomp
c46d97a65a Updated getActiveWeatherSeason() to treat eventEndDate as inclusive 2024-12-31 09:25:42 +00:00
Chomp
91a9cb8964 Expanded weather system to have per-season weather parameters
Adjusted winter weather to be less sunny and more snowy
2024-12-30 22:06:55 +00:00
a87dc96e77
Handle websockets asynchronously & Fix up typing on HTTP (#1008)
Should handle the websockets asynchronously, also has some typing
updates considering ws's server is not called Server anymore but is now
'WebSocketServer'

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-30 17:18:15 +00:00
Chomp
d1d2adcc78 Added function addMissingInternalContainersToProfile that runs on profile creation 2024-12-30 17:10:52 +00:00
Chomp
43a0950e5b Removed unused code from getHandledRoutes 2024-12-30 16:56:35 +00:00
Chomp
d5f9c1f253 Implemented updated endpoint for applying clothing to a players character
Fixed dogtag customisation choice not being saved to the correct parameter

Removed dead endpoint
2024-12-30 16:55:32 +00:00
Chomp
502f08c414 Added globalLootBlacklist to pmc config
Reworked `PmcLootGenerator` to make use of new property
Unified how pocket/vest/backpack slots create blacklist
Utilise set when combining blacklist sources

Blacklisted prestige dogtags from reward pool and PMC loot
2024-12-30 16:27:24 +00:00
Chomp
84e0236caa Fixed tests 2024-12-30 13:40:45 +00:00
Chomp
e71ae911b5 Removed evil spirits quest (lacks locale data)
Added missing quest images

Removed old christmas quests from `eventQuests` dictionary
Added new christmas quests to `eventQuests` dictionary
2024-12-30 12:49:01 +00:00
Chomp
3abc73e802 Code lint 2024-12-30 09:56:39 +00:00
Chomp
a4f6fdfa70 Log when generating flea offers 2024-12-30 09:55:26 +00:00
Chomp
44a84afffe Added killas christmas helmet to event 2024-12-30 09:14:21 +00:00
4afc2f5c96
Development Strict Mode (#1006)
- Enables TS strict mode
- Adds script to check types
- Adds workflow to run check-type script
- Updates the code-checking workflows to share the same set-up job

This updates the `tsconfig.json` option to enable strict mode.
*However*, we use TSX for development and SWC for release, which do not
type-check, so this option only gives additional linting/visual-feedback
in VSCode.

Additionally, I've added a NPM script `npm run lint:types` and a GitHub
workflow that runs it.

**This depends on #1005.**

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-30 09:13:15 +00:00
995a3d0c5a
Updates to Node v22.12.0 LTS (#1005)
- Updates version numbers in `.nvmrc`, `package.json`, and
`Server.code-workspace`
- Updates `@yao-pkg/pkg`, `@yao-pkg/pkg-fetch`, and `@types/node` to
latest
- Updates JSON import to FS read operation in `gulpfile.mjs`
- Updates node build target in `gulpfile.mjs`

Tested with local runs, Windows builds, and Linux builds. Have not
tested a Windows build on Linux, but see no reason it wouldn't work.
*[knocks on wood]*

I feel this is safe to merge.
2024-12-30 09:01:11 +00:00
9aadae00e9
TSX Support (#1004)
- Adds support for `tsx`
- Drops support for `ts-node`, `ts-node-dev`, and `tsconfig-paths`
- Changed workspace debug configuration to use `tsx` in watch mode
- Changed `npm run run:debug` command from using gulp to running `tsx`
directly (not in watch mode)
- Changed TypeScript settings for improved module handling
- Changed TypeScript to be a development dependency

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-29 21:01:50 +00:00
Chomp
a29533aa9f Added handling of prestige level dogtags 2024-12-29 20:47:59 +00:00
Chomp
12bfdb135e Fixed incorrect ID issue 2024-12-29 20:43:52 +00:00
Chomp
d8ed1ab9c0 Fixed typo issue 2024-12-29 20:35:53 +00:00